Custom Validation Failure Page in FP2003

G

Guest

I've got a page containing a form with a number of fields that have
validation rules defined. When validation is performed on the server, a
default Form Validation Error page is displayed listing all errors, with a
"Return to the form" link at the bottom. While clicking this link (a simple
<href>) does indeed return to the form, all of the user's input is lost.
Returning to the form, however, by clicking the browser's Back button
preserves the user's input. I would thus like to develop my own
validation-failure page without the deadly link. Form
Properties>Options>Confirmation Page provides the option to specify the URL
of a custom validation failure page, confirming that this should be
possible.

I've developed my own confirmation page using Insert>Web Component>Advanced
Controls>Confirmation Field, but I can't figure out how to build a failure
page -- how do I know which fields failed validation? Looking at the source
of the default page is not helpful; except for the link described above,
it's all just text.

FrontPage Help did not prove helpful either, nor did a Google search.

Thanks in advance for any help.
 
S

Stefan B Rusynko

If you are using the default FP field validation it is JavaScript and Client side (not server side) and will display a JavaScript
alert for each error w/o leaving the forms page

If you have spun your own JavaScript validation, you need to provide more info
If you are using Server side validation (ASP/PHP, etc) you also need to provide more info

Explain what you are doing and provide a URL





| I've got a page containing a form with a number of fields that have
| validation rules defined. When validation is performed on the server, a
| default Form Validation Error page is displayed listing all errors, with a
| "Return to the form" link at the bottom. While clicking this link (a simple
| <href>) does indeed return to the form, all of the user's input is lost.
| Returning to the form, however, by clicking the browser's Back button
| preserves the user's input. I would thus like to develop my own
| validation-failure page without the deadly link. Form
| Properties>Options>Confirmation Page provides the option to specify the URL
| of a custom validation failure page, confirming that this should be
| possible.
|
| I've developed my own confirmation page using Insert>Web Component>Advanced
| Controls>Confirmation Field, but I can't figure out how to build a failure
| page -- how do I know which fields failed validation? Looking at the source
| of the default page is not helpful; except for the link described above,
| it's all just text.
|
| FrontPage Help did not prove helpful either, nor did a Google search.
|
| Thanks in advance for any help.
|
|
|
 
F

FRONTPAGE EXTREMIST

LOL. IDIOT. JUST LISTEN TO YOURSELF FOR ONE SECOND,
TALKING ALL ABOUT CODE AND STUFF. ROFL.
 
G

Guest

Good gosh no, I'm just a beginner. I've written no custom validation code,
either client- or server-side -- just the built-in validation provided by
Tag Properties>Validate. There's no ASP involved -- just the FP extensions.

It seems that there are two distinct issues here:

1) For some reason, my test machine is not using client-side validation.
This happens even with the Norton Firewall (which can prevent script
execution) disabled. MSIE Tools>Options>Security has Scripting enabled. I
don't see any FrontPage options to disable client-side validation, though
conceivably I may have missed something.

2) So server-side validation is being used on this test machine, and I
presume the machines of some potential users of my page. The question then
is how to deal with this case by writing a custom failure page.

My system is hosted by Yahoo with FP2002 extensions. There's nothing really
special about it, but the URL for the form page is:
http://www.ewillsandtrusts.com/questionnaire.htm. I've been having some
other problems as well with Yahoo; sometimes I get a "FrontPage Error"
message when I submit the form.

Stefan B Rusynko said:
If you are using the default FP field validation it is JavaScript and
Client side (not server side) and will display a JavaScript
 
S

Stefan B Rusynko

The form does not work and the error message says contact your host for the web log for details
- suspect it's a permissions or FP SE problem
Have them check the health on the FP SE and the permissions for the _private folder
also make sure the 2 file your are attempting to write to exist in the _private folder

IMHO
the type of information you are collecting should only be done on a secure server




| Good gosh no, I'm just a beginner. I've written no custom validation code,
| either client- or server-side -- just the built-in validation provided by
| Tag Properties>Validate. There's no ASP involved -- just the FP extensions.
|
| It seems that there are two distinct issues here:
|
| 1) For some reason, my test machine is not using client-side validation.
| This happens even with the Norton Firewall (which can prevent script
| execution) disabled. MSIE Tools>Options>Security has Scripting enabled. I
| don't see any FrontPage options to disable client-side validation, though
| conceivably I may have missed something.
|
| 2) So server-side validation is being used on this test machine, and I
| presume the machines of some potential users of my page. The question then
| is how to deal with this case by writing a custom failure page.
|
| My system is hosted by Yahoo with FP2002 extensions. There's nothing really
| special about it, but the URL for the form page is:
| http://www.ewillsandtrusts.com/questionnaire.htm. I've been having some
| other problems as well with Yahoo; sometimes I get a "FrontPage Error"
| message when I submit the form.
|
| | > If you are using the default FP field validation it is JavaScript and
| Client side (not server side) and will display a JavaScript
| > alert for each error w/o leaving the forms page
| >
| > If you have spun your own JavaScript validation, you need to provide more
| info
| > If you are using Server side validation (ASP/PHP, etc) you also need to
| provide more info
| >
| > Explain what you are doing and provide a URL
| >
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | I've got a page containing a form with a number of fields that have
| > | validation rules defined. When validation is performed on the server, a
| > | default Form Validation Error page is displayed listing all errors, with
| a
| > | "Return to the form" link at the bottom. While clicking this link (a
| simple
| > | <href>) does indeed return to the form, all of the user's input is lost.
| > | Returning to the form, however, by clicking the browser's Back button
| > | preserves the user's input. I would thus like to develop my own
| > | validation-failure page without the deadly link. Form
| > | Properties>Options>Confirmation Page provides the option to specify the
| URL
| > | of a custom validation failure page, confirming that this should be
| > | possible.
| > |
| > | I've developed my own confirmation page using Insert>Web
| Component>Advanced
| > | Controls>Confirmation Field, but I can't figure out how to build a
| failure
| > | page -- how do I know which fields failed validation? Looking at the
| source
| > | of the default page is not helpful; except for the link described above,
| > | it's all just text.
| > |
| > | FrontPage Help did not prove helpful either, nor did a Google search.
| > |
| > | Thanks in advance for any help.
| > |
| > |
| > |
| >
| >
|
|
 
