[jQuery] jQuery - Binding to Ajax Event
Hi all
I am developing a portal and i am kind of stuck.
I am using multiple AJAX calls to get data dynamically from a JSON
file.
In one page I am making 2 AJAX calls, and I want to call a function on
call back from AJAX. I found out a way to do it, its something like
this,
$(window).bind("ajaxComplete", function() {
function1();
});
Now problem here is, function1 is being called twice, on each AJAX
callback. Is there any way so that i can call function1 only once.
Thanks