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
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...
>
>
>
>
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
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
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
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
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
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
8 matches
Mail list logo