04 May
by: Matt in Development, JavaScript, PHP
tags: ajax, JavaScript, lighttpd, long polling, nginx, php
Background “Long polling” is the name used to describe a technique which: An AJAX request is made (utilizing a javascript framework such as jQuery) The server waits for the data requested to be available, loops, and sleeps (your server-side PHP script) This loop repeats after data is returned to the client and processed (usually in [...]
07 Nov
by: Matt in Development, JavaScript, PHP
tags: ajax, iframe, JavaScript, long polling, php, progress bar
UPDATE 2011-01-23: I’ve revisited this old trick and fixed some bugs some of which were in the comments, so thanks. The changes are the setTimeout in the parent window’s update function (to give the DOM some time to render) and the use of str_pad to force the browser to begin parsing/execution. I’ve been developing a [...]
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.