Hey
var moz = (typeof document.implementation != 'undefined') && (typeof
document.implementation.createDocument != 'undefined');
if(moz) alert(moz);
var service = "http://localhost/service.asmx/GetValue?SessionID=527";
var xmlDoc=document.implementation.createDocument("", "", null);
xmlDoc.async = false;
xmlDoc.load(service);
var result = xmlDoc.getElementsByTagNameNS(
'http://tempuri.org/',
'string'
);
var XmlReturn = result[0].firstChild.nodeValue;
alert(XmlReturn);
When I run this in opera xmlDoc.load(service) is broken. I tested
implementation of document.implementation... and it seems like it works in
opera because my value "moz" is true. But when I try to load service it
breaks. I have no problem with this code in FF or NN.
Jarod
|