Creating an XMLHttpRequest Object

by satheesh 2010-01-29 20:32:37

Creating an XMLHttpRequest object is done with one single line of JavaScript.

In all modern browsers:

var xmlhttp=new XMLHttpRequest()

In older Microsoft browsers (IE 5 and 6):

var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")

Tagged in:

892
like
0
dislike
0
mail
flag

You must LOGIN to add comments