$.ajax({
type : "POST",
url:"<?php echo TESTMINE_APP_URL; ?>/ajax/export-details",
data:'paginationHash='+paginationHash+'&exportType='+exportType+'&userId='+userId,
dataType: "html",
success: function(requestId){
var popup = window.open("sample1.php","exportWindow");
popup.document.write('<html><body>Status: <span id="status">Please wait...</span></body></html>');
setInterval(function(){
var status = checkStatusOfRequest(requestId);
alert(status);
popup.document.getElementById('status').innerHTML = status;
}, 9000)
}
});