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 July 7th, 2005, 11:11 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Locked Template

Hi All

I am developing a website following what I have picked up in BD 2004. I have been able to enter tables in this template before but now it is locked.

Two editable areas. “2nd Contents is the editable area. I place my mouse in the contents box, the small one, load in a table and get the following notice.

"Making this change would require changing code that is locked by a template or a translator. This change will be disregarded.”
Code below." Any ideas.

I have had this if I am being careless and not placing my mouse correctly. That is not the case here. There are two editable areas and I can load into the first.

All the best
Jacky

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>MRNS Template Development screens</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--


-->
</style>
        <link href="../stylesheets/mrnsStyles.css" rel="stylesheet" type="text/css">

<style type="text/css">

<!--
body {
    background-color: #F9F9F2;
}
.style1 {color: #F9F9F2}
.style2 {color: #000000}
body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
}
-->
</style>
<script>
function op() { //This function is used with folders that do not open pages themselves. See online docs.
}

//To use these functions in a frameless layout, move the functions to
//the main page and follow the instructions in the demoFuncsNodes.js
function exampleFunction(message)
{
    alert("Treeview nodes can call JS functions\n" + message)
}
// If you rename the "windowWithoutToolbar" function, please don't give it a name that
// starts with "op"; it will conflict with some special Treeview code.
function windowWithoutToolbar(urlStr, width, height)
{
   window.open(urlStr, '_blank', 'location=no,status=no,scrollbars=no,menubar=no,to olbar=no,directories=no,resizable=no,width=' + width + ',height=' + height)
}
</script>
</head>

<body>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png" bgcolor="#B7E8FF">
                        <tr>
                        <td width="24"></td>
                        <td width="105" rowspan="2"><img src="../images/logoSmal.png" width="135" height="27"></td>
                        <td colspan="3" rowspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                    <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/bgColTopPan.png">
                          <tr>
                            <td width="30%"><div align="center"><a href="yrAcc.php" class="label">Logged on as </a></div></td>
                            <td width="30%"><div align="center"><a href="currentProject">Current project : </a></div></td>
                            <td width="30%"><div align="center"><a href="../publicScreens/yrAccpublic.php">Your Account </a></div></td>
                            <td width="25"><img src="../images/phones-4-u-logo.png" width="27" height="27"></td>
                              <td width="24"></td>
                        </tr>
                    </table>
                </td>
            </table>
        </td>

          </tr>

    </table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C1CBD7">
          <tr>
            <td width="24"></td>
                 <td><div align="center"></div></td>
                <td><a href="../index.html">Home</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="buildOverview.php">Builder Overview</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="locationC.htm">Location Criteria</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../customData/customData.htm">Custom Data</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="selectGroups.htm">Selection Groups</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="../controlScreenBuilder/ctrlScrBldger.htm">Contol Screen Builder</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="rptScrBldger.htm">Reports Screen Builder</a></td>
                <td>&nbsp;&nbsp;</td>
                <td><a href="Bulk%20Load.php" id="contact">Bulk Load </a></td>
            <td width="24"></td>
      </tr>
      </table>

    <script language="JavaScript" type="text/javascript">
                           var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
                           sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
                          sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
                           if (document.getElementById(sPageName))
                        {
                        document.getElementById(sPageName) .style.fontWeight = 'Bold';
                        document.getElementById(sPageName) .style.fontSize = '14pt';
                        }
                    </script>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bgColDevSheets.png" bgcolor="#ECE9D8">
          <tr>
                  <td width="24" bgcolor="#F5F5EB"><img src="../images/spacerLftDevCol.png" width="20" height="399"></td>
                <td align="left" valign="top" background="../images/bgColDevScrs.png" bgcolor="#F5F5EB">
                  <span class="style1">

          </span></td>
                  <td width="24" background="../images/spacerLftDevCol.png" bgcolor="#F9F9F2"><img src="../images/spacerLftDevCol.png" width="8" height="399"></td>
          </tr>
</table>

    <table width="100%" border="0" cellspacing="0" cellpadding="0"background="../images/btnBgCol.png" bgcolor="#C1CBD7">
       <tr>
               <td width="24">&nbsp;</td>
                <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                <td><a href="../publicScreens/aboutUs.php" id="aboutUs">About us </a></td>
                <td><a href="../publicScreens/salesPublic.php" id="sales">Sales </a></td>
                    <td><a href="../publicScreens/help.php" id="help">Help </a></td>
                <td><a href="../publicScreens/contact.php" id="contact">Contact Us</a></td>
                <td><a href="../sitePlan.php">Site Plan</a></td>
            <td width="24">&nbsp;</td>

                      <br>
        <script language="JavaScript" type="text/javascript">
               var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
            sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
            sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
               if (document.getElementById(sPageName))
            {
            document.getElementById(sPageName) .style.fontWeight = 'Bold';
            document.getElementById(sPageName) .style.fontSize = '14pt';
            }
        </script>
       </tr>
</table></body>
</html>


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

Hi Jacky,

There are a few problems with the page. First of all, you included the JavaScript code twice (or so it looks). Secondly the page has a few markup issues. Press Ctrl+F6 to see what I mean.

This may not fix all of the problems, but who knows.

Why is your main content inside a <span>? That doesn't look like a smart thing to do... Either use a <div> or drop the span altogether.


Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Paranoid Android by Radiohead (Track 2 from the album: OK Computer) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Locked files Raymondg Other Programming Languages 0 May 18th, 2007 03:46 PM
Locked Database help?? invisible bunny king Classic ASP Databases 13 February 16th, 2007 02:50 AM
Password Protection for partailly locked template David Mulvey Word VBA 0 January 27th, 2007 01:05 PM
Locked Cells dkr72 Excel VBA 1 December 13th, 2004 05:04 AM





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