Shortest way to create an XMLHttpRequest object

Tagged with: , , ,

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 Response to “Shortest way to create an XMLHttpRequest object

  • 1
    Siva
    February 13th, 2008 10:19

    Hi Binny

    can u give me some examples for ajax validation, i need to validate 4 fields (using ajax) when user submits the form.

Leave a Reply