Hi,
I'd say you have to use an applet for that, but then I am not really a javascript
expert. Maybe you get a better answer from a javascript
related list/newsgroup.
Cheers,
-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
tagtraum industries http://www.tagtraum.com/
jo! small&smart 2.2 servletengine
Java Server & Servlets The web-application book
The WebApp Framework http://www.webapp.de/
Bartsch Axel wrote:
> Hi,
>
> Does anybody know whether it is possible for a HTML-page to send a HTTP request to a
>servlet
> and to use the response only to perform actions such as writing the actual status
>(of the state of an application running at the server)
> that was reported by the servlet in the response, but not to reload the HTML page?
> This means that the response does not contain any HTML info that will be interpreted
>by the browser to reload a page.
>
> The idea: poll the servlet e.g. every 5min to get information if a certain
>application is active or not.
> A JAVASCRIPT timer could be used to trigger the polling. Then when the response
>arrives JAVASCRIPT could perform an action.
> But I don't want a new page setup every 5 min: this would be annoying for the user.
> So the HTTP request/response should only be used as communication between JAVASCRIPT
>of the requesting page and the
> servlet and the browser should just pass the information without reloading.
>
> Do U think it is possible or must such things be performed using an applet?
>
> Axel, Lannion/France
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html