Whenever any homework needs to be done after any ajax request has been loaded then this approach can be utilized.
For e.g. whenever any title of table derived from liberation_make_table is clicked for sorting the columns then an ajax request is made.
So if the table is loaded in div with id "maketable-1"
Then suppose some steps are to carried out after ajax request is loaded onto that table.
An alert needs to be displayed when the ajax request is completed
Then this section can be added:
For e.g. whenever any title of table derived from liberation_make_table is clicked for sorting the columns then an ajax request is made.
So if the table is loaded in div with id "maketable-1"
Then suppose some steps are to carried out after ajax request is loaded onto that table.
An alert needs to be displayed when the ajax request is completed
Then this section can be added:
$("#maketable-1").ajaxComplete(function(event,request, settings){
alert("hello");
});
Comments