I am using AJAX call to get the records. It will take 30 seconds to complete list the record. It is working. But if I open the same page in two windows in the browser, the first window complete the list and show after that the second window call the AJAX request and get the records.
I want to simultaneously ajax call the URL in two windows and get the results. How can I achieve this?
Here is my code,
var page="product.php?category=mobile&p=1";
$.ajax({
url: page,
type: 'GET',
cache: false,
processData:false,
beforeSend: function(data) {
return true;
},
success: function(data, textStatus, jqXHR){
$('#dataContent').html(data);
},
error: function(jqXHR, textStatus, errorThrown){
}
});