14 Mar

Shortest way to create an XMLHttpRequest object

For best results use a framework – like jx

http = window.XMLHttpRequest ? new window.XMLHttpRequest : (window.ActiveXObject ? new ActiveXObject("MSXML2.XMLHTTP"): null);

Original Article
[tags]javascript,ajax,code,xhr[/tags]

One thought on “Shortest way to create an XMLHttpRequest object

Leave a Reply

Your email address will not be published. Required fields are marked *