Re: Java Script Confirm and struts

2003-07-16 Thread Firat TIRYAKI
if you make the change button as a type=button the below code works fine. onclick=if (confirm('make sure all the values are correct, once it is submitted it cannot be take back')){document.formName.submit();} else {return false;} - Original Message - From: [EMAIL PROTECTED] To: [EMAIL

RE: Java Script Confirm and struts

2003-07-15 Thread Marcos Oliva
Mohan, You can use javascript script function mymessage(){ alert( make sure all the values are correct, once it is submitted it cannot be take back); } /script on your html:submit property=Submit value=Continue onclick=Javascript:mymesage(); / I think that should do it,.. My two

RE: Java Script Confirm and struts

2003-07-15 Thread Raible, Matt
onclick=return confirm('Your message here') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: Java Script Confirm and struts Hi i wud like to have a confirm box that displays a message saying make

RE: Java Script Confirm and struts

2003-07-15 Thread mohan
Hi did as u guys said but it submits the page anyway, i want the page not submitted if i press the cancel button.It submits the page if press OK or Cancel This is what i did... script function confirmSubmit(){ var agree=confirm(Make Sure all the Values are correct, once

RE: Java Script Confirm and struts

2003-07-15 Thread Chen, Gin
To: [EMAIL PROTECTED] Subject: RE: Java Script Confirm and struts Hi did as u guys said but it submits the page anyway, i want the page not submitted if i press the cancel button.It submits the page if press OK or Cancel This is what i did... script function confirmSubmit

RE: Java Script Confirm and struts

2003-07-15 Thread Marcos Oliva
Mohan, Try this html:submit property=Submit value=Continue onclick= javascript: return confirm('Your message here')/ marcos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:28 PM To: [EMAIL PROTECTED] Subject: RE: Java Script

RE: Java Script Confirm and struts

2003-07-15 Thread Jimmy Emmanual
; } /script 3. change onClick to pass the form. onClick=confirmSubmit(this.form) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 3:28 PM To: [EMAIL PROTECTED] Subject: RE: Java Script Confirm and struts Hi did as u guys said

RE: Java Script Confirm and struts

2003-07-15 Thread mohan
] Sent: Tuesday, July 15, 2003 12:28 PM To: [EMAIL PROTECTED] Subject: RE: Java Script Confirm and struts Hi did as u guys said but it submits the page anyway, i want the page not submitted if i press the cancel button.It submits the page if press OK or Cancel This is what i did... script