i make an ajax request to a php file that runs a while loop that looks for new data in the database, but i cant give it new data because the browser is blocked while waiting for the new data.
does anyone know how to not block the browser?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds like you didn’t actually make an Asynchronous-JAX request, but rather a synchronous one.
If you’re using a Javascript library, most of them have a boolean flag for whether or not the request should be asynchronous – make sure you’re not choosing synchronous by accident.