This post originated from an RSS feed registered with Web Buzz
by Stuart Langridge.
Original Post: Shortest way to create an XMLHttpRequest object
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
This should work in everything, I think, to get an XMLHttpRequest object for JavaScript in your browser:
http = window.XMLHttpRequest ? new window.XMLHttpRequest : (window.ActiveXObject ? new ActiveXObject("MSXML2.XMLHTTP"): null);
Of course, this only applies if you’re not using a library to make all this stuff go away, which you maybe should be. But if you’re not, this [...]