<ajax-response>
<response id="alert_ip" type="script">
alert("Your Ip is xx.xx.xx.xx");
</response>
<response id="myip" type="element">
<font color="red">xx.xx.xx.xx</font>
</response>
<response id="current" type="script">
alert("Current time is " + new Date());
</response>
</ajax-response>
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");
}
}
element.__defineGetter__("text", function(){return this.firstChild.nodeValue});
This topic is archived.