Tagged: ajax

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 6

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

html5 4

HTML5: How to change the browser URL without reload

One less known feature of HTML5 is the onpopstate event. Using onpopstate you can change the browser URL via javascript, without reloading the page and the browser history will be updated accordingly. No longer do you need to use the hash(#) hack, if you want to add state in an AJAX powered application, and search engines bots will be able to crawl your pages and index them.