[Bese-devel] Server pushing
Henrik Hjelte
henrik.hjelte at poboxes.com
Mon Jan 9 18:47:25 UTC 2006
On mån, 2006-01-09 at 10:34 -0500, William Halliburton wrote:
>
> Is it currently possible to have a page saying "Please wait -
> processing" that then changes when the calculation is finished server
> side?
It is not possible to push HTML from the server side, not even with Lisp
or ucw.
AFAIK the only ways are either to simulate it by polling from the client
side (with javascript), or easiest you can show the "Please wait" page
first, the do the calculation in a next request (a reload of the page,
triggered by javascript) that is slow but finally returns the answer.
The Ajax technique (a version of polling) is to make a javascript
snippet that creates a XMLHttpRequest object in the browser. This object has a
property called onreadystatechange to which you can assign a function that is
called several times, but when the XMLHttpRequest objects readyState
property is 4, you know the document has been loaded and you can do what
you want to do.
/Henrik Hjelte
>
> Thank you,
> Will
> _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
More information about the bese-devel
mailing list