Page 222 template wont go in/on
Hi All
Below is the code for request as per page 221 and code for main as per page 222.
Nothing happens when is drag I t on.
Any ideas?
Jacky Kenna
requestForm.htm Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Cooking Place - Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 36px;
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<meta name="Description" content="The cooking place is where you can come to find great recipes, get cooking tips, learn about various techniques, and share your recipies with your friends from all over the word." />
<link href="Style%20Sheets/cookingPlaceStyles.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/AppendixA/thecookingplaceaspnet/images/topbkg.gif">
<tr>
<td width="50%"><img src="images/Chapters01_06/TheCookingPlace/images/topleft.gif" width="290" height="50" /></td>
<td width="50%"><div align="center"><span class="style1">The Cooking Place </span></div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="42" valign="top" background="images/AppendixA/thecookingplaceaspnet/images/sidebkg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/AppendixA/thecookingplaceaspnet/images/topleft2.gif" width="257" height="112" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td background="images/AppendixA/thecookingplaceaspnet/images/rightsidebkg.gif"><p><img src="images/AppendixA/thecookingplaceaspnet/images/topleft3.gif" width="195" height="75" /> </p>
<p><img src="images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" /> </p>
<p><img src="images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" /></p>
<p><img src="images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" /></p>
<p><a href="requestForm.htm"><img src="images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" border="0" /></a></p></td>
<td width="50%"><img src="images/AppendixA/thecookingplaceaspnet/images/page.gif" width="59" height="199" /></td>
</tr>
</table>
</td>
<td width="99%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" valign="top"><img src="images/AppendixA/thecookingplaceaspnet/images/leftcorn.gif" width="28" height="22" /></td>
<td width="98%"> </td>
<td width="1%" align="right" valign="top"><img src="images/AppendixA/thecookingplaceaspnet/images/rightcorn.gif" width="28" height="22" /></td>
</tr>
</table>
<table width="100%" border="5" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#ECE9D8"><form action="register.asp" method="get" name="cust_form" id="cust_form" onsubmit="MM_validateForm('cust_name','','R','cust _email','','NisEmail');return document.MM_returnValue">
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td nowrap="nowrap"><div align="right"><strong>Name:</strong></div></td>
<td width="10" rowspan="6"> </td>
<td><input name="cust_name" type="text" id="cust_name" size="60" maxlength="40" /></td>
</tr>
<tr>
<td nowrap="nowrap"><div align="right"><strong>I am interested in: </strong></div></td>
<td><select name="cust_interest" size="1" id="cust_interest">
<option value="Recipes">New Recipes</option>
<option value="Technique">Cooking Techniques</option>
<option value="Sharing">Shared Recipes</option>
<option value="Gourmet">Finding Gourmet Food</option>
</select></td>
</tr>
<tr>
<td nowrap="nowrap"><div align="right"><strong>Mail or email:</strong></div></td>
<td> <input name="cust_contact_type" type="radio" value="mail" />
Mail
<input name="cust_contact_type" type="radio" value="email" checked="checked" />
Email</td>
</tr>
<tr>
<td nowrap="nowrap"><div align="right"><strong>Comments:</strong></div></td>
<td><textarea name="cust_comments" cols="40" rows="5" id="cust_comments"></textarea></td>
</tr>
<tr>
<td nowrap="nowrap"><div align="right"><strong>Address:</strong></div></td>
<td><input name="cust_email" type="text" id="cust_email" size="60" maxlength="40" /></td>
</tr>
<tr>
<td nowrap="nowrap"><div align="right">
<input type="submit" name="Submit" value="Send My Information" />
</div></td>
<td> </td>
</tr>
</table>
</form></td>
</tr>
</table>
</td>
<td width="1%" background="images/AppendixA/thecookingplaceaspnet/images/rightsidebkg.gif"><img src="images/AppendixA/thecookingplaceaspnet/images/rightsidebkg.gif" width="24" height="31" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/AppendixA/thecookingplaceaspnet/images/botbkg.gif">
<tr>
<td width="50%"><img src="images/AppendixA/thecookingplaceaspnet/images/botleft.gif" width="235" height="40" /></td>
<td><div align="right"><img src="images/AppendixA/thecookingplaceaspnet/images/botright.gif" width="69" height="40" /></div></td>
</tr>
</table>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx
Main.dwt
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Cooking Place - Home Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 36px;
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<meta name="Description" content="The cooking place is where you can come to find great recipes, get cooking tips, learn about various techniques, and share your recipies with your friends from all over the word." />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/AppendixA/thecookingplaceaspnet/images/topbkg.gif">
<tr>
<td width="50%"><img src="../images/Chapters01_06/TheCookingPlace/images/topleft.gif" width="290" height="50" /></td>
<td width="50%"><div align="center"><span class="style1">The Cooking Place </span></div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="42" valign="top" background="../images/AppendixA/thecookingplaceaspnet/images/sidebkg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/AppendixA/thecookingplaceaspnet/images/topleft2.gif" width="257" height="112" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td background="../images/AppendixA/thecookingplaceaspnet/images/rightsidebkg.gif"><p><img src="../images/AppendixA/thecookingplaceaspnet/images/topleft3.gif" width="195" height="75" /> </p>
<p><img src="../images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" /> </p>
<p><img src="../images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" /></p>
<p><img src="../images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" /></p>
<p><a href="requestForm.htm"><img src="../images/AppendixA/thecookingplaceaspnet/images/buttonblank.gif" width="181" height="31" border="0" /></a></p></td>
<td width="50%"><img src="../images/AppendixA/thecookingplaceaspnet/images/page.gif" width="59" height="199" /></td>
</tr>
</table>
</td>
<td width="99%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" valign="top"><img src="../images/AppendixA/thecookingplaceaspnet/images/leftcorn.gif" width="28" height="22" /></td>
<td width="98%"> </td>
<td width="1%" align="right" valign="top"><img src="../images/AppendixA/thecookingplaceaspnet/images/rightcorn.gif" width="28" height="22" /></td>
</tr>
</table>
main</td>
<td width="1%" background="../images/AppendixA/thecookingplaceaspnet/images/rightsidebkg.gif"><img src="../images/AppendixA/thecookingplaceaspnet/images/rightsidebkg.gif" width="24" height="31" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/AppendixA/thecookingplaceaspnet/images/botbkg.gif">
<tr>
<td width="50%"><img src="../images/AppendixA/thecookingplaceaspnet/images/botleft.gif" width="235" height="40" /></td>
<td><div align="right"><img src="../images/AppendixA/thecookingplaceaspnet/images/botright.gif" width="69" height="40" /></div></td>
</tr>
</table>
</body>
</html>
|