[Mapbender-commits] r1913 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Dec 12 09:38:28 EST 2007
Author: verenadiewald
Date: 2007-12-12 09:38:28 -0500 (Wed, 12 Dec 2007)
New Revision: 1913
Modified:
trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
Log:
set onchange function for IE
Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2007-12-12 14:32:15 UTC (rev 1912)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2007-12-12 14:38:28 UTC (rev 1913)
@@ -96,7 +96,7 @@
function removeChildNodes(node) {
while (node.childNodes.length > 0) {
- var childNode = node.firstChild;
+ var childNode = node.firstChild;
node.removeChild(childNode);
}
}
@@ -139,13 +139,11 @@
function initModWfsGazetteer() {
// empty nodes
var nodesToEmpty = ["selectWfsConfForm", "wfsForm", "res", "wfsInfo"];
-
while (nodesToEmpty.length > 0) {
var currentId = nodesToEmpty.pop();
var currentNode = document.getElementById(currentId);
removeChildNodes(currentNode);
}
-
document.getElementById("wfsGeomType").style.visibility = "hidden";
document.getElementById("wfsRemove").style.visibility = "hidden";
@@ -247,8 +245,18 @@
function appendWfsConfSelectBox() {
var selectNode = document.createElement("select");
selectNode.name = "wfs_conf_sel";
- selectNode.setAttribute("onchange", "global_selectedWfsConfId = this.value;setWfsInfo();appendStyles();appendWfsForm()");
-
+ var wfsFormNode = document.getElementById("selectWfsConfForm");
+ if (parent.ie) {
+ selectNode.onchange = function() {
+ global_selectedWfsConfId = this.value;
+ setWfsInfo();
+ appendStyles();
+ appendWfsForm();
+ };
+ }
+ else{
+ selectNode.setAttribute("onchange", "global_selectedWfsConfId = this.value;setWfsInfo();appendStyles();appendWfsForm();");
+ }
var isSelected = false;
for (var wfsConfId in global_wfsConfObj) {
var optionNode = document.createElement("option");
@@ -438,7 +446,6 @@
}
if (event == "over") {
global_resultHighlight.add(currentGeom, cw_fillcolor);
- global_resultHighlight.paint();
}
else if (event == "out"){
global_resultHighlight.del(currentGeom, cw_fillcolor);
@@ -453,7 +460,6 @@
parent.mb_calculateExtent(targetArray[0], bbox[0].x, bbox[0].y, bbox[1].x, bbox[1].y);
parent.zoom(targetArray[0], 'true', 1.0);
global_resultHighlight.add(currentGeom, cw_fillcolor);
- global_resultHighlight.paint();
}
return true;
}
@@ -463,7 +469,7 @@
<form name='selectWfsConfForm' id='selectWfsConfForm'></form>
<img src = "" name='wfsGeomType' id='wfsGeomType'>
<img src = "" name='wfsRemove' id='wfsRemove'>
-<a name='wfsInfo' id='wfsInfo'/>
+<a name='wfsInfo' id='wfsInfo'></a>
<form name='wfsForm' id='wfsForm' onsubmit='return validate()'></form>
<div name='res' id='res' style='width:180px'></div>
</body>
More information about the Mapbender_commits
mailing list