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: <[E

RE: Java Script Confirm and struts

2003-07-15 Thread mohan
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... > > > >

RE: Java Script Confirm and struts

2003-07-15 Thread Jimmy Emmanual
se; } 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 sai

RE: Java Script Confirm and struts

2003-07-15 Thread Marcos Oliva
Mohan, Try this marcos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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

RE: Java Script Confirm and struts

2003-07-15 Thread Chen, Gin
should be -Tim -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 but it submits the page anyway, i want the page not submitted if i press the

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... function confirmSubmit(){ var agree=confirm("Make Sure all the Values are correct, once submitt

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 " mak

RE: Java Script Confirm and struts

2003-07-15 Thread Marcos Oliva
Mohan, You can use javascript function mymessage(){ alert("" make sure all the values are correct, once it is submitted it cannot be take back""); } on your I think that should do it,.. My two cents Marcos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT