Hi ALL,
I have an object on the server which listenes for timer and does some
work as soon as the timer fires up.
I need to display the output of this object on the web-client.
Now I try to use AJAX.
As soon as browser has loaded the page I send XMLHttpRequest to servlet
which returns the output of that timer-object to the client.
Is that possible to send a reply to XMLHttpRequest callback function
every time when timer fires up without initiating XMLHttpRequest from
the client?
Or I should use some other technique?
Thank you.
David Segall - 27 May 2006 16:13 GMT
>Hi ALL,
>
[quoted text clipped - 9 lines]
>every time when timer fires up without initiating XMLHttpRequest from
>the client?
I decided that the solution to this problem was to send another
XMLHttpRequest as soon as I received a reply from the server but for
the server to wait until the information had changed before it replied
to the new request. I have not actually tested this "solution" so I
would be grateful for a follow-up post if you do.