Wednesday 13 May 2015

run some function on ajax complete in prototype

HI sometime we need to detect the ajax complete event .In prototype you can do this by below code



Ajax.Responders.register({
  onComplete: function() {
       yourfunction(); // you can put your code here which you want to run on ajax complete event 
    }
});

No comments:

Post a Comment