Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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 7th, 2005, 07:05 PM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Template Error

I tried to make a basic template from one of my HTML pages.

For testing purposes, I only made sure the main text area was editable.

However, when I make a change to the template to see if it will update the pages based on itself, I get an error that obviously will not allow the update. The error seems to point to the line referencing the auto-generated region called:



and says something about "nested editable regions".

I only made ONE editable region. Maybe something in my page code is confusing the template? Here is the template code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>


<meta http-equiv="content-type" content="text/html;charset=ISO-8859-2">

<style type="text/css">
<!--
.mainboldbody {
 font-family: "Trebuchet MS";
 font-weight: bold;
 color: #4c748e;
}
-->
</style>

<head>

 <title>Sportfan poker</title>

 <meta name="keywords" content="" />
 <meta name="description" content="" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <link rel="stylesheet" type="text/css" href="../bodypages/style.css" />
 <script type="text/javascript" src="../bodypages/menu.js"></script>
</head>

 <body onload="init_menu(document.getElementById('menu')) ;">

 <div id="root">
  <div id="banner"></div>
  <div class="container">
    <div class="container"><ul id="menu">
    <li><a href="../frontpage/index.html">Home</a></li>
    <li>Players Lounge
      [list]
      <li>Link 2.1</li>
      <li>Link 2.2
       [list]
        <li>Link 2.2.1</li>

        <li>Link 2.2.2</li>
        <li>Link 2.2.3</li>
       </ul>
      </li>
      <li>Link 2.3</li>
     </ul>
    </li>

    <li>Game Information
  [list]
      <li>Getting Started</li>
   <li>Poker Basics</li>
   <li>Poker Hands</li>
      <li>Rules
     [list]
        <li><a href="../gameinfo/holdem.htm">Texas Hold'em</a></li>
        <li><a href="../gameinfo/omaha.htm">Omaha</a></li>
        <li><a href="../gameinfo/omaha_hl.htm">Omaha High/Low</a></li>
  <li><a href="../gameinfo/stud.htm">7 Stud</a></li>
  <li><a href="../gameinfo/stud_hl.htm">7 Stud High/Low</a></li>
  <li>Tournamnets</li>
       </ul>
      </li>
      <li>Link 2.3</li>
     </ul>
    </li>
    <li>Features
 [list]
        <li><a href="../features/features.htm">Features</a></li>
        <li><a href="../features/hotkeys.htm">Hot Keys</a></li>
        <li><a href="../features/playerimages.htm">Player Images</a></li>
      </ul>
  </li>
    <li>Promotions
  [list]
        <li>Deposit Bonuses</li>
        <li>Refer a Friend</li>
        <li>Newsletter</li>
       </ul>
  </li>
 <li>Real Money
   [list]
        <li><a href="../realmoney/integrity.htm">Integrity</a></li>
        <li><a href="../realmoney/banking.htm">Banking</a></li>
        <li><a href="../realmoney/rakeschedule.htm">Rake Schedule</a></li>
      </ul>
  </li>
    <li>Support</li>
   </ul></div>
   </div>
  <div id="headers" class="container">
   <h4>Editable heading</h4>
  </div>

  <div id="content" class="container">
   <div id="left">
    [list]
     <li><img src="../bodypages/tri.png" alt="" /><a href="#">Did it work </a></li>
     <li><img src="../bodypages/tri.png" alt="" /><a href="#">Omaha High</a></li>
     <li><img src="../bodypages/tri.png" alt="" /><a href="#">Omaha 8 or Better</a></li>
     <li><img src="../bodypages/tri.png" alt="" /><a href="#">Seven Card Stud</a></li>
     <li><img src="../bodypages/tri.png" alt="" /><a href="#">Stud 8 or better</a></li>
    </ul>
   </div>

   <div id="main"> <img src="../bodypages/image2.jpg" id="image2" alt="" />
       <h3 class="h2">Texas Hold'em</h3>
       <p>Texas Hold#8217;em is far and away the most popular poker game out there today. Featured in the televised WPT events, and canonized in the poker film classic Rounders, to many Hold#8217;em is the only game to play.</p>
       <p class="mainboldbody">Game Basics:</p>
       <p>The game concept itself is pretty simple. Each player is dealt two cards face down (called pocket cards). The dealer then deals five community cards face up; these are available to all the players to help make their hand. Players may use any combination of their pocket cards and the community cards to make their hand. The best 5-card hand takes the pot.</p>
       <p>Of course, the game is a little more complicated than that, and as usual, the complications revolve around money. In our poker lobby, you may have noticed three different options under the limit column (Fixed, PL, NL). These options represent the three different Hold#8217;em games we offer: Fixed Limit, Pot Limit, and No Limit. The game type you select will dictate the bet minimums and maximums for that game.</p>
       <p class="mainboldbody">Game Types</p>
       <p>In a Fixed Limit game, both the bet and raise amounts for each round are a preset amount. For example, in a $5/$10 Fixed game, both the bets and raises for the first two rounds of betting must be $5, no more, no less. The last 2 rounds have a bet/raise amount of $10. </p>
       <p>In a Pot Limit Game, the maximum bet/raise can#8217;t be more than the current pot amount. So, if the pot is $30, you can#8217;t bet more than $30. One thing to note: If you are raising on a player#8217;s bet, your call is already included in the pot. So, for example, let#8217;s say the pot is $100. Player X opens the betting with $100. Your maximum bet is now $300 (Pot = Initial $100 + Player X#8217;s $100 + your $100)</p>
       <p>Still with us? OK, the final game type is No Limit. The name says it all; there are no maximum bet limits. You can bet as much as you like during any round of betting. The minimum bet is the big blind amount. No Limit Hold#8217;em makes for big pots, fast action, and great watching. </p>
       <p>Now that you#8217;ve chosen a game type, it#8217;s time to talk about 2 other betting concepts#8230;. The Stakes, The Cap and The Blinds.</p>
       <p><strong>The Stakes:</strong> The stakes are tied directly to the game type you select. For a Fixed Limit game, the stakes dictate the bet and raise amount for each round. Let#8217;s use our $5/$10 stakes example again. In the first two rounds of betting, both the bet and the raise must be $5, no more, no less. The last 2 rounds have a bet/raise amount of $10. </p>
       <p><strong>The Cap:</strong> In Fixed limit games, each round of betting can consist of one bet and has a maximum number of three of allowable raises, known as the cap. So, if a bet is made, that bet can only be raised three times, after which all players must call, or fold. However, if only two players remain in the hand the cap is increased, to a maximum of five raises.</p>
       <p>In both the Pot Limit and No Limit games, the stakes represent the amounts posted as the blinds. More on the blinds next#8230;.</p>
       <p><strong>The Blinds:</strong> The blinds are mandatory bets posted by two players at the start of each hand, before any cards are dealt. The player directly to the left of the dealer posts the small blind, which in a fixed limit game is half the small stake, rounded down to the nearest dollar, and in pot limit/no limit games is equal to the small stake. The player to the left of him posts the big blind, which in a fixed game is equal to the small stake, and in pot limit/no limit games the big stake.</p>
       <p>Sound complicated? It really isn#8217;t. Let#8217;s use our trusty $5/$10 stakes again. In a fixed limit game, the small blind posts $2 (half of $5 rounded down). The big blind posts $5. In a $5/$10 pot limit/no limit game, the small blind posts $5, and the big blind posts $10.</p>
       <p>In poker we use blinds as an incentive for players to play a hand, and build the pot. Consider the blinds like a mandatory bet and raise; any players that want to play the hand must match the big blind to stay in. The blinds are considered live bets, so when the action goes around the table and returns to them, they have the option of checking, calling, raising or folding as they see fit.</p>
       <p>Some other notes about blinds: Any player has the option of sitting out and waiting for the big blind to reach them. However, if a player sits out and misses posting the big blind, then that player will be required to post a big blind and a small #8220;dead#8221; blind before returning. This rule is in place to prevent potential abuse from players who join a table and then leave before having to post the blinds.</p>
       <p>One thing we haven#8217;t talked much about is the dealer. In poker each player in turn plays as the dealer. At the table we represent the dealer position with...</p>
       <p><strong>The Dealer Button:</strong> The Button is a graphic symbol that represents the theoretical dealer. After each hand, the button moves clockwise to the next active player, who becomes the dealer for that hand. This player is considered to be #8220;on the button,#8221; and is the last person to act in the betting round. The first player to the left of the button is the first player to be dealt cards, and is the first player to act in each betting round.</p>
       <p class="mainboldbody">The Gameplay:</p>
       <p>OK, let#8217;s play some Hold #8216;em. You#8217;ve bought in to a table, sat down and posted your big blind. What#8217;s next?</p>
       <p><strong>Pre Flop#8230;The Pocket Cards:</strong> (AKA the Hole Cards). The dealer deals each player 2 cards face down. Only the player can see his/her hole cards. After the deal, the next player after the big blind decides whether to call, raise or fold the big blind. Each player in turn is given these options, until all bets are called and the big blind checks. Don#8217;t forget, in a fixed limit game, any raises are limited to the lower stake amount, and in a pot limit game, the bet can#8217;t exceed the pot amount.</p>
       <p><strong>The Flop:</strong> Now the dealer turns over the first three community cards, called #8220;the flop#8221;. All betting rounds start with the player directly to the dealers left. For fixed limit games, this round of betting still uses the lower stake, so in our example $5/$10 game, any bets or raises must be $5. The pot limit and no limit rules don#8217;t change.</p>
       <p><strong>The Turn:</strong> (AKA Fourth Street). The fourth community card is dealt, and a new betting round begins. The bet amount for fixed limit games increases to the upper stake. Betting continues until all bets are called.</p>
       <p><strong>The River:</strong> Here the final community card is shown, and the last round of betting takes place. The bet amount for fixed limit games is still the big stake.</p>
       <p><strong>The Showdown:</strong> All the bets have been called, it#8217;s time to show the cards. The last player to bet or raise during the final betting round will show their hand first. If all the players checked through (nobody bet), the player to the left of the dealer will show first. The remaining players#8217; hands will be automatically revealed moving clockwise, unless a hand is weaker than the winning hand shown. In this case, you#8217;ll have the option to show, or muck (fold without showing). The best five card hand takes the pot. For a complete list of hand rankings, please consult the <a href="/poker/hand-rankings.jsp">Hand Rankings page</a>.</p>
       <p><strong>Buying the pot:</strong> If during a betting round you make a bet and all players fold to you, you#8217;ve bought the pot. You have the option to show or muck your cards.<br />
            <br />
       </p>
   </div>
   </div>

  <div id="foot_hr"></div>
  <div id="footer">
   <span class="menu_item"><a href="#">plug-ins</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">support</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">get gear</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">company zone</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">rss</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">site map</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">terms of use</a></span><span class="bull">&bull;</span><span class="menu_item"><a href="#">privacy policy</a></span>
  </div>
  <div id="footer2">
   <span>Copyright &copy; 2005 Yahoo! Inc. All rights reserved. Musicmatch&reg;, the Musicmatch logo, AutoDJ&reg;, and freedom for<br />
    music lovers&reg; are registered trademarks of Yahoo! Inc. Artist Match&trade; is a trademark of Yahoo! Inc.<br />
    Other trademarks are property of their respective owners.</span>
  </div>

 </div>

 </body>


<meta http-equiv="content-type" content="text/html;charset=ISO-8859-2">
</html>

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

I am not sure why Dreamweaver would give you this error, but it looks like it's because you messed up the head section of the page.

You have a <meta> and a <style> tag directly in the <html> element and not inside the <head> as it should
Normally, a template should look like this:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Untitled Document</title>



</head>


Does this help?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: What Is Fight Club? by The Dust Brothers (Track 3 from the album: Fight Club) What's This?
 
Old June 8th, 2005, 02:57 PM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You nailed it! Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
template uicdbd XSLT 5 March 15th, 2007 12:54 PM
template uicdbd XSLT 1 March 14th, 2007 05:16 PM
calling one template in other template VijayKumar XSLT 3 September 15th, 2005 11:12 AM
XSLT Template error again bmains XSLT 4 December 19th, 2003 11:17 AM





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