0
Hello, I am working on a legacy system developed with PHP. This system acts as a single-page application using jquery.ajax to load the pages the user requests, each page requested from the system is loaded into a new tab. In search pages depending on the filter by the user the processing can take something around 30 or 40 seconds to return due to the data volume in the database. The problem occurs in this case mentioned above where user can’t do anything else in the system until the query request is completed. If the user tries for example to open another page he cannot because the system is still processing the previous request. I wonder if there is any way PHP allows multiple requests from a user, so the system now allows 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
);
}
});
Put the
javascript
that you’re using, but I believe your problem solves withasync:True
– Papa Charlie
Related: Apache/PHP server does not respond while making a SOAP request
– Guilherme Nascimento