| 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!
|
 |
 |
|
|
subject: Force Save
|
|
|