[Mapbender-commits] r1442 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 6 06:33:46 EDT 2007


Author: christoph
Date: 2007-06-06 06:33:46 -0400 (Wed, 06 Jun 2007)
New Revision: 1442

Modified:
   trunk/mapbender/http/javascripts/mod_gazetteerSQL_client.php
Log:
fixed bug:

in IE you have to use 

.value for the option value
.innerHTML for the option description

in FF there's no prob with just .innerHTML

Modified: trunk/mapbender/http/javascripts/mod_gazetteerSQL_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_gazetteerSQL_client.php	2007-06-06 08:25:03 UTC (rev 1441)
+++ trunk/mapbender/http/javascripts/mod_gazetteerSQL_client.php	2007-06-06 10:33:46 UTC (rev 1442)
@@ -233,6 +233,7 @@
 					currentNode.selected = "selected";
 				}
 				
+				currentNode.value = json.streets[streetId];
 				currentNode.innerHTML = json.streets[streetId];
 				document.getElementById('selectStreet').appendChild(currentNode);
 			}
@@ -261,6 +262,7 @@
 					currentNode.selected = "selected";
 				}
 				
+				currentNode.value = districtObject.districts[districtId];
 				currentNode.innerHTML = districtObject.districts[districtId];
 				document.getElementById('selectDistrict').appendChild(currentNode);
 			}



More information about the Mapbender_commits mailing list