Changeset 9269 for src/django_gheat/website/static/heatmap_extensions.js
- Timestamp:
- Jun 17, 2011, 2:31:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/django_gheat/website/static/heatmap_extensions.js ¶
r9267 r9269 1 1 // Uses zoomlevel and mouseposition to call the nodelist.py view. View returns nodes in json format which is read and printed in document element. 2 function getNodeList(zoomlevel, mousepos) 2 function getNodeList(zoomlevel, mousepos){ 3 3 $.getJSON("/website/nodelist/" + zoomlevel + "," + mousepos.lat + "," + mousepos.lon, 4 function(json) 4 function(json){ 5 5 content = 'Wireless Leiden nodes on mouseposition:<br /><b>'; 6 6 $.each(json, function(i,json){ … … 10 10 $("#node_list").html(content); 11 11 } 12 ); 13 } 14 15 // Right way to get url parameters?: http://stackoverflow.com/questions/1403888/get-url-parameter-with-jquery/1404100#1404100 16 function getURLParameter(name) { 17 return decodeURI( 18 (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] 12 19 ); 13 20 }
Note:
See TracChangeset
for help on using the changeset viewer.