This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes difference between Microsoft.XMLHTTP and Msxml2.XMLHTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "difference between Microsoft.XMLHTTP and Msxml2.XMLHTTP" Watch "difference between Microsoft.XMLHTTP and Msxml2.XMLHTTP" New topic
Author

difference between Microsoft.XMLHTTP and Msxml2.XMLHTTP

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

hi ranchers,

I am trying the Example of Ajax from this link

There we have these things to creating a Object of XMLHttp Object.
both are using for the IE.

can you tell me the difference between in these?


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
David C. Crane
author
Ranch Hand

Joined: Oct 13, 2005
Posts: 59
They're just different IDs for ActiveX controls - under the hood they're pretty much identical until you get into heavyweight XML stuff like XPath. So, on the whole, for Ajax development, it doesn't make a big difference.

The w3schools example is presumably trying both to ensure better support on a wider range of Windows-based web browsers. You'll see similar code in a lot of Ajax libraries, but you don't need to worry about it too much.

Dave


---<br />Author of...<br />'Ajax in Action' <a href="http://manning.com/crane" target="_blank" rel="nofollow">http://manning.com/crane</a><br />'Prototype & Scriptaculous in Action'<br /><a href="http://manning.com/crane3" target="_blank" rel="nofollow">http://manning.com/crane3</a><br />'Ajax in Practice'<br /><a href="http://manning.com/crane2" target="_blank" rel="nofollow">http://manning.com/crane2</a>
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by David C. Crane:
They're just different IDs for ActiveX controls - under the hood they're pretty much identical until you get into heavyweight XML stuff like XPath.


Thanks for your reply David C. Crane
 
jQuery in Action, 2nd edition
 
subject: difference between Microsoft.XMLHTTP and Msxml2.XMLHTTP