|
-
May 23rd, 2003, 04:59 AM
#1
Thread Starter
Addicted Member
XML and Javascript
Hi,
I have a web page that uses an XML file and some javascript to display a dynamic page. I have designed this using Microsoft tools, and I am happy with it's functionality on MSIE5.5 upwards. I have reports from my users who are running Netscape and Opera that say the page errors. When I investigate, I get the following error:
Expression evaluated to null or undefined and is not convertible to object: xmlDoc.root
This is one of the first lines of code in my page. I have embedded object tags in the HTML page that generates the xmlDoc part of the code. as below:
<OBJECT classid="clsid:CFC399AF-D876-11D0-9C10-00C04FC99C8E" id="MSXML" Name="xmlDoc" viewastext></OBJECT>
This works fine for IE but not in Netscape or Opera.
Can anybody please help me out? Does anybody use XML within a web page in Netscape or Opera?
Thanks in advance,
DJ
-
May 23rd, 2003, 08:30 AM
#2
Hyperactive Member
I believe you use the EMBED tag, not the OBJECT tag with Netscape. Don't know about Opera.
-
May 23rd, 2003, 08:31 AM
#3
Thread Starter
Addicted Member
Originally posted by DKCK
I believe you use the EMBED tag, not the OBJECT tag with Netscape. Don't know about Opera.
Do you know if the EMBED tag works with IE? It is only really Netscape that I am worried about at the mo - opera can wait for a while.....
Thanks,
DJ
-
May 23rd, 2003, 09:39 AM
#4
Addicted Member
I dunno if you need to worry about it, but I don't see any way how that HTML would work on any a web broswer in any operating system (ie Mac or Unix). Or, for that matter, if the user does not have MSXML installed on their Windows PC.
They wouldn't have the class installed to load into the page.
Wydok
"It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years."
-John Von Neumann ca. 1949
-
May 26th, 2003, 02:15 AM
#5
<object> os an MS proprietary tag that is completly adapted to the windows COM and OLE Automation.
I think Mozilla will in time implement the tag using their XPCOM, but that would still mean that the object you want must be reimplemented using XPCOM, which won't happen for MSXML.
So what you want to do won't work ever on any Gecko-based browser. It is not cross-platform either, and it wouldn't work on my IE because I have ActiveX enabled only on request.
For other things that use the object tag in IE (e.g. Flash movies), use the embed tag in other browsers. There is a special syntax to combine the two.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|