Wednesday, 28 August 2013

Run function when another function finishes jQuery

Run function when another function finishes jQuery

When a page is done refreshing, jQuery event is launched:
$(#id).trigger('reloaded');
'reloaded' is a custom event;
How do i set up a listener , such that, when it is done 'reloading' , i
run another function:
I was thinking about this:
$(#id).on('reloaded',function(ev) {
alert("LAUNCH function");
});
But this doesnt work

No comments:

Post a Comment