Hello All,

I need some help with this question. I have a html page where an viewer can
make configuration choices. When the page unloads, I would like to record
the viewer's choices in a database on the server. I set the Unload event
handler:

<body onUnload="javascript: report()">

where report() would call a form's submit() method, which goes to a Servlet.

The question is, what to do in the Servlet so that the browser would go on
in its otherwise normal course without being affected?

response.setStatus(response.SC_NO_CONENT) doesn't work for either IE or NN6.
We went through this before. Doing nothing with the response object seems to
hang the browser. If I write some html stuff back, the browser will show
that instead of its normal target.

Returning true or false in my report() function doesn't make any difference.

Is there a better way to communicate with a servlet?

Thank you for your help.
Qiao

___________________________________________________________________________
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

Reply via email to