HighDots Forums  

problems on microsoft XMLDOM in Mozila

alt.html.dhtml alt.html.dhtml


Discuss problems on microsoft XMLDOM in Mozila in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eitan
 
Posts: n/a

Default problems on microsoft XMLDOM in Mozila - 11-28-2004 , 12:50 AM






Hello,
IE is fine,
but when I am using Mozila browser and do in javascript as follows :

var current_menu;
current_menu = new ActiveXObject("Microsoft.XMLDOM");

....
It works only for Internet Explorer.
For Mozila/Netscape/Fire-Fox - it is an error.

What can I do instead ?

Thanks




Reply With Quote
  #2  
Old   
Jason Brown [MSFT]
 
Posts: n/a

Default Re: problems on microsoft XMLDOM in Mozila - 11-28-2004 , 12:57 AM






Well, of course it doesn't work - it's an IE-only feature.

what is it you're trying to do exactly?


--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.
"Eitan" <no_spam_please (AT) nospam (DOT) com> wrote

Quote:
Hello,
IE is fine,
but when I am using Mozila browser and do in javascript as follows :

var current_menu;
current_menu = new ActiveXObject("Microsoft.XMLDOM");

...
It works only for Internet Explorer.
For Mozila/Netscape/Fire-Fox - it is an error.

What can I do instead ?

Thanks






Reply With Quote
  #3  
Old   
Bob Barrows [MVP]
 
Posts: n/a

Default Re: problems on microsoft XMLDOM in Mozila - 11-28-2004 , 07:51 AM



Umm, I think he's trying to use the MS XML Parser in
Mozila/Netscape/Fire-Fox.

Eitan, Google is your friend:
http://www.google.com/search?sourcei...bject+Netscape

especially this one:
http://www.howtodothings.com/showart...sp?article=784

Bob Barrows

Jason Brown [MSFT] wrote:
Quote:
Well, of course it doesn't work - it's an IE-only feature.

what is it you're trying to do exactly?



This posting is provided "AS IS" with no warranties, and confers no
rights.
"Eitan" <no_spam_please (AT) nospam (DOT) com> wrote in message
news:41a967ec$1 (AT) news (DOT) 012.net.il...
Hello,
IE is fine,
but when I am using Mozila browser and do in javascript as follows :

var current_menu;
current_menu = new ActiveXObject("Microsoft.XMLDOM");

...
It works only for Internet Explorer.
For Mozila/Netscape/Fire-Fox - it is an error.

What can I do instead ?

Thanks
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"




Reply With Quote
  #4  
Old   
Eitan
 
Posts: n/a

Default Re: problems on microsoft XMLDOM in Mozila - 11-28-2004 , 12:31 PM



....
So, I see I should have code for IE, and code for Mozila/Netscape (isn't any
elegant way to do so - or a fixed javascript, for each xml function, so I
can use it).

After reading the links,
I was trying to do something like :
var current_menu;
if (document.implementation && document.implementation.createDocument)
{
// MOZILLA
current_menu = document.implementation.createDocument("", "doc", null);
current_menu.load(my_xml_file_name);
}
else
{
current_menu = new ActiveXObject("Microsoft.XMLDOM")
current_menu.async=false;
current_menu.load(my_xml_file_name);
}

.... Things look to be work fine,
but I see that other commands are not available for Mozila.
I didn't understand from the links,
but how can I do the equivalant on Mozila for :
alert (current_menu.xml);

Thanks



Reply With Quote
  #5  
Old   
Bob Barrows [MVP]
 
Posts: n/a

Default Re: problems on microsoft XMLDOM in Mozila - 11-28-2004 , 01:08 PM



Eitan wrote:
Quote:
...
So, I see I should have code for IE, and code for Mozila/Netscape
(isn't any elegant way to do so - or a fixed javascript, for each xml
function, so I can use it).

After reading the links,
I was trying to do something like :
var current_menu;
if (document.implementation && document.implementation.createDocument)
{
// MOZILLA
current_menu = document.implementation.createDocument("", "doc",
null); current_menu.load(my_xml_file_name);
}
else
{
current_menu = new ActiveXObject("Microsoft.XMLDOM")
current_menu.async=false;
current_menu.load(my_xml_file_name);
}

... Things look to be work fine,
but I see that other commands are not available for Mozila.
I didn't understand from the links,
but how can I do the equivalant on Mozila for :
alert (current_menu.xml);

Thanks
To tell you the truth, I don't know. I've always developed for IE only.
Hopefully one of the other regulars in this group will weigh in (Dave
Anderson, where are you? :-) )

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"




Reply With Quote
  #6  
Old   
Eitan
 
Posts: n/a

Default Re: problems on microsoft XMLDOM in Mozila - 11-28-2004 , 02:26 PM



When developing web-sites, about 90% use IE,
but what about the others - they couldn't see the site properly.

I also write mainly for IE, but I want that as many people could see my
internet site properly.
Besides, there is a race outside, and what I know is that .NET classes can
be seen only on IE version 6.0 and upper only...
so it may not be a big dill if my site will be IE only, as you stated.

I need to find an elegant solution for a site that is both seen in IE and
Netscape.
What should be my attitudes for building my site to be seen properly both on
IE & Netscape ?
(some of my attitudes : using frames, so all the elements will be seen at
their proper positions, and use little code in flash).

Thanks



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.