Changeset 9197 for src/django_gheat/website
- Timestamp:
- May 13, 2011, 1:31:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/heatmap.js
r9196 r9197 39 39 map.addLayer(layerHeatmap); 40 40 41 var lon = 4.48 907;42 var lat = 52.1 58431;41 var lon = 4.48319; 42 var lat = 52.14068; 43 43 var zoom = 16; 44 44 … … 60 60 nodelist.onreadystatechange=function(){ 61 61 if (nodelist.readyState==4 && nodelist.status==200){ 62 txt=nodelist.responseText; 63 document.getElementById('nodelist').innerHTML=txt; 62 json=eval('(' + nodelist.responseText + ')'); 63 var list = '<br>'; 64 for (var i=0; i<json.length; i++){ 65 list += json[i].fields.ssid + '<br>'; 66 } 67 document.getElementById('nodelist').innerHTML=list; 64 68 } 65 69 }
Note:
See TracChangeset
for help on using the changeset viewer.