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 July 12th, 2006, 06:43 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nested Editable Regions - Dreamweaver

Dear Imar & All,

Thank you for your time. Do you know a solution to this problem? - It's got to be simple.

I inserted a navigation bar (pre-saved as a library item in Dreamweaver), into an editable region in a Dreamweaver template. When I try then to save the template, I get an error message saying:

There is an error at line 93, column 387 (absolute position 4783) of xxxxx: Nested editable regions.


So far as I can see from looking at the code, there are not!

If I try to insert the library item (navigation bar) into an editable region in a layer or directly into that layer, the error message keeps coming up. I have tried 'clean up html' command, but this does not work.

The code is below. Please could you tell me (if you have a minute) if you can see anything wrong?

With kind thanks,

Francois Evans.

*********

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

<title>LaMP TPL</title>

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

<style type="text/css">
<!--
body {
    background-image: url();
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--




function MM_reloadPage(init) { //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body onLoad="MM_preloadImages('../headers/home_btn_ro.png','../headers/credits_btn_ro.png','../headers/reviews_btn_ro.png','../headers/scoring_btn_ro.png','../headers/LaMP_shop_btn_ro.png','../headers/francois_btn_ro.png','../headers/christophe_btn_ro.png','../headers/influences_btn_ro.png','../headers/news_btn_ro.png','../headers/links_btn_ro.png','../headers/contact_btn_ro.png')">

<div id="BKG" style="position:absolute; left:70px; top:10px; width:573px; height:675px; z-index:1; overflow: visible;"><img src="../headers/LaMP_site_BKG.jpg" width="688" height="782"></div>
<div id="Footer" style="position:absolute; left:191px; top:728px; width:540px; height:30px; z-index:2; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF;">
  <div align="center">&copy; Copyright 2006 Laboratoire Musical Phonoscopique Limited. All rights reserved.<br>
    Company number 3758069 Registered in England. </div>
</div>
<div id="Layer1" style="position:absolute; left:10px; top:180px; width:154px; height:376px; z-index:3; overflow: visible;">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
//-->
</script>
<title>Navigation Bar</title>
<body onLoad="MM_preloadImages('../headers/credits_btn_ro.png','../headers/reviews_btn_ro.png','../headers/home_btn_ro.png','../headers/scoring_btn_ro.png','../headers/LaMP_shop_btn_ro.png','../headers/francois_btn_ro.png','../headers/christophe_btn_ro.png','../headers/influences_btn_ro.png','../headers/news_btn_ro.png','../headers/links_btn_ro.png','../headers/contact_btn_ro.png')">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="../index.htm" target="_top" onClick="MM_nbGroup('down','group1','Home','../headers/home_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Home','../headers/home_btn_ro.png','../headers/home_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img src="../headers/home_btn.png" alt="Home" name="Home" width="150" height="32" border="0" onload=""></a></td>
  </tr>
  <tr>
    <td><a href="../credits.htm" target="_top" onClick="MM_nbGroup('down','group1','Credits','../headers/credits_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Credits','../headers/credits_btn_ro.png','../headers/credits_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img src="../headers/credits_btn.png" alt="Credits" name="Credits" width="150" height="32" border="0" onload=""></a></td>
  </tr>
  <tr>
    <td><a href="../reviews.htm" target="_top" onClick="MM_nbGroup('down','group1','Reviews','../headers/reviews_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Reviews','../headers/reviews_btn_ro.png','../headers/reviews_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img src="../headers/reviews_btn.png" alt="Reviews" name="Reviews" width="150" height="32" border="0" onload=""></a></td>
  </tr>
  <tr>
    <td><a href="../scoring.htm" target="_top" onClick="MM_nbGroup('down','group1','Scoring','../headers/scoring_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Scoring','../headers/scoring_btn_ro.png','../headers/scoring_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="Scoring" src="../headers/scoring_btn.png" border="0" alt="Scoring" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="../lamp_shop.htm" target="_top" onClick="MM_nbGroup('down','group1','LaMP_Shop','. ./headers/LaMP_shop_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','LaMP_Shop','../headers/LaMP_shop_btn_ro.png','../headers/LaMP_shop_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="LaMP_Shop" src="../headers/LaMP_shop_btn.png" border="0" alt="LaMP_Shop" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="../francois_evans.htm" target="_top" onClick="MM_nbGroup('down','group1','Francois_Evan s','../headers/francois_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Francois_Evans','. ./headers/francois_btn_ro.png','../headers/francois_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="Francois_Evans" src="../headers/francois_btn.png" border="0" alt="Francois_Evans" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="../christophe_evans.htm" target="_top" onClick="MM_nbGroup('down','group1','Christophe_Ev ans','../headers/christophe_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Christophe_Evans', '../headers/christophe_btn_ro.png','../headers/christophe_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="Christophe_Evans" src="../headers/christophe_btn.png" border="0" alt="Christophe_Evans" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="../influences.htm" target="_top" onClick="MM_nbGroup('down','group1','Influences',' ../headers/influences_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Influences','../headers/influences_btn_ro.png','../headers/influences_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="Influences" src="../headers/influences_btn.png" border="0" alt="Influences" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="../news.htm" target="_top" onClick="MM_nbGroup('down','group1','News','../headers/news_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','News','../headers/news_btn_ro.png','../headers/news_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="News" src="../headers/news_btn.png" border="0" alt="News" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="../links.htm" target="_top" onClick="MM_nbGroup('down','group1','Links','../headers/links_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Links','../headers/links_btn_ro.png','../headers/links_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="Links" src="../headers/links_btn.png" border="0" alt="Links" onLoad=""></a></td>
  </tr>
  <tr>
    <td><a href="#109;#97;#105;#108;#116;#111;#58;#105;#110;# 102;#111;#64;#108;#97;#109;#112;#109;#117;#115;#10 5;#99;#46;#99;#111;#46;#117;#107;#63;#115;#117;#98 ;#106;#101;#99;#116;#61;#70;#105;#108;#109;#32;#83 ;#99;#111;#114;#101;" target="_top" onClick="MM_nbGroup('down','group1','Contact','../headers/contact_btn_ro.png',1)" onMouseOver="MM_nbGroup('over','Contact','../headers/contact_btn_ro.png','../headers/contact_btn_ro.png',1)" onMouseOut="MM_nbGroup('out')"><img name="Contact" src="../headers/contact_btn.png" border="0" alt="Contact" onLoad=""></a></td>
  </tr>
</table>
</div>
<div id="Layer2" style="position:absolute; left:184px; top:78px; width:540px; height:630px; z-index:4; overflow: auto;">Page Content</div>
<div id="Logo" style="position:absolute; left:50px; top:19px; width:75px; height:90px; z-index:5"><img src="../headers/lamp_logo.gif" width="74" height="97"></div>
</body>
</html>


 
Old July 14th, 2006, 09:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Have we met before? Why are you sending the same question to my personal account while there's such a great place like the Wrox P2P forum? I just don't understand that....

Anyway, I can't reproduce the problem. If I were you, I start with a blank new template and add the navigation bar and nothing else. That should work. From there you can add new stuff and see where it breaks.

HtH,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut key to Expand all regions in C# willfindavid C# 2005 1 July 10th, 2008 03:23 AM
Editable regions in templates craigrobertson Dreamweaver (all versions) 2 April 13th, 2005 04:23 AM
Regions in the editor bmains VS.NET 2002/2003 1 November 5th, 2003 03:48 PM





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