Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submit form when closing browser

 
Kieth Nogins
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;
Is there a way to submit a form when the user closes the browser?
I want to be able to know when a user terminates his session by manually closing the browser.

thanx
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just asked yesterday: http://www.coderanch.com/t/118009/HTML-JavaScript/Browser-Button

Eric
 
karthi karthi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I am also facing the same problem. after pressing the "Cancel" button from the .jsp file I want to remove the session attributes from servlet. so I submit the form to a servlet(where i remove the session attributes) and then coded the script window.close().

Window has closed.

But from servlet I am getting the exception as
"weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request:" If you have an idea please give it advance.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic