|
|
Using POST method in AJAX - AJAX
|
Views : 1023
|
|
Tagged in : AJAX
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
When we use AJAX concept,frequently we use GET method.There also a way to use POST method in
AJAX.As an example for this we can consider the following example,
var aj=new ActiveXObject("Msxml2.XMLHTTP"); //for IE
var aj=new XMLHttpRequest();//for FireFox and others
aj.onreadystatechange=(state change handling function name);
aj.open("POST","postdata.php",true);
aj.send(name=hiox&id=5555)//here the values name and id are send to server in POST method.
|
|
By Selva, On - 2008-03-11 |
|
|
|