Showing posts with label Ajax. Show all posts
Showing posts with label Ajax. Show all posts

Monday, July 12, 2010

Ajax request in Prototype

Here is the code for making ajax request in prototype.



new Ajax.Request(urlToAccess, {
method: 'get',
onSuccess: function(transport) {


},
onFailure: function(transport) {


}
});