I am having this weird problem with the following ajax request.
$.ajax({
type:'POST',
url:'import_data.php',
data:'buildquery',
dataType:'xml',
success:function(response){
console.log(response);
},
complete:function(response){
console.log(response);
},
error:function(jqXHR,textStatus,errorThrown){
alert('error');
console.log(textStatus, errorThrown);
}
});
In import_data.php I have some database operations which are executed successfully (this took about 30 mins)and after it prints the following xml file
<metaclass>
<status>ok</status>
</metaclass>
But the problem is I am not getting any response,even after completion of my php execution. The request is still not completed,In firebug request is still in progress...
My response is working fine if the script execution time is less, I mean if import_data.php only takes 2 or 3 mins then I am getting the response.....
Any information will be much appreciated, Thanks in advance.