FP deleting HTML code

V

VF

We have created a "form" using html code that calls an
asp script. The form is viewable via the webbrowser.
However when we copy the code into a new page in
frontpage, frontpage automatically deletes the code when
we try to view in in normal or preview mode. FP then
inserts the standard page format code instead.

HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Bullseye Supply Order Form</TITLE>
</HEAD>


The code we created does not have the two <meta name=>
lines in the code. Even if we add these two lines to the
code, FP deletes the remainder of the code.

As I said, we know the code is good and works fine while
in the browser.. just not in FP. Is there a setting or
configuration change we need to apply to the page
settings for this to work since the form we created calls
an ASP page?
 
T

Thomas A. Rowe

The content of the head section of the page should have no impact on the function of the form.

Can you post the exact code that is being pasted and then below it what FP has done to it?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
G

Guest

Thanks Thomas...

Here is the code. It works in IE browser but not once
you put it in FP. When it is pasted into FP, once you
try to do anything (save/view) it deletes the code and
replaces the code with what I originally posted below.

********** Code ***********
<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Bullseye Supply Order Form</TITLE>
</HEAD>
<BODY>
<H1><font face="Arial"><i>Bullseye</i> Supply Order
Form</font></H1>
<script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

if (theForm.Contact_FullName.value == "")
{
alert("Please enter a value for the
\"Contact_FullName\" field.");
theForm.Contact_FullName.focus();
return (false);
}

if (theForm.Ordering_StreetAddress.value == "")
{
alert("Please enter a value for the
\"Ordering_StreetAddress\" field.");
theForm.Ordering_StreetAddress.focus();
return (false);
}

if (theForm.Contact_Organization.value == "")
{
alert("Please enter a value for the
\"Contact_Organization\" field.");
theForm.Contact_Organization.focus();
return (false);
}

if (theForm.Contact_WorkPhone.value == "")
{
alert("Please enter a value for the
\"Contact_WorkPhone\" field.");
theForm.Contact_WorkPhone.focus();
return (false);
}

if (theForm.Contact_WorkPhone.value.length > 25)
{
alert("Please enter at most 25 characters in the
\"Contact_WorkPhone\" field.");
theForm.Contact_WorkPhone.focus();
return (false);
}

