kaijim

XML Tutorial

10 posts in this topic

Perhaps they don't need to use it, considering they may have a certain standard...Or just haven't adapted yet to the standerd... :) Good question though.

Share this post


Link to post
Share on other sites

Hello.There is an error in "XML to HTML" chapter, its example is not valid for browser EI6 (I'm user EI6).Not valid code:

...else if (ActiveXObject("Microsoft.XMLDOM"))...

Valid code:

...else if (window.ActiveXObject)...

Thanks.

Share this post


Link to post
Share on other sites

Why isn't the top snippet valid? Remember, window is the default namespace, and the top example checks for a certain ActiveX control, instead of just for the presence of ActiveX.

Share this post


Link to post
Share on other sites
Why isn't the top snippet valid? Remember, window is the default namespace, and the top example checks for a certain ActiveX control, instead of just for the presence of ActiveX.
Hello, Synook.You are right, "window" not so is important.It is valid code too:
...else if (ActiveXObject)...

But this code not working:

...else if (ActiveXObject("Microsoft.XMLDOM"))...

This fragment of a code (ActiveXObject("Microsoft.XMLDOM")) is completely not necessary, besides it still does problems, I user EI6 - I checked it.Thanks.

Edited by Hillel

Share this post


Link to post
Share on other sites

Hmm, you're right, it should be Microsoft.XMLHTTP. I suppose they forgot to update the reference.http://www.w3schools.com/XML/xml_http.asp

1 person likes this

Share this post


Link to post
Share on other sites
Hmm, you're right, it should be Microsoft.XMLHTTP. I suppose they forgot to update the reference.http://www.w3schools.com/XML/xml_http.asp
Yeah, I actually realized this two days ago because I'm working on an XML form that must be compatible with IE6Does anyone know how to make this work? I tried both examples with no luck, and I don't know how to implement Microsoft.XMLHTTP Edited by cowsdonthack

Share this post


Link to post
Share on other sites
Yeah, I actually realized this two days ago because I'm working on an XML form that must be compatible with IE6Does anyone know how to make this work? I tried both examples with no luck, and I don't know how to implement Microsoft.XMLHTTP
nobody seems to have resolved this thread, so i thought i'd try to 'bump' it in a manner of sorts.if you're in a localhost environment, then the way to make it work is to not use IE6 !! :)http://w3schools.invisionzone.com/index.ph...st&p=214004

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now