Hi folks,
I have a map which has a point layer on it and if you click on one of the
points it will go and get a picture file name, and then parse the
information to feed as a source for an image box and then display the
picture for the user.
The response is a filtered reply from a GetFeatureInfo Request (one
attribute which corresponds to my picture filename) that is plunked into a
nodelist (taken from an example map) and then parsed down to just the
"xxx.jpg" text of the file name.
// sets the HTML provided into the nodelist element
function setHTML(response) {
document.getElementById('nodelist').innerHTML =
response.responseText;
var x =
document.getElementById('nodelist').childNodes.item(4).nodeValue.toString();
var y = "My_Files/Pictures/";
document.getElementById('PictureBox1').src = y + x;
z = document.getElementById('PictureBox1').src.toString();
while (z.match("%20")) {
z = z.replace(new RegExp("%20", ""), "");
}
alert(z);
document.getElementById('PictureBox1').src = z;
};
This works great in FireFox, but Internet Explorer (8) does not like it at
all. It dies on this line
"document.getElementById('nodelist').innerHTML = response.responseText;"
Any advice is welcome...
Andy Davis.
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Internet-Explorer-NodeList-problem-tp5887297p5887297.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users