Tagged: asychronous

AJAX PHP progress no polling 12

How to use AJAX to show progress of a PHP script without polling

A lot of times we want to provide some sort of feedback to the user, while executing a task that usually takes a lot of time in the server. However it is not always desirable to utilize a technique like polling. Instead we can use either one of these two methods in order to update the DOM and let the user know what is going on.


AJAX Synchronous Call without freezing the UI

I was recently asked, by a good friend of mine if it’s possible to make synchronous AJAX calls without freezing the UI.
The short answer is: no.
However there are a lot of ways that you can get around this restriction, some more graceful than the others. In this article I will demonstrate three of them