aspose file tools*
The moose likes JSP and the fly likes Tracking the changes made in browser window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Tracking the changes made in browser window" Watch "Tracking the changes made in browser window" New topic
Author

Tracking the changes made in browser window

HungryJavaGoat
Greenhorn

Joined: Jun 30, 2006
Posts: 23
Hi,
I am displaying a profile data in browser window after executing a JSP. There is a button called Close . When the user clicks the close button.. if the user has made some changes.. then i need to save that data to DB othewise i shouldn't . How can we check that ? .

in javascript we can do one to one checking for each form elements ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

You can, but this is not something I'd do on the client with javascript. Much better to check on the server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
HungryJavaGoat
Greenhorn

Joined: Jun 30, 2006
Posts: 23
Yeah..thats right .. thinking to do that in controller layer before making call to facade layer (EJBs). Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tracking the changes made in browser window
 
Similar Threads
disable close button
Is it possible to execute a function on window close
How to hide the titlebar of popup window in IE7
Detecting multiple browser windows
catching page change or browser close