Hi I am sending request through ajax and I want process something when ajax request send
I have used:
$('#shwall').ajaxStart(function(){
$('#shwall').html("<img alt=\"loading...\" src=\"img/ajax_loading_new.gif\"/>");
});
and my ajax request code is like following:
$.ajax({
type : 'Post',
url : 'employee.jsp',
data: "emplist="+id,
success : function(data){
$('#employeereport').html(data);
}
});
but my page contains multiple ajax request when I send ajax request every time:
$().ajaxStart(function(){});
code runs but I dont want like that I want to run this code for particular ajax request
so how do I do that
thanks in advanced…
use
like you are using success.
reference : http://docs.jquery.com/Ajax_Events
you can give like :