Solved

FrontPage Textbox validation settings - Whitespace

Posted on 2008-06-10
8
343 Views
Last Modified: 2013-12-24
Hi, I hope someone can help...

I've inserted a text box within a form on a web page (in FrontPage), in order to collect the user's name.

I have applied validation settings to allow a data type of text, and have ticked the boxes to allow both Letters and Whitespace. When testing the form, it could not be submitted until I removed the space between the first and last name, despite the fact that I have specified that Whitespace is allowed.

Does anyone know why?

Thanks

0
Comment
Question by:LSE_IT_Training
  • 5
  • 3
8 Comments
 
LVL 31

Expert Comment

by:James Murrell
ID: 21753159
can you post code here
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 21755444
if it helps i just create a form with text box and have same data type of text, and have ticked the boxes to allow both Letters and Whitespace  as you and all ok
html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
 
<body>
 
<form method="POST" action="--WEBBOT-SELF--">
	<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
	<p>
	<!--webbot bot="Validation" S-Display-Name="name" S-Data-Type="String" B-Allow-Letters="TRUE" B-Allow-WhiteSpace="TRUE" -->
	<input type="text" name="T1" size="20"></p>
	<p>&nbsp;</p>
	<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
 
</body>
 
</html>

Open in new window

0
 

Author Comment

by:LSE_IT_Training
ID: 21758771
Thanks for the response, the code is below. The text box concerned is the first one - "Your Name". I can't see any difference between your code and this though....

<form method="POST" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1" action="http:NOTE: REMOVED FOR POSTING PURPOSES THOUGH CORRECT">
      <table border="0" width="100%" cellspacing="0" cellpadding="5" id="table1">
            <tr>
                  <td align="right">
                  <p align="right">Your name:</td>
                  <td width="279" colspan="5">
                  &nbsp;<!--webbot bot="Validation" S-Display-Name="Your Name" S-Data-Type="String" B-Allow-Letters="TRUE" B-Allow-WhiteSpace="TRUE" --><input type="text" name="name" size="30"></td>
            </tr>
            <tr>
                  <td align="right">
                  <p align="right">Is this the first FrontPage course you've attended?</td>
                  <td width="279" colspan="5">
                  <input type="radio" value="YES" name="first_course">Yes&nbsp;&nbsp;&nbsp;&nbsp;
                  <input type="radio" name="first_course" value="NO" checked>No</td>
            </tr>
            <tr>
                  <td align="right">What was the first FrontPage course you attended?</td>
                  <td width="279" colspan="5">
                  &nbsp;<!--webbot bot="Validation" s-display-name="What first course?" b-value-required="TRUE" b-disallow-first-item="TRUE" --><select size="1" name="what_first_course">
                  <option selected>Please select >>>></option>
                  <option>Not Applicable</option>
                  <option>FrontPage: Introduction</option>
                  <option>FrontPage: Managing Your Website</option>
                  <option>FrontPage: Working With Images</option>
                  </select></td>
            </tr>
            <tr>
                  <td align="right">How would you rate this course so far? [1=very
                  poor, 5 =very good]</td>
                  <td width="56" align="center">
                  &nbsp;<!--webbot bot="Validation" s-display-name="Course Rating" b-value-required="TRUE" --><input type="radio" name="course_rating" value="1"><br>
                  1</td>
                  <td width="56" align="center">
                  <input type="radio" name="course_rating" value="2"><br>
                  2</td>
                  <td width="56" align="center">
                  <input type="radio" name="course_rating" value="3"><br>
                  3</td>
                  <td width="56" align="center">
                  <input type="radio" name="course_rating" value="4"><br>
                  4</td>
                  <td width="55" align="center">
                  <input type="radio" name="course_rating" value="5"><br>
                  5</td>
            </tr>
            <tr>
                  <td>&nbsp;</td>
                  <td width="279" colspan="5">&nbsp;</td>
            </tr>
            <tr>
                  <td>&nbsp;</td>
                  <td width="279" colspan="5">
                  <input type="submit" value="Submit" name="B1"></td>
            </tr>
      </table>
      <p>&nbsp;</p>
      <input type="hidden" name="email_subject" value="FrontPage Course Questionnaire">
      <input type="hidden" name="recipient" value="c.steele">
      <input type="hidden" name="end_of_text" value="eot">
      <input type="hidden" name="tab_format" value="yes">
</form>

0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 31

Expert Comment

by:James Murrell
ID: 21758829
works on my server > went to page http:NOTE: REMOVED FOR POSTING PURPOSES THOUGH CORRECT  (so i guess it worked)
on
it nows does to a text file on my system
http://www.websaintstest.co.uk/new_page_2.htm
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 21758837
results are here

*******************************************************************************
name:              James Murrell
first_course:      NO
what_first_course: FrontPage: Managing Your Website
course_rating:     1
B1:                Submit
email_subject:     FrontPage Course Questionnaire
recipient:         c.steele
end_of_text:       eot
tab_format:        yes
0
 

Author Comment

by:LSE_IT_Training
ID: 21759459
Thanks again, it looks like it may be a server issue then. I'll hold back on awarding the points for a day, in case someone else has any ideas.
0
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 21759511
no worries anything else just contact me
0
 

Author Closing Comment

by:LSE_IT_Training
ID: 31465770
Thanks again.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question