![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 ![]() |
#3
| |||
| |||
|
|
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 ![]() |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
... 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 ![]() |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |