Talk:Periodic Refresh
From Ajax Patterns
Archived Version
There's an archived version of this pattern available, taken from the Ajax Pattern book draft, showing roughly how it appeared before the page became publicly editable.
There's an archived version of this pattern available, taken from the Ajax Pattern book draft, showing roughly how it appeared before the page became publicly editable.
Contents |
Ajax/Javascript Programming and Usability in "Ajax Design Patterns" Book |
[edit]
why polling?
Do we really want to poll for information?
As I understand it, Periodic Refresh suggests that the client should query for new information with a certain refresh rate. This technique is called polling and deservedly it's frowned upon.
I'd rather let the server decide whether new information warrants a message to the client. All we need is a message channel from the server to the client. This can be implemented through an XMLHttpRequest which is not answered immediately but hangs on the server until new events happen on the server. Only then the server sends the response. -- Kabsi 07:08, 29 November 2006 (EST)
Time your website with
WebWait - from the creator of AjaxPatterns.org
