wood burning stoves 2.0*
The moose likes Struts and the fly likes Force Save Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Force Save" Watch "Force Save" New topic
Author

Force Save

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi ,

How do I force an user to save the page when they edit some fields and click on other links.I want a dialogue box or some msg to popup to warn the user to save the page.Can this be done in struts?
A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
I use Javascript!
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
How do u do in JS
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Guys....any replies?
A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
use the onChange() event for text boxes & onClick() event for dropdowns, list boxes etc... to set a JS variable or html field. Then check this before the submit!

If you're not familiar with JS you need to learn it to use this method - remember this is a struts forum!

good luck!

P.S using JS requires the browser setting to be enabled otherwise it won't work!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Force Save
 
Similar Threads
question about downloading
sace target as
Response Header for PDF?
Saving Word or PDF document
Download data on to local machine