|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Javascript - Code dissappears in code view ms-fp2002 although viewable in source online
I can not view this code below in frontpage2002 code view although when i view page[http://dimitriavilla.com/book_here.htm] and source i view it successfully ? when i copy code and paste to fp2002 direct editting from web when save disappears the code and saved ? When I open it again no code below ....
I want to can view the in fp2002 what to do ? Code:
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.Country.selectedIndex < 0)
{
alert("Please select one of the \"Country\" options.");
theForm.Country.focus();
return (false);
}
if (theForm.Country.selectedIndex == 0)
{
alert("The first \"Country\" option is not a valid selection. Please choose one of the other options.");
theForm.Country.focus();
return (false);
}
if (theForm.LastName.value == "")
{
alert("Please enter a value for the \"LastName\" field.");
theForm.LastName.focus();
return (false);
}
if (theForm.FirstName.value == "")
{
alert("Please enter a value for the \"FirstName\" field.");
theForm.FirstName.focus();
return (false);
}
if (theForm.HomePhone.value == "")
{
alert("Please enter a value for the \"HomePhone\" field.");
theForm.HomePhone.focus();
return (false);
}
if (theForm.Email.value == "")
{
alert("Please enter a value for the \"Email\" field.");
theForm.Email.focus();
return (false);
}
if (theForm.Email2.value == "")
{
alert("Please enter a value for the \"Email2\" field.");
theForm.Email2.focus();
return (false);
}
if (theForm.Adults.value == "")
{
alert("Please enter a value for the \"Adults\" field.");
theForm.Adults.focus();
return (false);
}
if (theForm.Children.value == "")
{
alert("Please enter a value for the \"Children\" field.");
theForm.Children.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan -->
|
|
#2
|
|||
|
|||
|
No one uses front page (that I know). Use notepad or gedit like a man.
__________________
Sir, a desire of knowledge is the natural feeling of mankind; and evey human being, whose mind is not debauched, will be willing to give all that he has to get knowledge. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Javascript - Code dissappears in code view ms-fp2002 although viewable in source online |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|