Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60785
    
  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
 
Don't get me started about those stupid light bulbs.
 
subject: Tracking the changes made in browser window
 
Similar Threads
How to hide the titlebar of popup window in IE7
Is it possible to execute a function on window close
disable close button
catching page change or browser close
Detecting multiple browser windows