// Uses zoomlevel and mouseposition to call the nodelist.py view. View returns nodes in json format which is read and printed in document element. function getNodeList(zoomlevel, mousepos) { $.getJSON("/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon, function(json) { content = 'Wireless Leiden nodes on mouseposition:
'; $.each(json, function(i,json){ content += json.fields.ssid + '
'; }); content += '
'; $("#node_list").html(content); } ); } // set filter values $(document).ready(function() { // Fastest?: http://stackoverflow.com/questions/170986/what-is-the-best-way-to-add-options-to-a-select-from-an-array-with-jquery $.getJSON("/website/filters/", function(json) { $.each(json, function(i,json){ $("#select_user").append($("