Tag Archives: ajax using get and post method

How to use post and get method in ajax

Posted on 23. Apr, 2009 by admin.

2

Using GET method
Now we open a connection using the GET method.

var url = “get_data.php”;
var params = “lorem=ipsum&name=binny”;
http.open(“GET”, url+”?”+params, true);
http.onreadystatechange = function() {//Call a function when the state changes.
if(http.readyState == 4 && http.status == 200) {
alert(http.responseText);
}
}
http.send(null);

I really hope that this much is clear for you – I am assuming that you know a bit of Ajax [...]

Continue Reading

Get Adobe Flash playerPlugin by wpburn.com wordpress themes