G

Guest

I've reset the FP extensions and republished the site in the past when I got
that error message, so I can deal with that, and/or find a new host if
necessary.

Aside from that, what about creating a custom validation-failure page?

Thanks again.

Stefan B Rusynko said:
The form does not work and the error message says contact your host for the web log for details
- suspect it's a permissions or FP SE problem
Have them check the health on the FP SE and the permissions for the _private folder
also make sure the 2 file your are attempting to write to exist in the _private folder

IMHO
the type of information you are collecting should only be done on a secure server




| Good gosh no, I'm just a beginner. I've written no custom validation code,
| either client- or server-side -- just the built-in validation provided by
| Tag Properties>Validate. There's no ASP involved -- just the FP extensions.
|
| It seems that there are two distinct issues here:
|
| 1) For some reason, my test machine is not using client-side validation.
| This happens even with the Norton Firewall (which can prevent script
| execution) disabled. MSIE Tools>Options>Security has Scripting enabled. I
| don't see any FrontPage options to disable client-side validation, though
| conceivably I may have missed something.
|
| 2) So server-side validation is being used on this test machine, and I
| presume the machines of some potential users of my page. The question then
| is how to deal with this case by writing a custom failure page.
|
| My system is hosted by Yahoo with FP2002 extensions. There's nothing really
| special about it, but the URL for the form page is:
| http://www.ewillsandtrusts.com/questionnaire.htm. I've been having some
| other problems as well with Yahoo; sometimes I get a "FrontPage Error"
| message when I submit the form.
|
| | > If you are using the default FP field validation it is JavaScript and
| Client side (not server side) and will display a JavaScript
| > alert for each error w/o leaving the forms page
| >
| > If you have spun your own JavaScript validation, you need to provide more
| info
| > If you are using Server side validation (ASP/PHP, etc) you also need to
| provide more info
| >
| > Explain what you are doing and provide a URL
| >
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | I've got a page containing a form with a number of fields that have
| > | validation rules defined. When validation is performed on the server, a
| > | default Form Validation Error page is displayed listing all errors, with
| a
| > | "Return to the form" link at the bottom. While clicking this link (a
| simple
| > | <href>) does indeed return to the form, all of the user's input is lost.
| > | Returning to the form, however, by clicking the browser's Back button
| > | preserves the user's input. I would thus like to develop my own
| > | validation-failure page without the deadly link. Form
| > | Properties>Options>Confirmation Page provides the option to specify the
| URL
| > | of a custom validation failure page, confirming that this should be
| > | possible.
| > |
| > | I've developed my own confirmation page using Insert>Web
| Component>Advanced
| > | Controls>Confirmation Field, but I can't figure out how to build a
| failure
| > | page -- how do I know which fields failed validation? Looking at the
| source
| > | of the default page is not helpful; except for the link described above,
| > | it's all just text.
| > |
| > | FrontPage Help did not prove helpful either, nor did a Google search.
| > |
| > | Thanks in advance for any help.
| > |
| > |
| > |
| >
| >
|
|
 
S

Stefan B Rusynko

FP Validation is done w/ JavaScript and gives you an alert popup for each error w/o ever leaving the form page - Open your page in
IE and View Source
- you never get a page unless the FP SE are in trouble
- you can create a custom error page if there is a FP SE or server error and in form properties pick that




| I've reset the FP extensions and republished the site in the past when I got
| that error message, so I can deal with that, and/or find a new host if
| necessary.
|
| Aside from that, what about creating a custom validation-failure page?
|
| Thanks again.
|
| | > The form does not work and the error message says contact your host for
| the web log for details
| > - suspect it's a permissions or FP SE problem
| > Have them check the health on the FP SE and the permissions for the
| _private folder
| > also make sure the 2 file your are attempting to write to exist in the
| _private folder
| >
| > IMHO
| > the type of information you are collecting should only be done on a secure
| server
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | Good gosh no, I'm just a beginner. I've written no custom validation
| code,
| > | either client- or server-side -- just the built-in validation provided
| by
| > | Tag Properties>Validate. There's no ASP involved -- just the FP
| extensions.
| > |
| > | It seems that there are two distinct issues here:
| > |
| > | 1) For some reason, my test machine is not using client-side validation.
| > | This happens even with the Norton Firewall (which can prevent script
| > | execution) disabled. MSIE Tools>Options>Security has Scripting enabled.
| I
| > | don't see any FrontPage options to disable client-side validation,
| though
| > | conceivably I may have missed something.
| > |
| > | 2) So server-side validation is being used on this test machine, and I
| > | presume the machines of some potential users of my page. The question
| then
| > | is how to deal with this case by writing a custom failure page.
| > |
| > | My system is hosted by Yahoo with FP2002 extensions. There's nothing
| really
| > | special about it, but the URL for the form page is:
| > | http://www.ewillsandtrusts.com/questionnaire.htm. I've been having some
| > | other problems as well with Yahoo; sometimes I get a "FrontPage Error"
| > | message when I submit the form.
| > |
| > | | > | > If you are using the default FP field validation it is JavaScript and
| > | Client side (not server side) and will display a JavaScript
| > | > alert for each error w/o leaving the forms page
| > | >
| > | > If you have spun your own JavaScript validation, you need to provide
| more
| > | info
| > | > If you are using Server side validation (ASP/PHP, etc) you also need
| to
| > | provide more info
| > | >
| > | > Explain what you are doing and provide a URL
| > | >
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | I've got a page containing a form with a number of fields that have
| > | > | validation rules defined. When validation is performed on the
| server, a
| > | > | default Form Validation Error page is displayed listing all errors,
| with
| > | a
| > | > | "Return to the form" link at the bottom. While clicking this link
| (a
| > | simple
| > | > | <href>) does indeed return to the form, all of the user's input is
| lost.
| > | > | Returning to the form, however, by clicking the browser's Back
| button
| > | > | preserves the user's input. I would thus like to develop my own
| > | > | validation-failure page without the deadly link. Form
| > | > | Properties>Options>Confirmation Page provides the option to specify
| the
| > | URL
| > | > | of a custom validation failure page, confirming that this should be
| > | > | possible.
| > | > |
| > | > | I've developed my own confirmation page using Insert>Web
| > | Component>Advanced
| > | > | Controls>Confirmation Field, but I can't figure out how to build a
| > | failure
| > | > | page -- how do I know which fields failed validation? Looking at
| the
| > | source
| > | > | of the default page is not helpful; except for the link described
| above,
| > | > | it's all just text.
| > | > |
| > | > | FrontPage Help did not prove helpful either, nor did a Google
| search.
| > | > |
| > | > | Thanks in advance for any help.
| > | > |
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
G

