This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between Microsoft.XMLHTTP and Msxml2.XMLHTTP

 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
David C. Crane
author
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic