:: Forum >> General/Off-topic >>
AW Ajax in Action
Sudhaker Raj
Friday, October 7, 2005
Anyone, had any luck with Firefox?
Sudhaker Raj
Wednesday, October 19, 2005
if (!xml.nodeType) {
var s = "" + xml;
if (window.ActiveXObject)
{
xml = new ActiveXObject("MSXML2.DOMDocument");
xml.loadXML(s);
}
else if(document.implementation)
{
var parser = new DOMParser();
xml = parser.parseFromString(s, "text/xml");
}
}
After wasting hours got another problem
var responseText = responseElement.text; // works in IE
var responseText = responseElement.firstChild.nodeValue; // works in gecko
There was a magical statement (perhaps to fix this) inside browsers/gecko.js in 1.x version but it is commented now in 2.x - Why Alex?
element.__defineGetter__("text", function(){return this.firstChild.nodeValue});
Sudhaker Raj
Wednesday, October 19, 2005
This topic is archived.
Back to support forum
Forum search