Re: Confirmation message after form submit

2007-10-29 Thread Federico Fanton
On Thu, 25 Oct 2007 11:33:57 +0100
Dipu Seminlal [EMAIL PROTECTED] wrote:

 yes  a modal window,

I see, I'll go with this solution.. Many thanks to everyone who answered :)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
I think you can make use of a modal window to do this

Regards
Dipu

On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote:

 Hi everyone!
 I have a form with a submit button, and I need to implement a sequence
 like this:
 - user presses the button
 - form submit
 - server-side validation of submitted data
 - popup with confirmation message (like javascript confirm() )
 - if user presses yes, call Java method X
 - if user presses no, call Java method Y

 Is this possible?
 Many thanks for your time!


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Confirmation message after form submit

2007-10-25 Thread Federico Fanton
On Thu, 25 Oct 2007 10:40:20 +0100
Dipu Seminlal [EMAIL PROTECTED] wrote:

 I think you can make use of a modal window to do this

You mean, a modal window instead of the javascript confirm() ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
yes  a modal window,
i am not sure about how would you pop up a javascript confirm()  after doing
a server side validation.

there might be a way, but i don't know how

Dipu

On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote:

 On Thu, 25 Oct 2007 10:40:20 +0100
 Dipu Seminlal [EMAIL PROTECTED] wrote:

  I think you can make use of a modal window to do this

 You mean, a modal window instead of the javascript confirm() ?


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Confirmation message after form submit

2007-10-25 Thread Swaroop Belur
Do it like this:

In js file

function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) {


var retValue =  confirm( Are you sure );
if(retValue == false){
 window.location.href=urltogotooncancel;
}

 window.location.href=urltogotoonok ;
}

In java file... construct these 2 urls using RequestCylce.get().urlFor
methods to ur
behaviors for example.

Then call this js function using these 2 urls

-swaroop



On 10/25/07, Federico Fanton [EMAIL PROTECTED] wrote:

 Hi everyone!
 I have a form with a submit button, and I need to implement a sequence
 like this:
 - user presses the button
 - form submit
 - server-side validation of submitted data
 - popup with confirmation message (like javascript confirm() )
 - if user presses yes, call Java method X
 - if user presses no, call Java method Y

 Is this possible?
 Many thanks for your time!


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Confirmation message after form submit

2007-10-25 Thread Eelco Hillenius
On 10/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 are you not missing istemporary() { return true; } in there...that
 would be helpful i would imagine...

You're right.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]