My question is, how can I call a function after another function containing ajax is complete?
I don't want to use a delay. I used the jquery done() function, but it is maint only for ajax:
$.ajax().done([//second function])
The thing is that I have the ajax stored in a function, and the done methode cannot work this way: ajaxFunction().done(function(){});
Is there any other solution?