ajaxSuccess, but myfuncttion executes first problem
I have a function like:
function
doWorkForJobCreate() {
$
.ajax({ url: 'myurl',
success
: function (data, status, req) {
if (!processFKErrorHeader(req.getResponseHeader("fkerror"))) return;
doJobs();
}
})
}
i should use
processFKErrorHeader, if parameters exist, authorized etc.
and should do for my each ajax to my server(now i have about 50).
i want to do this from single point like ajaxSuccess.
But the problem is ajaxSuccess execute after my function
any advice?
moguzalp