Hi all,
I'm having an issue with the following XML Data Island/Javascript code. It works fine in IE6 but generates an error (object required) when tried in IE5 or IE5.5.
Here is the data island (greatly reduced)
<XML ID='xmlStationAirlines'>
<?xml version="1.0" encoding="UTF-8"?>
<stations>
<station desc="Albany" id="E09">
<airline adesc="Air Georgian" aid="GGN"/>
</station>
</stations>
</XML>
Here is the (simplified) javascript, which is called via the onchange event for a dropdown.
<SCRIPT LANGUAGE="JavaScript">
function getAirlines()
{
var xmlBlock = document.getElementById("xmlStationAirlines"
var xmlDoc = xmlBlock.XMLDocument;
var node = "/*/station[@id=\"" + selStationId + "\"]"
var selNode = xmlDoc.selectSingleNode( node );
alert(selNode.nodeName);
}
</SCRIPT>
The error occurs on the alert line.
Thanks!
I'm having an issue with the following XML Data Island/Javascript code. It works fine in IE6 but generates an error (object required) when tried in IE5 or IE5.5.
Here is the data island (greatly reduced)
<XML ID='xmlStationAirlines'>
<?xml version="1.0" encoding="UTF-8"?>
<stations>
<station desc="Albany" id="E09">
<airline adesc="Air Georgian" aid="GGN"/>
</station>
</stations>
</XML>
Here is the (simplified) javascript, which is called via the onchange event for a dropdown.
<SCRIPT LANGUAGE="JavaScript">
function getAirlines()
{
var xmlBlock = document.getElementById("xmlStationAirlines"
var xmlDoc = xmlBlock.XMLDocument;
var node = "/*/station[@id=\"" + selStationId + "\"]"
var selNode = xmlDoc.selectSingleNode( node );
alert(selNode.nodeName);
}
</SCRIPT>
The error occurs on the alert line.
Thanks!