Guest

"you never get a page unless the FP SE are in trouble"

For the benefit of anyone following along, it turns out that the problem lay
in the form itself. I created a simple test form and compared it with the
one that refused to validate on the client. The <FORM> tag for the working
form contained ONLY the capitalized text at the beginning of the tag shown
below; removing the remainder (from "onSubmit" through the end) from the
malfunctioning form restored client validation. Where the other stuff came
from is beyond me, as I don't see an option in Form Properties that controls
this.

<FORM METHOD="POST" ACTION="--WEBBOT-SELF--"
onSubmit="location.href='_derived/nortbots.htm';return false;"
webbot-onSubmit language="JavaScript" name="FrontPage_Form1">

"you can create a custom error page if there is a FP SE or server error and
in form properties pick that"

Which brings us back to my original question. There are TWO conditions
under which the user will see a server-generated "error" page, only one of
which is the result of a server or SE failure. I assume that 99% of users
will be using client validation, but (from my reading) those who have
disabled scripting in MSIE will be validated on the server. Thus, in
additionTo quote my original post:

-----------------
When validation is performed on the server, a
default Form Validation Error page is displayed listing all errors, with a
"Return to the form" link at the bottom. While clicking this link (a simple
<href>) does indeed return to the form, all of the user's input is lost.
Returning to the form, however, by clicking the browser's Back button
preserves the user's input. I would thus like to develop my own
validation-failure page without the deadly link. Form
Properties>Options>Confirmation Page provides the option to specify the URL
of a custom validation failure page, confirming that this should be
possible.

I've developed my own confirmation page using Insert>Web Component>Advanced
Controls>Confirmation Field, but I can't figure out how to build a failure
page -- how do I know which fields failed validation? Looking at the source
of the default page is not helpful; except for the link described above,
it's all just text.
-----------------

The key, of course, is determining which fields failed server validation.

This is a case that would affect a small number of users, to be sure, but I
know that I'd sure be ticked off if I lost a form's worth of typing.

Thanks again to anyone with a suggestion.

Stefan B Rusynko said:
FP Validation is done w/ JavaScript and gives you an alert popup for each
error w/o ever leaving the form page - Open your page in
IE and View Source
- you never get a page unless the FP SE are in trouble
- you can create a custom error page if there is a FP SE or server error
and in form properties pick that
| I've reset the FP extensions and republished the site in the past when I got
| that error message, so I can deal with that, and/or find a new host if
| necessary.
|
| Aside from that, what about creating a custom validation-failure page?
|
| Thanks again.
|
| | > The form does not work and the error message says contact your host for
| the web log for details
| > - suspect it's a permissions or FP SE problem
| > Have them check the health on the FP SE and the permissions for the
| _private folder
| > also make sure the 2 file your are attempting to write to exist in the
| _private folder
| >
| > IMHO
| > the type of information you are collecting should only be done on a secure
| server
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | Good gosh no, I'm just a beginner. I've written no custom validation
| code,
| > | either client- or server-side -- just the built-in validation provided
| by
| > | Tag Properties>Validate. There's no ASP involved -- just the FP
| extensions.
| > |
| > | It seems that there are two distinct issues here:
| > |
| > | 1) For some reason, my test machine is not using client-side validation.
| > | This happens even with the Norton Firewall (which can prevent script
| > | execution) disabled. MSIE Tools>Options>Security has Scripting enabled.
| I
| > | don't see any FrontPage options to disable client-side validation,
| though
| > | conceivably I may have missed something.
| > |
| > | 2) So server-side validation is being used on this test machine, and I
| > | presume the machines of some potential users of my page. The question
| then
| > | is how to deal with this case by writing a custom failure page.
| > |
| > | My system is hosted by Yahoo with FP2002 extensions. There's nothing
| really
| > | special about it, but the URL for the form page is:
| > | http://www.ewillsandtrusts.com/questionnaire.htm. I've been having some
| > | other problems as well with Yahoo; sometimes I get a "FrontPage Error"
| > | message when I submit the form.
| > |
| > | | > | > If you are using the default FP field validation it is JavaScript and
| > | Client side (not server side) and will display a JavaScript
| > | > alert for each error w/o leaving the forms page
| > | >
| > | > If you have spun your own JavaScript validation, you need to provide
| more
| > | info
| > | > If you are using Server side validation (ASP/PHP, etc) you also need
| to
| > | provide more info
| > | >
| > | > Explain what you are doing and provide a URL
| > | >
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | I've got a page containing a form with a number of fields that have
| > | > | validation rules defined. When validation is performed on the
| server, a
| > | > | default Form Validation Error page is displayed listing all errors,
| with
| > | a
| > | > | "Return to the form" link at the bottom. While clicking this link
| (a
| > | simple
| > | > | <href>) does indeed return to the form, all of the user's input is
| lost.
| > | > | Returning to the form, however, by clicking the browser's Back
| button
| > | > | preserves the user's input. I would thus like to develop my own
| > | > | validation-failure page without the deadly link. Form
| > | > | Properties>Options>Confirmation Page provides the option to specify
| the
| > | URL
| > | > | of a custom validation failure page, confirming that this should be
| > | > | possible.
| > | > |
| > | > | I've developed my own confirmation page using Insert>Web
| > | Component>Advanced
| > | > | Controls>Confirmation Field, but I can't figure out how to build a
| > | failure
| > | > | page -- how do I know which fields failed validation? Looking at
| the
| > | source
| > | > | of the default page is not helpful; except for the link described
| above,
| > | > | it's all just text.
| > | > |
| > | > | FrontPage Help did not prove helpful either, nor did a Google
| search.
| > | > |
| > | > | Thanks in advance for any help.
| > | > |
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
S

