473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

webservice in Opera ?

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

Dec 24 '05 #1
1 1320


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>
--

Martin Honnen
http://JavaScript.FAQTs.com/
Dec 24 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: DraguVaso | last post by:
Hi, I'm new to WebServices, and I'm doing some tests (with a small VB.NET-application) to know the performance-difference between a WebService and the 'normal'-way of getting data (just...
6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
7
by: Kristof Thys via .NET 247 | last post by:
Post a new message to microsoft.public.dotnet.languages.vc http://www.dotnet247.com/247reference/default.aspx Hello, I've been struggling for weeks with this problem, I hope I find some...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
2
by: HÃ¥kan Lundgren | last post by:
Hi! I'm trying to develop a WS that access a SQLServer2000. The WS shall use Integrated Security to access the database. The user of the WS is anonymous. I want THE WS to run as a specific user....
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.