Hello, I'm working on a legacy system developed with PHP. This system works as a single-page application using jquery.ajax to load the pages that the user requests, each page requested to the system is loaded into a new tab. On search pages depending on the filter by the user the processing may take something around 30 or 40 seconds to return due to the volume data in the database. The problem occurs in this case quoted above where the user can not do anything else in the system until the search request is completed. If the user tries for example to open another page he can not because the system is still processing the previous request. I would like to know if there is any way for PHP to allow multiple requests from a user, in this way the system will allow the user to load other pages while the search is requested.
javascript used in the request
$.ajax({
type: 'post',
url: 'php/incluir_pesquisa.php',
async: true,
data: {
tabID: documentoId,
nomeDocumento: nomeDocumento
},
success: function (result) {
$('#jqxTabs').jqxTabs(
'addLast',
'Pesquisar',
result
);
}
});