php - how to get live results with jquery? -


I do separate queries with php and jquery and get results with .jax () when all The question comes back to their values ​​what I want to do, as soon as they are ready to get those values. Now the user has to wait for all the questions, but the first query gives the value 30 seconds before the second value, so I should not wait to see all the results once the user wants me to see the results. Just return results for how can I do this?

If you are waiting for several database queries to return, Increase in many AJAX calls In other words, 2 AJAX requests, one for the first query and the second for the second query (which is the value of 30 seconds after the first time). This way you can return the first query back to the page and display it - or whatever should be done - while waiting for any additional AJAX call

Of course you can increase this technique as additional AJAX requests.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -