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
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
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
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
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
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
;
}
/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
]
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
8 matches
Mail list logo