- Timestamp:
- Apr 17, 2010, 4:22:35 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 9 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7802 r7805 14 14 //This function is called from index.php 15 15 function initialize_map() { 16 suggestMarkers(""); 16 17 //We will only do this function if the browser is compatible 17 18 if (GBrowserIsCompatible()) { … … 270 271 271 272 //Code from w3schools. http://www.w3schools.com/dom/dom_http.asp 272 function loadXMLDoc(url )273 function loadXMLDoc(url, targetDiv) 273 274 { 274 275 xmlhttp=null; … … 283 284 if (xmlhttp!=null) 284 285 { 285 xmlhttp.onreadystatechange=state_Change ;286 xmlhttp.onreadystatechange=state_Change(); 286 287 xmlhttp.open("GET",url,true); 287 288 xmlhttp.send(null); … … 308 309 } 309 310 311 function loadSuggest(url) 312 { 313 xmlhttp=null; 314 if (window.XMLHttpRequest) 315 {// code for Firefox, Opera, IE7, etc. 316 xmlhttp=new XMLHttpRequest(); 317 } 318 else if (window.ActiveXObject) 319 {// code for IE6, IE5 320 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 321 } 322 if (xmlhttp!=null) 323 { 324 xmlhttp.onreadystatechange=state_ChangeSuggest; 325 xmlhttp.open("GET",url,true); 326 xmlhttp.send(null); 327 } 328 else 329 { 330 alert("Your browser does not support XMLHTTP."); 331 } 332 } 333 334 function state_ChangeSuggest() 335 { 336 if (xmlhttp.readyState==4) 337 {// 4 = "loaded" 338 if (xmlhttp.status==200) 339 {// 200 = "OK" 340 document.getElementById("searchlist").innerHTML=xmlhttp.responseText; 341 } 342 else 343 { 344 alert("Problem retrieving data:" + xmlhttp.statusText); 345 } 346 } 347 } 348 310 349 function toggleGoogleSearchMap() 311 350 { … … 330 369 } 331 370 332 333 334 335 371 function suggestMarkers(value) 372 { 373 loadSuggest("inc/suggestions.php?value="+value); 374 } 375 376 377 378 379 -
trunk/src/map/index.php
r7802 r7805 1 1 <?php 2 require_once("inc/kmlHandler.php");3 2 require_once("../config.php"); 4 require_once("inc/node_info_start.php"); 3 require_once($config['root']."/map/inc/kmlHandler.php"); 4 require_once($config['root']."/map/inc/node_info_start.php"); 5 require_once($config['root']."/map/inc/search_node.php"); 5 6 6 7 #getting array from kmlHandler … … 29 30 30 31 <!-- Make our $marker[] array from kmlHandler available to javascript in JSON (No idea on how to this another less ugle way)--> 31 <script >32 <script type="text/javascript"> 32 33 var markers = <?php echo json_encode($markers); ?>; 33 34 </script> … … 44 45 <!-- Loading in the javascript that handles the switching between gebruiker and beheerder --> 45 46 <script type="text/javascript" src="inc/gebruiker_beheerder_switch.js"></script> 47 46 48 </head> 47 49 <body> … … 63 65 <!-- Bottom information space --> 64 66 <div id="infobottom"> 65 <!-- This contains the searchbox of the searchtool, and the send button for it --> 66 <div id="searchbox"> 67 <form> 68 <input type="text" name="naam" size="18" maxlength="30"><input type="button" name="knop" value=" > "> 69 </form> 70 </div> 71 <!-- This contains the list of nodes, in future the searchbox will make it possible to filter this list --> 67 <?php searchNodes(); ?> 72 68 <div id="searchlist"> 73 <select multiple> 74 <option value="node1">Node 1 Leiden</option> 75 <option value="node2">Node 2 Leiden</option> 76 <option value="node3">Node 3 Leiden</option> 77 <option value="node4">Node 4 Leiden</option> 78 <option value="node5">Node 5 Leiden</option> 79 <option value="node6">Node 6 Leiden</option> 80 <option value="node7">Node 7 Leiden</option> 81 <option value="node8">Node 8 Leiden</option> 82 <option value="node9">Node 9 Leiden</option> 83 <option value="node10">Node 10 Leiden</option> 84 </select> 69 85 70 </div> 86 71 </div>
Note:
See TracChangeset
for help on using the changeset viewer.