Hi,
I have the following problem that I can't seem to find a solution to.
I have a jsp webserver and it creates webpages containing different things
and amongst them there is field with an image that should be changing
(like a slideshow). The problem is that I don't know beforehand the timing
of the changes. The image should change when an event occurs (e.g. a
person presses a key), but that event has to occur on the server (or on
another computer but definetely not on the client).
Now one solution is when the event occurs on the server to just generate
the html all over and send it again but I don't want to do that. I want
the image to change but I don't want the whole webpage to reload.
So I was wondering can a custom event handler be implemented in javascript
such that when some event happens elsewhere, not on the client, my
handler will catch it and perform the required operation?
Thanks in advance,
Stefan