Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2005, 03:40 PM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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%">&nbsp;</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">&nbsp;</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>&nbsp;</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%">&nbsp;</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>


 
Old June 20th, 2005, 03:49 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:Nothing happens when is drag I t on.
Heuh???

You shouldn't drink and program at the same time.... ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Spying Glass by Massive Attack (Track 5 from the album: Protection) What's This?
 
Old June 21st, 2005, 02:35 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar

Again its the next day when the penny drops. I am returning to BGDM and was not sure where I had gotten to. I now understand your comment. I had done it already.

All the best Jacky

 
Old June 21st, 2005, 02:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What comment are you referring to? Is this meant for another thread?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Suck it Up by Hed Planet Earth (Track 1 from the album: Blackout ) What's This?
 
Old June 22nd, 2005, 02:12 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No its for here. I had done the action (couple of weeks back) and was attempting to do it again which was why nothing happened. My mistake.
All the best






Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 222 Step 5 Whitney Schopf BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 November 6th, 2006 06:43 AM
It wont Connect toMySQLChapter 3,Page 95-98, Alej PHP Databases 3 August 29th, 2006 11:37 PM
User object in Master Page template? lancer ASP.NET 2.0 Basics 0 June 22nd, 2006 01:32 PM
SelectedIndexChanged wont fire in content page alemadlei ASP.NET 2.0 Basics 1 May 28th, 2006 11:00 AM
Can't create html page from template thiwan Dreamweaver (all versions) 4 June 13th, 2005 11:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.