From: "Nancy Lin" <[EMAIL PROTECTED]> > 1. Here's our application requirement: > when user modifies a page, say A and clicks on any other menu > item or link, say B without clicking any button on the modified page > A, page A needs to be automatically saved. If there is nothing wrong > during save, end user should be redirected to page B, otherwise page > A should stay with error messages.
I do this by having 'onClick()' on the links submit the current form. Before the form submit, the javascript sets the value of a hidden form element that will tell me where they were trying to go. If there's an error, then the user is returned to the page with error messages. If not, the Action does whatever it needs to do, then decides where to forward/redirect based on that hidden field. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]