if (theForm.Ordering_City.value == "")
{
alert("Please enter a value for the \"Ordering_City\"
field.");
theForm.Ordering_City.focus();
return (false);
}

if (theForm.Ordering_State.selectedIndex < 0)
{
alert("Please select one of the \"Ordering_State\"
options.");
theForm.Ordering_State.focus();
return (false);
}

if (theForm.Ordering_State.selectedIndex == 0)
{
alert("The first \"Ordering_State\" option is not a
valid selection. Please choose one of the other
options.");
theForm.Ordering_State.focus();
return (false);
}

if (theForm.Ordering_ZipCode.value == "")
{
alert("Please enter a value for the
\"Ordering_ZipCode\" field.");
theForm.Ordering_ZipCode.focus();
return (false);
}

if (theForm.Ordering_ZipCode.value.length > 12)
{
alert("Please enter at most 12 characters in the
\"Ordering_ZipCode\" field.");
theForm.Ordering_ZipCode.focus();
return (false);
}
}
//--></script><FORM METHOD="POST" ACTION="orderform2.asp"
onsubmit="return FrontPage_Form1_Validator(this)" >
<blockquote>
<P>
<font face="Arial">
<input type="checkbox" name="New" value="ON"
tabindex="1">New Bullseye
Customer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="Existing" value="ON"
tabindex="2">Existing Bullseye
Customer, # <input type="text" name="Customer_No"
size="5" tabindex="3"></font></P>
</blockquote>
<P>
<font face="Arial">Please provide the following contact
information:</font></P>
<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111"
width="101%" id="AutoNumber1">
<tr>
<td width="31%" align="right">
<p align="center"><font face="Arial"><b>CONTACT
INFORMATION</b></font></td>
<td width="35%">
<p align="center">
<font face="Arial">
<STRONG>DELIVERY ADDRESS</STRONG></font></td>
<td width="34%">
<p align="center"><font face="Arial"><b>BILLING
ADDRESS&nbsp;&nbsp; <font size="2">(if
different from delivery)</font></b></font></td>
</tr>
<tr>
<td width="31%" align="right">
<font face="Arial">
<INPUT NAME="Contact_FullName" SIZE=30 tabindex="4"
style="font-size: 10pt"></font></td>
<td width="35%" align="right">
<font face="Arial">
<INPUT NAME="Ordering_StreetAddress" SIZE=30
tabindex="10" style="font-size: 10pt">
</font>
</td>
<td width="34%" align="right">
<EM><font size="2" face="Arial">Street </font></EM>
<font face="Arial">
<INPUT NAME="Billing_StreetAddress" SIZE=30 tabindex="17"
style="font-size: 10pt"></font></td>
</tr>
<tr>
<td width="31%" align="right">
<font face="Arial">
<EM><font size="2">Title</font> </EM>
<INPUT NAME="Contact_Title" SIZE=30 tabindex="5"
style="font-size: 10pt"></font></td>
<td width="35%" align="right">
<font face="Arial">
<EM><font size="2">&nbsp;Address (cont.)</font> </EM>
<INPUT NAME="Ordering_Address2" SIZE=30 tabindex="11"
style="font-size: 10pt"></font></td>
<td width="34%" align="right">
<EM><font size="2" face="Arial">Address (cont.)
</font></EM><font face="Arial"><INPUT
NAME="Billing_Address2" SIZE=30 tabindex="18" style="font-
size: 10pt"></font></td>
</tr>
<tr>
<td width="31%" align="right">
<font face="Arial">
<INPUT NAME="Contact_Organization" SIZE=30 tabindex="6"
style="font-size: 10pt"></font></td>
<td width="35%" align="right">
<font face="Arial">
<input type="text" name="Ordering_Address3" size="30"
tabindex="12" style="font-size: 10pt"></font></td>
<td width="34%" align="right">
<font face="Arial">
<input type="text" name="Billing_Address3" size="30"
tabindex="19" style="font-size: 10pt"></font></td>
</tr>
<tr>
<td width="31%" align="right">
<font face="Arial">
<EM><font size="2">Work Phone</font> (</EM><font
size="2">include Area Code)</font><EM> </EM>
<!--webbot bot="Validation" b-value-required="TRUE" i-
maximum-length="25" --><INPUT NAME="Contact_WorkPhone"
SIZE=12 MAXLENGTH=25 tabindex="7" style="font-size:
10pt"></font></td>
<td width="35%" align="right">
<font face="Arial">
<input type="text" name="Ordering_Address4" size="30"
tabindex="13" style="font-size: 10pt"></font></td>
<td width="34%" align="right">
<font face="Arial">
<input type="text" name="Billing_Address4" size="30"
tabindex="20" style="font-size: 10pt"></font></td>
</tr>
<tr>
<td width="31%" align="right">
<font face="Arial">
<EM><font size="2">FAX </font>(i</EM><font
size="2">nclude Area Code)</font><EM> </EM>
<INPUT NAME="Contact_FAX" SIZE=12 MAXLENGTH=25
tabindex="8" style="font-size: 10pt"></font></td>
<td width="35%">
<p align="right">
<font face="Arial">
<INPUT NAME="Ordering_City" SIZE=30 tabindex="14"
style="font-size: 10pt">
</font>
</td>
<td width="34%" align="right">
<EM><font size="2" face="Arial">City </font></EM>
<font face="Arial">
<INPUT NAME="Billing_City" SIZE=30 tabindex="21"
style="font-size: 10pt"></font></td>
</tr>
<tr>
<td width="31%" align="right">
<font face="Arial">
<EM><font size="2">E-mail</font> </EM>
<INPUT NAME="Contact_Email" SIZE=25 tabindex="9"
style="font-size: 10pt"></font></td>
<td width="35%">
<p align="right">
<font face="Arial">
<EM><font size="2">State</font> </EM>
<!--webbot bot="Validation" b-value-required="TRUE" b-
disallow-first-item="TRUE" --><select size="1"
name="Ordering_State" tabindex="15" style="font-size:
10pt">
<option selected>=== Select ===</option>
<option>Alabama</option>
<option>Alaska</option>
<option>Arizona</option>
<option>Arkansas</option>
<option>California</option>
<option>Colorado</option>
<option>Connecticut</option>
<option>Delaware</option>
<option>District of Columbia</option>
<option>Florida</option>
<option>Georgia</option>
<option>Hawaii</option>
<option>Idaho</option>
<option>Illinois</option>
<option>Indiana</option>
<option>Iowa</option>
<option>Kansas</option>
<option>Kentucky</option>
<option>Louisiana</option>
<option>Maine</option>
<option>Maryland</option>
<option>Massachusetts</option>
<option>Michigan</option>
<option>Minnesota</option>
<option>Mississippi</option>
<option>Missouri</option>
<option>Montana</option>
<option>Nebraska</option>
<option>Nevada</option>
<option>New Hampshire</option>
<option>New Jersey</option>
<option>New Mexico</option>
<option>New York</option>
<option>North Carolina</option>
<option>North Dakota</option>
<option>Ohio</option>
<option>Oklahoma</option>
<option>Oregon</option>
<option>Pennsylvania</option>
<option>Rhode Island</option>
<option>South Carolina</option>
<option>South Dakota</option>
<option>Tennessee</option>
<option>Texas</option>
<option>Utah</option>
<option>Vermont</option>
<option>Virginia</option>
<option>Washington</option>
<option>West Virginia</option>
<option>Wisconsin</option>
<option>Wyoming</option>
</select> </font> </td>
<td width="34%" align="right">
<EM><font size="2" face="Arial">State </font></EM>
<font face="Arial">
<select size="1" name="Billing_State" tabindex="22"
style="font-size: 10pt">
<option selected>=== Select ===</option>
<option>Alabama</option>
<option>Alaska</option>
<option>Arizona</option>
<option>Arkansas</option>
<option>California</option>
<option>Colorado</option>
<option>Connecticut</option>
<option>Delaware</option>
<option>District of Columbia</option>
<option>Florida</option>
<option>Georgia</option>
<option>Hawaii</option>
<option>Idaho</option>
<option>Illinois</option>
<option>Indiana</option>
<option>Iowa</option>
<option>Kansas</option>
<option>Kentucky</option>
<option>Louisiana</option>
<option>Maine</option>
<option>Maryland</option>
<option>Massachusetts</option>
<option>Michigan</option>
<option>Minnesota</option>
<option>Mississippi</option>
<option>Missouri</option>
<option>Montana</option>
<option>Nebraska</option>
<option>Nevada</option>
<option>New Hampshire</option>
<option>New Jersey</option>
<option>New Mexico</option>
<option>New York</option>
<option>North Carolina</option>
<option>North Dakota</option>
<option>Ohio</option>
<option>Oklahoma</option>
<option>Oregon</option>
<option>Pennsylvania</option>
<option>Rhode Island</option>
<option>South Carolina</option>
<option>South Dakota</option>
<option>Tennessee</option>
<option>Texas</option>
<option>Utah</option>
<option>Vermont</option>
<option>Virginia</option>
<option>Washington</option>
<option>West Virginia</option>
<option>Wisconsin</option>
<option>Wyoming</option>
</select></font></td>
</tr>
<tr>
<td width="31%">&nbsp;</td>
<td width="35%">
<p align="right">
<font face="Arial">
<EM><font size="2">Zip/Postal Code</font> </EM>
<!--webbot bot="Validation" b-value-required="TRUE" i-
maximum-length="12" --><INPUT NAME="Ordering_ZipCode"
SIZE=12 MAXLENGTH=12 tabindex="16" style="font-size:
10pt">
</font>
</td>
<td width="34%" align="right">
<EM><font size="2" face="Arial">Zip/Postal Code
</font></EM>
<font face="Arial">
<INPUT NAME="Billing_ZipCode" SIZE=12 MAXLENGTH=12
tabindex="23" style="font-size: 10pt">
</font>
</td>
</tr>
</table>
<P>
<font face="Arial">Please provide the following ordering
information:</font></P>
<BLOCKQUOTE>
<TABLE width="633">
<TR>
<TD width="137">
<font face="Arial">
<STRONG>&nbsp;
UNIT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
QTY</STRONG></font></TD>
<TD width="486">
<font face="Arial">
<STRONG>PRODUCT NAME /
DESCRIPTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;
MFG #</STRONG></font></TD>
</TR>
<TR><TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit0" tabindex="24">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty0" SIZE=6 MAXLENGTH=6
tabindex="25"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc0" SIZE=45
tabindex="26">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg0" size="20"
tabindex="27"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit1" tabindex="28">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty1" SIZE=6 MAXLENGTH=6
tabindex="29"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc1" SIZE=45
tabindex="30">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg1" size="20"
tabindex="31"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit2" tabindex="32">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty2" SIZE=6 MAXLENGTH=6
tabindex="33"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc2" SIZE=45
tabindex="34">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg2" size="20"
tabindex="35"> </font> </TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit3" tabindex="36">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty3" SIZE=6 MAXLENGTH=6
tabindex="37"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc3" SIZE=45
tabindex="38">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg3" size="20"
tabindex="39"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit4" tabindex="40">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty4" SIZE=6 MAXLENGTH=6
tabindex="41"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc4" SIZE=45
tabindex="42">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg4" size="20"
tabindex="43"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit5" tabindex="44">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty5" SIZE=6 MAXLENGTH=6
tabindex="45"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc5" SIZE=45
tabindex="46">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg5" size="20"
tabindex="47"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit6" tabindex="48">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty6" SIZE=6 MAXLENGTH=6
tabindex="49"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc6" SIZE=45
tabindex="50">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg6" size="20"
tabindex="51"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit7" tabindex="52">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty7" SIZE=6 MAXLENGTH=6
tabindex="53"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc7" SIZE=45
tabindex="54">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg7" size="20"
tabindex="55"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit8" tabindex="56">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty8" SIZE=6 MAXLENGTH=6
tabindex="57"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc8" SIZE=45
tabindex="58">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg8" size="20"
tabindex="59"></font></TD></TR><TR>
<TD width="137"><font face="Arial"><select size="1"
name="Ordering_Unit9" tabindex="60">
<option selected>Select</option>
<option>CT</option>
<option>BX</option>
<option>EA</option>
<option>PK</option>
</select>&nbsp;&nbsp;
<INPUT NAME="Ordering_OrderQty9" SIZE=6 MAXLENGTH=6
tabindex="61"></font></TD>
<TD width="486"><font face="Arial"><INPUT
NAME="Ordering_OrderDesc9" SIZE=45
tabindex="62">&nbsp;&nbsp;
<input type="text" name="Ordering_Mfg9" size="20"
tabindex="63"></font></TD></TR></TABLE>
<P>
</P>
<P>
</P>
<P>
</P>
<P>
</P>
<P>
</P>
<P>
</P>
<P>
</P>
<P>
</P>
<P>
</P>
</PRE>
</BLOCKQUOTE>
<BLOCKQUOTE>
<P>
<font face="Arial"><INPUT TYPE=CHECKBOX NAME="Catalog"
value="ON" tabindex="64"> Please send a Facility Supplies
Catalog with order.<BR>
</font></P>
</BLOCKQUOTE>
<P>
<font face="Arial">Comments/Delivery
Instruction:</font></P>
<BLOCKQUOTE>
<P>
<font face="Arial"><TEXTAREA NAME="Comments" ROWS=5
COLS=35 tabindex="65"></TEXTAREA>
<BR>
</font></P>
</BLOCKQUOTE>
<font face="Arial"><INPUT TYPE=submit VALUE="Submit Form"
tabindex="66">
<INPUT TYPE=RESET VALUE="Reset Form"> </font></FORM>
<HR>
<H5>
<font face="Arial"><BR>
Revised: <!--WEBBOT BOT=TimeStamp
S-Type="EDITED"
S-Format="%m/%d/%y" startspan
-->06/04/04<!--webbot bot="TimeStamp" i-checksum="12792"
endspan --></font></H5>
</BODY>
</HTML>


-----Original Message-----
The content of the head section of the page should have
no impact on the function of the form.
Can you post the exact code that is being pasted and
then below it what FP has done to it?
 
T

Thomas A. Rowe

Ok, you are using FP Form Field Validation, the JavaScript is only viewable when you do a view
source in a browser, in FP's HTML/Code View you should never see this JavaScript.

If you are modify the FP Form Validation Script, then you have to assign it a new name, as well as
change the name of the form, and then you must remove all FP Form Validation from the form field,
then you would paste your modify script into the head section of the page with the form.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

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