Stefan B Rusynko

1) The form code is what is added by FP when you select Form field validation
2) If the user has JavaScript disabled , there is No server side validation




| "you never get a page unless the FP SE are in trouble"
|
| For the benefit of anyone following along, it turns out that the problem lay
| in the form itself. I created a simple test form and compared it with the
| one that refused to validate on the client. The <FORM> tag for the working
| form contained ONLY the capitalized text at the beginning of the tag shown
| below; removing the remainder (from "onSubmit" through the end) from the
| malfunctioning form restored client validation. Where the other stuff came
| from is beyond me, as I don't see an option in Form Properties that controls
| this.
|
| <FORM METHOD="POST" ACTION="--WEBBOT-SELF--"
| onSubmit="location.href='_derived/nortbots.htm';return false;"
| webbot-onSubmit language="JavaScript" name="FrontPage_Form1">
|
| "you can create a custom error page if there is a FP SE or server error and
| in form properties pick that"
|
| Which brings us back to my original question. There are TWO conditions
| under which the user will see a server-generated "error" page, only one of
| which is the result of a server or SE failure. I assume that 99% of users
| will be using client validation, but (from my reading) those who have
| disabled scripting in MSIE will be validated on the server. Thus, in
| additionTo quote my original post:
|
| -----------------
| When validation is performed on the server, a
| default Form Validation Error page is displayed listing all errors, with a
| "Return to the form" link at the bottom. While clicking this link (a simple
| <href>) does indeed return to the form, all of the user's input is lost.
| Returning to the form, however, by clicking the browser's Back button
| preserves the user's input. I would thus like to develop my own
| validation-failure page without the deadly link. Form
| Properties>Options>Confirmation Page provides the option to specify the URL
| of a custom validation failure page, confirming that this should be
| possible.
|
| I've developed my own confirmation page using Insert>Web Component>Advanced
| Controls>Confirmation Field, but I can't figure out how to build a failure
| page -- how do I know which fields failed validation? Looking at the source
| of the default page is not helpful; except for the link described above,
| it's all just text.
| -----------------
|
| The key, of course, is determining which fields failed server validation.
|
| This is a case that would affect a small number of users, to be sure, but I
| know that I'd sure be ticked off if I lost a form's worth of typing.
|
| Thanks again to anyone with a suggestion.
|
| | > FP Validation is done w/ JavaScript and gives you an alert popup for each
| error w/o ever leaving the form page - Open your page in
| > IE and View Source
| > - you never get a page unless the FP SE are in trouble
| > - you can create a custom error page if there is a FP SE or server error
| and in form properties pick that
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | I've reset the FP extensions and republished the site in the past when I
| got
| > | that error message, so I can deal with that, and/or find a new host if
| > | necessary.
| > |
| > | Aside from that, what about creating a custom validation-failure page?
| > |
| > | Thanks again.
| > |
| > | | > | > The form does not work and the error message says contact your host
| for
| > | the web log for details
| > | > - suspect it's a permissions or FP SE problem
| > | > Have them check the health on the FP SE and the permissions for the
| > | _private folder
| > | > also make sure the 2 file your are attempting to write to exist in the
| > | _private folder
| > | >
| > | > IMHO
| > | > the type of information you are collecting should only be done on a
| secure
| > | server
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | Good gosh no, I'm just a beginner. I've written no custom
| validation
| > | code,
| > | > | either client- or server-side -- just the built-in validation
| provided
| > | by
| > | > | Tag Properties>Validate. There's no ASP involved -- just the FP
| > | extensions.
| > | > |
| > | > | It seems that there are two distinct issues here:
| > | > |
| > | > | 1) For some reason, my test machine is not using client-side
| validation.
| > | > | This happens even with the Norton Firewall (which can prevent script
| > | > | execution) disabled. MSIE Tools>Options>Security has Scripting
| enabled.
| > | I
| > | > | don't see any FrontPage options to disable client-side validation,
| > | though
| > | > | conceivably I may have missed something.
| > | > |
| > | > | 2) So server-side validation is being used on this test machine, and
| I
| > | > | presume the machines of some potential users of my page. The
| question
| > | then
| > | > | is how to deal with this case by writing a custom failure page.
| > | > |
| > | > | My system is hosted by Yahoo with FP2002 extensions. There's
| nothing
| > | really
| > | > | special about it, but the URL for the form page is:
| > | > | http://www.ewillsandtrusts.com/questionnaire.htm. I've been having
| some
| > | > | other problems as well with Yahoo; sometimes I get a "FrontPage
| Error"
| > | > | message when I submit the form.
| > | > |
| > | > | | > | > | > If you are using the default FP field validation it is JavaScript
| and
| > | > | Client side (not server side) and will display a JavaScript
| > | > | > alert for each error w/o leaving the forms page
| > | > | >
| > | > | > If you have spun your own JavaScript validation, you need to
| provide
| > | more
| > | > | info
| > | > | > If you are using Server side validation (ASP/PHP, etc) you also
| need
| > | to
| > | > | provide more info
| > | > | >
| > | > | > Explain what you are doing and provide a URL
| > | > | >
| > | > | >
| > | > | > --
| > | > | >
| > | > | > _____________________________________________
| > | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > | > To find the best Newsgroup for FrontPage support see:
| > | > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > | > _____________________________________________
| > | > | >
| > | > | >
| > | > | | > | > | > | I've got a page containing a form with a number of fields that
| have
| > | > | > | validation rules defined. When validation is performed on the
| > | server, a
| > | > | > | default Form Validation Error page is displayed listing all
| errors,
| > | with
| > | > | a
| > | > | > | "Return to the form" link at the bottom. While clicking this
| link
| > | (a
| > | > | simple
| > | > | > | <href>) does indeed return to the form, all of the user's input
| is
| > | lost.
| > | > | > | Returning to the form, however, by clicking the browser's Back
| > | button
| > | > | > | preserves the user's input. I would thus like to develop my own
| > | > | > | validation-failure page without the deadly link. Form
| > | > | > | Properties>Options>Confirmation Page provides the option to
| specify
| > | the
| > | > | URL
| > | > | > | of a custom validation failure page, confirming that this should
| be
| > | > | > | possible.
| > | > | > |
| > | > | > | I've developed my own confirmation page using Insert>Web
| > | > | Component>Advanced
| > | > | > | Controls>Confirmation Field, but I can't figure out how to build
| a
| > | > | failure
| > | > | > | page -- how do I know which fields failed validation? Looking
| at
| > | the
| > | > | source
| > | > | > | of the default page is not helpful; except for the link
| described
| > | above,
| > | > | > | it's all just text.
| > | > | > |
| > | > | > | FrontPage Help did not prove helpful either, nor did a Google
| > | search.
| > | > | > |
| > | > | > | Thanks in advance for any help.
| > | > | > |
| > | > | > |
| > | > | > |
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
S

