Prototype Ajax Post Request Example

You can make ajax post request with prototypeJs.

[js]
new Ajax.Request(‘/submit.php’, {
method:"post",
parameters:{
username : "john",
phone : "10732640770"
},
onComplete: function(t){
console.log(t, t.responseText);
}
});
[/js]