K
Kevin
Hi,
I have a form that uses Front Page's validation. I would
like to add some custom validation as well.
Here's the form line that FrontPage generated:
<form name="FrontPage_Form1" method="POST" action="--
WEBBOT-SELF--"
onsubmit="location.href='_derived/nortbots.htm';return
false;" language="JavaScript" webbot-onSubmit="return
FrontPage_Form1_Validator(this)">
I created a custom function:
function customValidator(theForm) {
...my logic here...
return FrontPage_Form1_Validator(theForm);
}
Then I changed the form line to call my routine:
<form name="FrontPage_Form1" method="POST" action="--
WEBBOT-SELF--"
onsubmit="location.href='_derived/nortbots.htm';return
false;" language="JavaScript" webbot-onSubmit="return
customValidator(this)">
The FrontPage editor didn't complain that I did this.
But when I published my page to the server (which is
running FrontPage extensions), this is what was put on
the server:
<form name="FrontPage_Form1" method="POST"
action="_vti_bin/shtml.exe/signup.htm" onsubmit="return
FrontPage_Form1_Validator(this)" language="JavaScript"
webbot-action="--WEBBOT-SELF--">
FrontPage ignored my change.
Any ideas on how to add custom validation to my form
(while still using the validation that FrontPage
generated)?
Thanks,
Kevin
I have a form that uses Front Page's validation. I would
like to add some custom validation as well.
Here's the form line that FrontPage generated:
<form name="FrontPage_Form1" method="POST" action="--
WEBBOT-SELF--"
onsubmit="location.href='_derived/nortbots.htm';return
false;" language="JavaScript" webbot-onSubmit="return
FrontPage_Form1_Validator(this)">
I created a custom function:
function customValidator(theForm) {
...my logic here...
return FrontPage_Form1_Validator(theForm);
}
Then I changed the form line to call my routine:
<form name="FrontPage_Form1" method="POST" action="--
WEBBOT-SELF--"
onsubmit="location.href='_derived/nortbots.htm';return
false;" language="JavaScript" webbot-onSubmit="return
customValidator(this)">
The FrontPage editor didn't complain that I did this.
But when I published my page to the server (which is
running FrontPage extensions), this is what was put on
the server:
<form name="FrontPage_Form1" method="POST"
action="_vti_bin/shtml.exe/signup.htm" onsubmit="return
FrontPage_Form1_Validator(this)" language="JavaScript"
webbot-action="--WEBBOT-SELF--">
FrontPage ignored my change.
Any ideas on how to add custom validation to my form
(while still using the validation that FrontPage
generated)?
Thanks,
Kevin