Ignore:
Timestamp:
May 25, 2011, 3:14:54 PM (13 years ago)
Author:
dennisw
Message:

Some work on site. Messing with django queries, trying to get a nice json for filterlist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap_extensions.js

    r9213 r9214  
    1515      var list;
    1616      if (json.length>0){
    17         list = '<center>Wireless Leiden nodes on mouseposition:<br /><b>';
     17        list = 'Wireless Leiden nodes on mouseposition:<br /><b>';
    1818        for (var i=0; i<json.length; i++){
    1919          list += json[i].fields.ssid + '<br />';
    2020        }
    21         list += '</b></center>';
     21        list += '</b>';
    2222      }
    2323      else{
    24         list = '<center>No nodes to display.</center>';
     24        list = 'No nodes to display.';
    2525      }
    2626      document.getElementById('node_list').innerHTML=list;
     
    4242    filterlist=new ActiveXObject("Microsoft.XMLHTTP");
    4343  }
    44 
     44  // todo: Get new options if one option is selected; every user has different datasets, make sure when user 'John' is selected, you can only choose datasets who are his.
    4545  filterlist.onreadystatechange=function(){
    4646    if (filterlist.readyState==4 && filterlist.status==200){
    4747      json=eval('(' + filterlist.responseText + ')');
    4848      var list = '<form method="get" action="">';
     49      list += '<input type="text" id="user" name="user" size="10"/> User<br />';
     50      list += '<input type="text" id="dataset" name="dataset" size="10"/> Dataset<br />';
     51      list += '<input type="text" id="date" name="date" size="10"/> Date<br />';
     52     
    4953      list += '<select id="wlnode" style="width:104px"><option></option>';
    5054      for (var i=0; i<json.length; i++){
     
    5256      }
    5357      list += '</select> WLnode<br />';
     58
     59      list += '<input type="text" id="enc" name="enc" size="10"/> Encrypted<br />';
    5460      list += '<input type="text" id="colour" name="colour" size="10"/> Colour<br />';
    5561      list += '<input type="text" id="lname" name="lname" size="10"/> Layername<br />';
Note: See TracChangeset for help on using the changeset viewer.