Stefan B Rusynko

PS
Open your online site in FP (File Open Site and enter http://www.ewillsandtrusts.com/ )
Create a new form page in FP using File New (More page Templates) and select the Forms Wizard Page
- do not apply any form field validation
Test the saved form page in the Browser

- If it doesn't work contact your host to repair the FP SE or enable Email Transport
(if you get an error page - it is not a validation error it is a form handler error)

- If it works, then apply field validation to your form fields, and test again
(do not edit ANY html code in the pages)




| 1) The form code is what is added by FP when you select Form field validation
| 2) If the user has JavaScript disabled , there is No server side validation
|
| --
|
| _____________________________________________
| SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| "Warning - Using the F1 Key will not break anything!" (-;
| To find the best Newsgroup for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
| _____________________________________________
|
|
| | "you never get a page unless the FP SE are in trouble"
| |
| | For the benefit of anyone following along, it turns out that the problem lay
| | in the form itself. I created a simple test form and compared it with the
| | one that refused to validate on the client. The <FORM> tag for the working
| | form contained ONLY the capitalized text at the beginning of the tag shown
| | below; removing the remainder (from "onSubmit" through the end) from the
| | malfunctioning form restored client validation. Where the other stuff came
| | from is beyond me, as I don't see an option in Form Properties that controls
| | this.
| |
| | <FORM METHOD="POST" ACTION="--WEBBOT-SELF--"
| | onSubmit="location.href='_derived/nortbots.htm';return false;"
| | webbot-onSubmit language="JavaScript" name="FrontPage_Form1">
| |
| | "you can create a custom error page if there is a FP SE or server error and
| | in form properties pick that"
| |
| | Which brings us back to my original question. There are TWO conditions
| | under which the user will see a server-generated "error" page, only one of
| | which is the result of a server or SE failure. I assume that 99% of users
| | will be using client validation, but (from my reading) those who have
| | disabled scripting in MSIE will be validated on the server. Thus, in
| | additionTo quote my original post:
| |
| | -----------------
| | When validation is performed on the server, a
| | default Form Validation Error page is displayed listing all errors, with a
| | "Return to the form" link at the bottom. While clicking this link (a simple
| | <href>) does indeed return to the form, all of the user's input is lost.
| | Returning to the form, however, by clicking the browser's Back button
| | preserves the user's input. I would thus like to develop my own
| | validation-failure page without the deadly link. Form
| | Properties>Options>Confirmation Page provides the option to specify the URL
| | of a custom validation failure page, confirming that this should be
| | possible.
| |
| | I've developed my own confirmation page using Insert>Web Component>Advanced
| | Controls>Confirmation Field, but I can't figure out how to build a failure
| | page -- how do I know which fields failed validation? Looking at the source
| | of the default page is not helpful; except for the link described above,
| | it's all just text.
| | -----------------
| |
| | The key, of course, is determining which fields failed server validation.
| |
| | This is a case that would affect a small number of users, to be sure, but I
| | know that I'd sure be ticked off if I lost a form's worth of typing.
| |
| | Thanks again to anyone with a suggestion.
| |
| | | | > FP Validation is done w/ JavaScript and gives you an alert popup for each
| | error w/o ever leaving the form page - Open your page in
| | > IE and View Source
| | > - you never get a page unless the FP SE are in trouble
| | > - you can create a custom error page if there is a FP SE or server error
| | and in form properties pick that
| | >
| | > --
| | >
| | > _____________________________________________
| | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > "Warning - Using the F1 Key will not break anything!" (-;
| | > To find the best Newsgroup for FrontPage support see:
| | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > _____________________________________________
| | >
| | >
| | | | > | I've reset the FP extensions and republished the site in the past when I
| | got
| | > | that error message, so I can deal with that, and/or find a new host if
| | > | necessary.
| | > |
| | > | Aside from that, what about creating a custom validation-failure page?
| | > |
| | > | Thanks again.
| | > |
| | > | | | > | > The form does not work and the error message says contact your host
| | for
| | > | the web log for details
| | > | > - suspect it's a permissions or FP SE problem
| | > | > Have them check the health on the FP SE and the permissions for the
| | > | _private folder
| | > | > also make sure the 2 file your are attempting to write to exist in the
| | > | _private folder
| | > | >
| | > | > IMHO
| | > | > the type of information you are collecting should only be done on a
| | secure
| | > | server
| | > | >
| | > | > --
| | > | >
| | > | > _____________________________________________
| | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > | > "Warning - Using the F1 Key will not break anything!" (-;
| | > | > To find the best Newsgroup for FrontPage support see:
| | > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > | > _____________________________________________
| | > | >
| | > | >
| | > | | | > | > | Good gosh no, I'm just a beginner. I've written no custom
| | validation
| | > | code,
| | > | > | either client- or server-side -- just the built-in validation
| | provided
| | > | by
| | > | > | Tag Properties>Validate. There's no ASP involved -- just the FP
| | > | extensions.
| | > | > |
| | > | > | It seems that there are two distinct issues here:
| | > | > |
| | > | > | 1) For some reason, my test machine is not using client-side
| | validation.
| | > | > | This happens even with the Norton Firewall (which can prevent script
| | > | > | execution) disabled. MSIE Tools>Options>Security has Scripting
| | enabled.
| | > | I
| | > | > | don't see any FrontPage options to disable client-side validation,
| | > | though
| | > | > | conceivably I may have missed something.
| | > | > |
| | > | > | 2) So server-side validation is being used on this test machine, and
| | I
| | > | > | presume the machines of some potential users of my page. The
| | question
| | > | then
| | > | > | is how to deal with this case by writing a custom failure page.
| | > | > |
| | > | > | My system is hosted by Yahoo with FP2002 extensions. There's
| | nothing
| | > | really
| | > | > | special about it, but the URL for the form page is:
| | > | > | http://www.ewillsandtrusts.com/questionnaire.htm. I've been having
| | some
| | > | > | other problems as well with Yahoo; sometimes I get a "FrontPage
| | Error"
| | > | > | message when I submit the form.
| | > | > |
| | > | > | | | > | > | > If you are using the default FP field validation it is JavaScript
| | and
| | > | > | Client side (not server side) and will display a JavaScript
| | > | > | > alert for each error w/o leaving the forms page
| | > | > | >
| | > | > | > If you have spun your own JavaScript validation, you need to
| | provide
| | > | more
| | > | > | info
| | > | > | > If you are using Server side validation (ASP/PHP, etc) you also
| | need
| | > | to
| | > | > | provide more info
| | > | > | >
| | > | > | > Explain what you are doing and provide a URL
| | > | > | >
| | > | > | >
| | > | > | > --
| | > | > | >
| | > | > | > _____________________________________________
| | > | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > | > | > "Warning - Using the F1 Key will not break anything!" (-;
| | > | > | > To find the best Newsgroup for FrontPage support see:
| | > | > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > | > | > _____________________________________________
| | > | > | >
| | > | > | >
| | > | > | | | > | > | > | I've got a page containing a form with a number of fields that
| | have
| | > | > | > | validation rules defined. When validation is performed on the
| | > | server, a
| | > | > | > | default Form Validation Error page is displayed listing all
| | errors,
| | > | with
| | > | > | a
| | > | > | > | "Return to the form" link at the bottom. While clicking this
| | link
| | > | (a
| | > | > | simple
| | > | > | > | <href>) does indeed return to the form, all of the user's input
| | is
| | > | lost.
| | > | > | > | Returning to the form, however, by clicking the browser's Back
| | > | button
| | > | > | > | preserves the user's input. I would thus like to develop my own
| | > | > | > | validation-failure page without the deadly link. Form
| | > | > | > | Properties>Options>Confirmation Page provides the option to
| | specify
| | > | the
| | > | > | URL
| | > | > | > | of a custom validation failure page, confirming that this should
| | be
| | > | > | > | possible.
| | > | > | > |
| | > | > | > | I've developed my own confirmation page using Insert>Web
| | > | > | Component>Advanced
| | > | > | > | Controls>Confirmation Field, but I can't figure out how to build
| | a
| | > | > | failure
| | > | > | > | page -- how do I know which fields failed validation? Looking
| | at
| | > | the
| | > | > | source
| | > | > | > | of the default page is not helpful; except for the link
| | described
| | > | above,
| | > | > | > | it's all just text.
| | > | > | > |
| | > | > | > | FrontPage Help did not prove helpful either, nor did a Google
| | > | search.
| | > | > | > |
| | > | > | > | Thanks in advance for any help.
| | > | > | > |
| | > | > | > |
| | > | > | > |
| | > | > | >
| | > | > | >
| | > | > |
| | > | > |
| | > | >
| | > | >
| | > |
| | > |
| | >
| | >
| |
| |
|
|
 
G

Guest

This is a reply to both your messages.

1) Thanks for the clarification that disabling script disables both client-
AND server-side validation. I'll just replace the failure page then with
something general warning about a communicaiton error, and direct the user
to enable script.

2) I did as you suggested. A brand-new form worked, both with and without
validation, as did my original form after I made the code edit deletion
described previously. What I did NOT notice, however, was that FP had added
back the code I deleted, but with an addition:

