webservice in Opera ?

J

Jarod

Hey
I have the following code:
service contains address to webservice.

var xmlDoc=document.implementation.createDocument("", "", null);
xmlDoc.async = false;
xmlDoc.load(service);

This code works perfectly in FF and NN but in Opera crashes...
If I try if(document.impleimplementation.createDocument ) opera returns true
as it was ok to use it.
Maybe you can tell me how to connect and get data from webservice ( .asmx )?
Any good website with XmlHTTPRequest ? I saw a few examples but nor of them
worked in Opera. If you have some tested code please share :)
Jarod
 
M

Martin Honnen

Jarod wrote:

I have the following code:
service contains address to webservice.

var xmlDoc=document.implementation.createDocument("", "", null);
xmlDoc.async = false;
xmlDoc.load(service);

This code works perfectly in FF and NN but in Opera crashes...
If I try if(document.impleimplementation.createDocument ) opera returns
true as it was ok to use it.

Yes, the W3C Core DOM defines a method
document.implementation.createDocument
and Opera 8 and later at least implement that but neither the async
property nor any load method are part of the W3C DOM.
My suggestion to load XML data cross browser is XMLHttpRequest, that is
not a W3C DOM standard but Mozilla has it since 1.0, Opera since 8.0
(alas setRequestHeader method is missing in 8.00), Safari since 1.2,
Konqueror too, IE/Win as ActiveX since IE 5.
<http://www.faqts.com/knowledge_base/view.phtml/aid/6826/fid/616>
<http://www.faqts.com/knowledge_base/view.phtml/aid/17226/fid/616>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top