Ignore:
Timestamp:
May 30, 2011, 1:06:14 PM (13 years ago)
Author:
dennisw
Message:

Solved form problem. Fixing form now.

Next step: get the chained selections working.

File:
1 edited

Legend:

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

    r9218 r9219  
    5858  var formstart = '<form method="get" action="">';
    5959  var formend = '<input type="button" value="Add filter" onClick="addFilter()"/></form>';
     60  var layername = '<input type="text" id="lname" name="lname" size="10"/> Layername<br />';
     61  var colour = '<input type="text" id="colour" name="colour" size="10"/> Colour<br />';
     62  var user = '<select id="user" style="width:104px"><option></option></select> User<br />';
     63var dataset = '<select id="dataset" style="width:104px"><option></option></select> Dataset<br />';
     64var node = '<select id="node" style="width:104px"><option></option></select> Node<br />';
    6065
    6166  document.getElementById('filter_list').innerHTML+=formstart;
    62 
    63   var filters = new Array('user', 'dataset');
     67  document.getElementById('filter_list').innerHTML+=user;
     68
     69  var filters = new Array('user');
    6470  for (var i=0; i<filters.length; i++) {
    6571    get_json(filters[i]);
     
    8086function set_filter(filter, responseText) {
    8187  json=eval('(' + responseText + ')');
    82   var options = '<select id=' + filter + ' style="width:104px"><option></option>';
     88  var options = '';
    8389  for (var i=0; i<json.length; i++){
    8490    options += '<option>' + json[i].fields.naam + '</option>';
    8591  }
    86   options += '</select> ' + filter + '<br />';
    87   document.getElementById('filter_list').innerHTML+=options;
     92  document.getElementById('user').innerHTML+=options;
    8893}
    8994
Note: See TracChangeset for help on using the changeset viewer.