<form method="POST" action="--WEBBOT-SELF--"
onsubmit="location.href='_derived/nortbots.htm';return false;"
language="JavaScript" name="FrontPage_Form1" ****webbot-onSubmit="return
FrontPage_Form1_Validator(this)">****

The part I enclosed in "****" was missing from both my real form and my
original test form when they were not working. I have no idea how that
happened, as I had not edited the code previously (I'm a rank beginner).

Anyway, the forms seem to be fine now.

I continue to have problems with the FP extensions, however, about which
I'll post a new message.

Many thanks.

















Stefan B Rusynko said:
PS
Open your online site in FP (File Open Site and enter
http://www.ewillsandtrusts.com/ )
Create a new form page in FP using File New (More page Templates) and select the Forms Wizard Page
- do not apply any form field validation
Test the saved form page in the Browser

- If it doesn't work contact your host to repair the FP SE or enable Email Transport
(if you get an error page - it is not a validation error it is a form handler error)

- If it works, then apply field validation to your form fields, and test again
(do not edit ANY html code in the pages)




| 1) The form code is what is added by FP when you select Form field validation
| 2) If the user has JavaScript disabled , there is No server side validation
|
| --
|
| _____________________________________________
| SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| "Warning - Using the F1 Key will not break anything!" (-;
| To find the best Newsgroup for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
| _____________________________________________
|
|
| | "you never get a page unless the FP SE are in trouble"
| |
| | For the benefit of anyone following along, it turns out that the problem lay
| | in the form itself. I created a simple test form and compared it with the
| | one that refused to validate on the client. The <FORM> tag for the working
| | form contained ONLY the capitalized text at the beginning of the tag shown
| | below; removing the remainder (from "onSubmit" through the end) from the
| | malfunctioning form restored client validation. Where the other stuff came
| | from is beyond me, as I don't see an option in Form Properties that controls
| | this.
| |
| | <FORM METHOD="POST" ACTION="--WEBBOT-SELF--"
| | onSubmit="location.href='_derived/nortbots.htm';return false;"
| | webbot-onSubmit language="JavaScript" name="FrontPage_Form1">
| |
| | "you can create a custom error page if there is a FP SE or server error and
| | in form properties pick that"
| |
| | Which brings us back to my original question. There are TWO conditions
| | under which the user will see a server-generated "error" page, only one of
| | which is the result of a server or SE failure. I assume that 99% of users
| | will be using client validation, but (from my reading) those who have
| | disabled scripting in MSIE will be validated on the server. Thus, in
| | additionTo quote my original post:
| |
| | -----------------
| | When validation is performed on the server, a
| | default Form Validation Error page is displayed listing all errors, with a
| | "Return to the form" link at the bottom. While clicking this link (a simple
| | <href>) does indeed return to the form, all of the user's input is lost.
| | Returning to the form, however, by clicking the browser's Back button
| | preserves the user's input. I would thus like to develop my own
| | validation-failure page without the deadly link. Form
| | Properties>Options>Confirmation Page provides the option to specify the URL
| | of a custom validation failure page, confirming that this should be
| | possible.
| |
| | I've developed my own confirmation page using Insert>Web Component>Advanced
| | Controls>Confirmation Field, but I can't figure out how to build a failure
| | page -- how do I know which fields failed validation? Looking at the source
| | of the default page is not helpful; except for the link described above,
| | it's all just text.
| | -----------------
| |
| | The key, of course, is determining which fields failed server validation.
| |
| | This is a case that would affect a small number of users, to be sure, but I
| | know that I'd sure be ticked off if I lost a form's worth of typing.
| |
| | Thanks again to anyone with a suggestion.
| |
| | | | > FP Validation is done w/ JavaScript and gives you an alert popup for each
| | error w/o ever leaving the form page - Open your page in
| | > IE and View Source
| | > - you never get a page unless the FP SE are in trouble
| | > - you can create a custom error page if there is a FP SE or server error
| | and in form properties pick that
| | >
| | > --
| | >
| | > _____________________________________________
| | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > "Warning - Using the F1 Key will not break anything!" (-;
| | > To find the best Newsgroup for FrontPage support see:
| | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > _____________________________________________
| | >
| | >
| | | | > | I've reset the FP extensions and republished the site in the past when I
| | got
| | > | that error message, so I can deal with that, and/or find a new host if
| | > | necessary.
| | > |
| | > | Aside from that, what about creating a custom validation-failure page?
| | > |
| | > | Thanks again.
| | > |
| | > | | | > | > The form does not work and the error message says contact your host
| | for
| | > | the web log for details
| | > | > - suspect it's a permissions or FP SE problem
| | > | > Have them check the health on the FP SE and the permissions for the
| | > | _private folder
| | > | > also make sure the 2 file your are attempting to write to exist in the
| | > | _private folder
| | > | >
| | > | > IMHO
| | > | > the type of information you are collecting should only be done on a
| | secure
| | > | server
| | > | >
| | > | > --
| | > | >
| | > | > _____________________________________________
| | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > | > "Warning - Using the F1 Key will not break anything!" (-;
| | > | > To find the best Newsgroup for FrontPage support see:
| | > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > | > _____________________________________________
| | > | >
| | > | >
| | > | | | > | > | Good gosh no, I'm just a beginner. I've written no custom
| | validation
| | > | code,
| | > | > | either client- or server-side -- just the built-in validation
| | provided
| | > | by
| | > | > | Tag Properties>Validate. There's no ASP involved -- just the FP
| | > | extensions.
| | > | > |
| | > | > | It seems that there are two distinct issues here:
| | > | > |
| | > | > | 1) For some reason, my test machine is not using client-side
| | validation.
| | > | > | This happens even with the Norton Firewall (which can prevent script
| | > | > | execution) disabled. MSIE Tools>Options>Security has Scripting
| | enabled.
| | > | I
| | > | > | don't see any FrontPage options to disable client-side validation,
| | > | though
| | > | > | conceivably I may have missed something.
| | > | > |
| | > | > | 2) So server-side validation is being used on this test machine, and
| | I
| | > | > | presume the machines of some potential users of my page. The
| | question
| | > | then
| | > | > | is how to deal with this case by writing a custom failure page.
| | > | > |
| | > | > | My system is hosted by Yahoo with FP2002 extensions. There's
| | nothing
| | > | really
| | > | > | special about it, but the URL for the form page is:
| | > | > | http://www.ewillsandtrusts.com/questionnaire.htm. I've been having
| | some
| | > | > | other problems as well with Yahoo; sometimes I get a "FrontPage
| | Error"
| | > | > | message when I submit the form.
| | > | > |
| | > | > | | | > | > | > If you are using the default FP field validation it is JavaScript
| | and
| | > | > | Client side (not server side) and will display a JavaScript
| | > | > | > alert for each error w/o leaving the forms page
| | > | > | >
| | > | > | > If you have spun your own JavaScript validation, you need to
| | provide
| | > | more
| | > | > | info
| | > | > | > If you are using Server side validation (ASP/PHP, etc) you also
| | need
| | > | to
| | > | > | provide more info
| | > | > | >
| | > | > | > Explain what you are doing and provide a URL
| | > | > | >
| | > | > | >
| | > | > | > --
| | > | > | >
| | > | > | > _____________________________________________
| | > | > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| | > | > | > "Warning - Using the F1 Key will not break anything!" (-;
| | > | > | > To find the best Newsgroup for FrontPage support see:
| | > | > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | > | > | > _____________________________________________
| | > | > | >
| | > | > | >
| | > | > | | | > | > | > | I've got a page containing a form with a number of fields that
| | have
| | > | > | > | validation rules defined. When validation is performed on the
| | > | server, a
| | > | > | > | default Form Validation Error page is displayed listing all
| | errors,
| | > | with
| | > | > | a
| | > | > | > | "Return to the form" link at the bottom. While clicking this
| | link
| | > | (a
| | > | > | simple
| | > | > | > | <href>) does indeed return to the form, all of the user's input
| | is
| | > | lost.
| | > | > | > | Returning to the form, however, by clicking the browser's Back
| | > | button
| | > | > | > | preserves the user's input. I would thus like to develop my own
| | > | > | > | validation-failure page without the deadly link. Form
| | > | > | > | Properties>Options>Confirmation Page provides the option to
| | specify
| | > | the
| | > | > | URL
| | > | > | > | of a custom validation failure page, confirming that this should
| | be
| | > | > | > | possible.
| | > | > | > |
| | > | > | > | I've developed my own confirmation page using Insert>Web
| | > | > | Component>Advanced
| | > | > | > | Controls>Confirmation Field, but I can't figure out how to build
| | a
| | > | > | failure
| | > | > | > | page -- how do I know which fields failed validation? Looking
| | at
| | > | the
| | > | > | source
| | > | > | > | of the default page is not helpful; except for the link
| | described
| | > | above,
| | > | > | > | it's all just text.
| | > | > | > |
| | > | > | > | FrontPage Help did not prove helpful either, nor did a Google
| | > | search.
| | > | > | > |
| | > | > | > | Thanks in advance for any help.
| | > | > | > |
| | > | > | > |
| | > | > | > |
| | > | > | >
| | > | > | >
| | > | > |
| | > | > |
| | > | >
| | > | >
| | > |
| | > |
| | >
| | >
| |
| |
|
|
 
A

Arnold Gao[MSFT]

Hi there,

We can use javascript to create our custom validation codes. However,
FrontPage can help us do it easily by specifying the validation properties.
It saves time and efforts to do it manually.

Some javascript resource:
http://www.javascript.com/
http://www.mountaindragon.com/javascript/resources.htm

It's nice to see that the issue has been resolved. :)

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
A

Arnold Gao[MSFT]

Hi,

Just a supplement to my initial reply.

I mean that using FrontPage to validate fields is easier than do it
manually.

In addition, we need to leverage codes to implement the custom
validation-failure page as it is development-related. Thus, I would suggest
you submit this requestion to the developer newsgroup.The developer
newsgroups are located at: http://msdn.microsoft.com/newsgroups/default.asp

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
G

Guest

I'm using the built-in FP validation. The question was how to trap the
names of the erroneous fields and their constraints when, for some reason,
the client-side FP javascript doesn't execute and a server error page is
issued instead containing this information.

I understand from your message that this would be better addressed on the
developer newsgroups than here.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top