Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tracking the changes made in browser window  RSS feed

 
HungryJavaGoat
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can, but this is not something I'd do on the client with javascript. Much better to check on the server.
 
HungryJavaGoat
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah..thats right .. thinking to do that in controller layer before making call to facade layer (EJBs). Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!