Library item inserts erroneous body tags?!

When inserting a library item that contains xsl: tags, it
adds body tags that aren't in the original library item.
For instance, here's a sample of library item text that
contains xsl: markup:
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<xsl:if test="$language='en'">
<xsl:text>    |    </xsl:text>
<xsl:element name="a">
<xsl:attribute
name="href">SomeFile.html</xsl:attribute>
<xsl:call-template name="getLocaleString">
<xsl:with-param name="key" select="'key'"/>
<xsl:with-param name="lang" select="$locale"/>
</xsl:call-template>
</xsl:element>
</xsl:if>
And here is the result of applying it to an html file:
<!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>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<!-- #BeginLibraryItem "/Library/test-xsl-li.lbi" -->
<body ><body ><xsl:if
test="$language='en'">
<xsl:text>    |    </xsl:text>
<xsl:element name="a">
<xsl:attribute
name="href">SomeFile.html</xsl:attribute>
<xsl:call-template name="getLocaleString">
<xsl:with-param name="key" select="'key'"/>
<xsl:with-param name="lang" select="$locale"/>
</xsl:call-template>
</xsl:element>
</xsl:if><!-- #EndLibraryItem -->
</body>
</html>
Anybody have a clue on what is going on here and how to stop
it?
Nathan

I assume you are using DWCS3? Post the steps to reproduce
this and let's
see what happens....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Nathan Whelchel" <[email protected]> wrote
in message
news:[email protected]...
> When inserting a library item that contains xsl: tags,
it adds body tags
> that
> aren't in the original library item.
>
> For instance, here's a sample of library item text that
contains xsl:
> markup:
>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
> <xsl:if test="$language='en'">
>
<xsl:text>    |    </xsl:text>
> <xsl:element name="a">
> <xsl:attribute
name="href">SomeFile.html</xsl:attribute>
> <xsl:call-template name="getLocaleString">
> <xsl:with-param name="key" select="'key'"/>
> <xsl:with-param name="lang" select="$locale"/>
> </xsl:call-template>
> </xsl:element>
> </xsl:if>
>
> And here is the result of applying it to an html file:
>
> <!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>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <title>Untitled Document</title>
> </head>
> <body>
> <!-- #BeginLibraryItem "/Library/test-xsl-li.lbi"
-->
> <body ><body ><xsl:if
test="$language='en'">
>
<xsl:text>    |    </xsl:text>
> <xsl:element name="a">
> <xsl:attribute
name="href">SomeFile.html</xsl:attribute>
> <xsl:call-template name="getLocaleString">
> <xsl:with-param name="key" select="'key'"/>
> <xsl:with-param name="lang" select="$locale"/>
> </xsl:call-template>
> </xsl:element>
> </xsl:if><!-- #EndLibraryItem -->
> </body>
> </html>
>
>
> Anybody have a clue on what is going on here and how to
stop it?
>
> Nathan
>

Similar Messages

  • Library item inserting - messes up whitespace after update

    hey,
    i've got a site where i'm using a library item. it inserts
    okay, and updates okay on all the pages i've used it on so far.
    What's really annoying though is that it doesn't preserve any
    whitespace around the library item. So if I put a nice couple of
    newlines between the content prior (and after) the library item,
    it'll be stripped after each update. It's intensley irritating.
    Is there anyway to stop this ?
    - Simon

    Yeah - it's a known issue with Library items. Have you
    considered using
    server-side includes instead?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Simon_J_K" <[email protected]> wrote in
    message
    news:e76q05$i2j$[email protected]..
    > hey,
    >
    > i've got a site where i'm using a library item. it
    inserts okay, and
    > updates
    > okay on all the pages i've used it on so far.
    >
    > What's really annoying though is that it doesn't
    preserve any whitespace
    > around the library item. So if I put a nice couple of
    newlines between
    > the
    > content prior (and after) the library item, it'll be
    stripped after each
    > update. It's intensley irritating.
    >
    > Is there anyway to stop this ?
    >
    > - Simon
    >
    >

  • Library item won't place

    I am not being able to place a library item. This should not
    be
    difficult and I think I am doing it correctly, but when I
    place it, all
    I get is a hyperlink to the lbl file.
    I am working on this page:
    http://www.eclipsme.com/gorockledge/annualreport.html
    The sidebar on the right is a library item that in this case
    is a place
    holder from the template that I used to create it. The
    library item is
    in an editable region.
    I have tried a few ways of doing this. I have selected the
    library item
    in design view, dragged the library item from the libray
    folder onto the
    selected area in design view, and I get the link instead.
    I tried the same process with the same results in code view.
    The DW instructions say another way is to choose 'Insert' but
    I do not
    what 'Insert' they mean.
    Am I doing something wrong? What am I missing?
    Thanks for the help.
    Harvey Wasserman

    Select the Library item in the Assets panel. Click where you
    want the
    library item inserted. Click on INSERT on the Assets panel.
    But I am not understanding your post. What happens when you
    do what you
    describe?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "eclipsme" <[email protected]> wrote in message
    news:fa9om4$qr9$[email protected]..
    >I am not being able to place a library item. This should
    not be difficult
    >and I think I am doing it correctly, but when I place it,
    all I get is a
    >hyperlink to the lbl file.
    >
    > I am working on this page:
    >
    http://www.eclipsme.com/gorockledge/annualreport.html
    >
    > The sidebar on the right is a library item that in this
    case is a place
    > holder from the template that I used to create it. The
    library item is in
    > an editable region.
    >
    > I have tried a few ways of doing this. I have selected
    the library item in
    > design view, dragged the library item from the libray
    folder onto the
    > selected area in design view, and I get the link
    instead.
    >
    > I tried the same process with the same results in code
    view.
    >
    > The DW instructions say another way is to choose
    'Insert' but I do not
    > what 'Insert' they mean.
    >
    > Am I doing something wrong? What am I missing?
    >
    > Thanks for the help.
    > Harvey Wasserman

  • Dreamweaver CC Library Item with rollover link produces two body tags. Why?

    I have a library item which is used in two pages and works correctly if it does not contain a rollover arrow with a link taking you to the top of the library item. This produces the following near the top of each of the containing pages:
    </head>
    <body class="indexpage">
    <!-- #BeginLibraryItem "/Library/homemenu.lbi" -->
    <p><a id="top"></a></p>
    Note that the Library Item does not itself have a <body> tag in this original, working version.
    The problem arises when I insert an image rollover with a link up to #top (which is defined as above).
    First, the Library Item has the following near its top:
    <script ...>
    ... various functions to handle the rollover
    </script>
    <body onLoad="MM_preloadImages('../images/uparrowred2.gif')">
    <p><a id="top"></a></p>
    Secondly, the containing pages now have the following near the top:
    </head>
    <body class="indexpage" onLoad="MM_preloadImages('images/uparrowred2.gif)">
    <!--#BeginLibraryItem "Library/homemenu.lbi" -->
    <script ...>
    ... various functions to handle the rollover
    </script>
    <body onLoad="MM_preloadImages('../images/uparrowred2.gif')">
    <p><a id="top"></a></p>
    It can be seen (shown in red) that the Library Item has correctly transferred the onLoad instruction to the containing page's <body> tag and at the same time altered the address of the GIF image from '../images/xxx.gif' to 'images/xxx.gif'. [The root folder with the various html pages has a number of subfolders including 'images' and 'Library']. But now, unfortunately, the containing pages have two <body> tags with the second one pointing to the wrong location for the GIF image.
    Would someone please explain what is going on. I can think of three possibilities: (1) I may be doing something really stupid, (2) there may be a bug in Dreamweaver CC or (3) Library Items may not be allowed to contain anything "complicated" like a rollover. I did see a very old (2007) discussion in this forum suggesting that Library Items were rather limited in what they could contain, but over the intervening six years I would have expected things to have improved.

    Thank you, but in that case I'm not sure I understand the purpose of Library Items. Before I added the Library Item, there was nothing to preload. When I add a rollover to the Library Item, Dreamweaver creates the preloader instruction within the Library Item. Then when I include the Library Item in an html page, Dreamweaver controls where the preloader is put.
    Do I then need to manually edit what Dreamweaver has done? In this instance it would have been almost as quick to have ignored the use of a Library Item and copied and pasted the relevant code into the two pages and manually created the revised <body> tag with a preloader. In my relative inexperience with Dreamweaver, I just thought that using a Library Item in multiple pages would save me some effort when I wanted to change the content of the Library Item. As I said, the Library Item worked OK until I added a rollover within it.

  • Multiple Body tags error when using library items

    Hi all,
    I have a navbar that I created in FW and exported as a DW
    library item. When I drag and drop the library item (navbar) into a
    site page, I get an error every time I try to save that page. The
    error states that the body tag was in the wrong place and has been
    moved to the right place. The problem is never fixed though and I
    keep being spammed by the error dialog.
    In reviewing the code, it appears that the library item has
    its own body and preload. So adding the library item to the page
    causes a duplication of the body tags and preload images code.
    Any thoughts as to how I can fix this or avoid it would be
    greatly appreciated.

    You are right, no <htm> <body> or css styles go
    into a library item.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    - CSS Templates|Tutorials
    http://www.csstemplates.com.au
    http://www.perrelink.com.au
    - Web Dev
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    "Mabou2" <[email protected]> wrote in
    message
    news:e906ap$ed8$[email protected]..
    > Hi Osgood,
    >
    > I have a vague recollection of hearing or reading that
    library items are
    > not
    > supposed to have anything like a <body> tag or
    code that makes them act
    > like an
    > html page, but I can't remember clearly enough to take
    action.
    >
    > I would love to hear from someone who knows the library
    paradigm.
    >

  • Where do I add a label tag in the code of a library item?

    Hello,
    For 508 compliance purposes I need to add a label tag to a list menu that I've created as a library item in Dreamweaver. Can anyone tell me where in the following code should the label code be added and how it should appear. The actual site is http://www.graphicmechanic.com/DEKALBCOUNTY/index.html. My 508 checker is telling me that I need to add a label to this form.
    The code is:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="../cssfiles/lbistyles.css" rel="stylesheet" type="text/css"/>
    <form action="" method="post" name="form1" class="style52" id="form1">
                        <span class="style26"><strong>I WANT TO:</strong><br />
                        <img src="../images/5x5.gif" alt="layout graphic" width="5" height="5" /><br />
                        </span><span class="style26">
                        <select name="iwantto" class="style55" onchange="MM_jumpMenu('window.open()',this,0)">
                          <option value="http://web.co.dekalb.ga.us/voter/#">REGISTER TO VOTE</option>
                          <option value="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411">PAY MY WATER BILL</option>
                          <option value="../humanserv/hs-osa-facilities.html">FIND A SENIOR CENTER</option>
                          <option value="../humanserv/hs-lou-walker.html">GET INFO ABOUT LOU WALKER CENTER</option>
                          <option value="http://www.dekalbstatecourt.net/">FILE A RESTRAINING ORDER</option>
                          <option value="http://www.dekalbcountyanimalservices.com/">REPORT A LOOSE DOG</option>
                          <option value="http://web.co.dekalb.ga.us/courts/recorders/payment.asp">GET TRAFFIC CITATION INFO</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/pistol.htm">APPLY FOR A PISTOL LICENSE</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/marriage.htm">GET A MARRIAGE LICENSE</option>
                          <option value="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service">FILE FOR A DIVORCE</option>
                          <option value="http://www.co.dekalb.ga.us/superior/index.htm">GET INFORMATION ABOUT JURY DUTY</option>
                          <option value="http://web.co.dekalb.ga.us/taxcommissioner/search.asp">PAY MY TAXES</option>
                        </select>
      </span> </label>
    </form>
    Any assistance would be appreciated.

    Okay i am having trouble figuring out exactly where I should insert the label code and how it should look in this code. I took a look at the labels link you sent over. It is helpful, but because this drop down list has no tables and the example does, I'm a bit confuse.
    Any chance you could show me an example of how a lable should look in in just one of the form items below? Then I could mimic it with the other items (with respect to each different title).
    Here is the code:
    <form action="" method="post" name="form1" class="style52" id="form1">
                        <span class="style26"><strong>I WANT TO:</strong><br />
                        <img src="../images/5x5.gif" alt="layout graphic" width="5" height="5" /><br />
                        </span><span class="style26">
                        <select name="iwantto" class="style55" onchange="MM_jumpMenu('window.open()',this,0)">
                          <option value="http://web.co.dekalb.ga.us/voter/#">REGISTER TO VOTE</option>
                          <option value="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411">PAY MY WATER BILL</option>
                          <option value="../humanserv/hs-osa-facilities.html">FIND A SENIOR CENTER</option>
                          <option value="../humanserv/hs-lou-walker.html">GET INFO ABOUT LOU WALKER CENTER</option>
                          <option value="http://www.dekalbstatecourt.net/">FILE A RESTRAINING ORDER</option>
                          <option value="http://www.dekalbcountyanimalservices.com/">REPORT A LOOSE DOG</option>
                          <option value="http://web.co.dekalb.ga.us/courts/recorders/payment.asp">GET TRAFFIC CITATION INFO</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/pistol.htm">APPLY FOR A PISTOL LICENSE</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/marriage.htm">GET A MARRIAGE LICENSE</option>
                          <option value="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service">FILE FOR A DIVORCE</option>
                          <option value="http://www.co.dekalb.ga.us/superior/index.htm">GET INFORMATION ABOUT JURY DUTY</option>
                          <option value="http://web.co.dekalb.ga.us/taxcommissioner/search.asp">PAY MY TAXES</option>
                        </select>
      </span>
    </form>

  • I inserted library items then stuff dissapeared

    Hi
    ...sorry folks Im a newbie,
    I use mx2004 I am helping a charity re-do their website and keep the current one up to date.
    I started to insert library items into the existing site pages ( which are all table based ) some of the pages seem to be fine
    but other ones are showing a blank page when i preview them .
    Firefox is the only browser that it seems to be ok in, IE Opera Safari and chrome are showing nothing
    except IE which shows thr background colour
    Ive got a gut feeling Ive inserted the LBI in the wrong place or something
    http://www.inclusiongroup.org.uk/inclusion2/public/pages/pcp.htm
    here is the link
    thank you

    thanks very much ive spent ages trying to sort that
    as usual something daft
    thanks again also for the speedy reply

  • Shortcut for inserting a library item?

    Dear Dreamweaver people,
    i am busy inserting a library item (some html that creates a
    form) in about 400 pages. Automating this task is probably to
    complicated for me, but, hitting this insert button is tyresome as
    well. Is there any shortcut possible for this button? I cannot find
    a possibility in the editing shortcuts panel.
    I am using dreamweaver CS2
    Thanks for any help

    I wouldn't recommend this. You would be MUCH better off using
    server-side
    includes instead of a Library item (I can't find a compelling
    reason to ever
    use Library items, honestly).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jojo1971" <[email protected]> wrote in
    message
    news:glq81q$cou$[email protected]..
    > Dear Dreamweaver people,
    > i am busy inserting a library item (some html that
    creates a form) in
    > about
    > 400 pages. Automating this task is probably to
    complicated for me, but,
    > hitting
    > this insert button is tyresome as well. Is there any
    shortcut possible for
    > this
    > button? I cannot find a possibility in the editing
    shortcuts panel.
    > I am using dreamweaver CS2
    >
    > Thanks for any help
    >

  • Inserting a library item on a page using Javascript

    Hello,
    I have a library with 6 different layouts in it.  I need to be able to place these on the page from an external program.  I have all my code in place to send commands to Indesign, but I'm not sure how to reference the Library items.  Can I reference them by name?  As well, I would like my external custom app to be able to list all the library items so that the user can select which one to insert.  I'm at a total loss as to how to do this.
    I need help with these two things:
    1) obtain an array or list of all the items in a particular Library, which is already open.
    2) Once I have the list of library items I need to be able to place one or multiple on the page keeping track them so I can place images and text in the appropriate boxes.
    Any help with this would be greatly appreciated.  I'm using Indesign CS3 and my external app is coded in Objective-C on a Mac.  I prefer Javascript as I'm very familiar with it as opposed to Applescript.
    Thanks for any help provided.
    Dave Williams

    Assuming you have access to the equivalent of doScript, when that is used to run a JavaScript, the final value of the script is returned (coerced to a string? I'm not sure).
    Of course, you can always pass information from one place to another by using keyed labels. In my work (I spend most of my time writing scripts for Typefi Publish wherein the same script might get executed at the end of every page as the Typefi Engine composes the document), I often will add a keyed label to the document that passes information from one run of the script to the next. Here's an example (that includes reading the script itself to extract version information from the second line) -- while slightly inefficient, it has the benefit of putting the version info in a defined, easy to find place:
        function registerFirstCall(aDoc, interactive) {
            var scriptFile = getScriptPath();
            var scriptName = scriptFile.name;
            if (aDoc.extractLabel(scriptName) == "" || interactive) {
                scriptFile.open("r");
                var firstLine = scriptFile.readln();
                var secondLine = scriptFile.readln();
                scriptFile.close();
                if (secondLine.indexOf("//VERSION: ") == 0) {
                    var msg = secondLine.split("//VERSION: ")[1].split("\n")[0];
                } else {
                    var msg = "unknown";
                aDoc.insertLabel(scriptName, "Registered");
                TPSlog(scriptName + " version: " + msg, interactive);
        }// end registerFirstCall
    Ah, I see it uses the getScriptPath function, so for completeness, here it is:
        function getScriptPath() {
            // This function returns the path to the active script, even when running ESTK
            try {
                return app.activeScript;
            } catch(e) {
                return File(e.fileName);
            } // end try
        } // end getScriptPath
    The TPSlog function either pops up an alert (when working interactively -- usually means during debugging) or adds a log message for the session (that also is managed with a document keyed label). The keyed label in this case is performing the trivial task of recording that the script has previously been run against this document, in which case, it doesn't need to log a message identifying its version info.
    Hope this helps.
    Dave

  • Inserting library item modifies code

    Hello,
    I have some library items that are table rows. When I insert
    the library item into my page, it actually rearranges the code on
    the page for that table. Any way to have DW stop doing this?

    can't make just a row a Library item- it has to have
    <table> and </table>
    rethink this, or go with SSI or something?
    > I have some library items that are table rows. When I
    insert the library item
    > into my page, it actually rearranges the code on the
    page for that table. Any
    > way to have DW stop doing this?

  • How to use a Spry Menu as a Library item?

    Okay, this is my second post; but, with a different title.
    I made a Spry menu for my Home Page. I saved it and a logo
    together as a library item and placed the library item on a second
    page. The links in the menu work when there is no style sheet
    attached for the Spry meny and the menu appears just as text; but,
    as soon as the .css style sheet for the menu is attached to the
    second page, the menu appears correct except the drop down menus do
    not work. I tried adding a link to the Spry Java Script file as it
    is on the home page; still no luck.
    I tried the same with a test file, which I have since
    removed, stored at the same folder as the home page; same problem.
    How are we suposed to make a workable library item with a
    Spry Menu? Surely this is possible, no?
    Here are the two pages I am referring to:
    Good Page:
    http://iculver.com/
    Bad Page:
    http://iculver.com/pages/AboutUs/Personal_info.html

    Apologies - my mistake. You are correct, and my instructions
    were
    incomplete. That other bit is required too.
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    The comments 'hide' the scripting from validators and older
    browsers, but
    it's still recognized as javascript, since the comments occur
    INSIDE a
    <script> tag.
    > these Spry Menus in Libraries easier to use...)
    It's not so hard once you get all the pieces together.
    1. Create the library item as described.
    2. Make sure that each page that is to carry this library
    item has the
    required links in the head (to the CSS and the js files), AND
    in the body.
    Why not use a template instead? That way, all of these links
    are managed
    for you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JustBob" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hummm...
    >
    > Now, don't yell at me, okay? I'm a goLive switcher and
    really a graphic
    > designer, not a coder...
    >
    > So, It seems from the above message that I am to
    establish the links to
    > the
    > script and the css file before inserting the library
    item. But, either
    > way,
    > that didn;t do the trick for me. I did find a bit of
    code in one of the
    > pages
    > that seems to be required.
    >
    > It seems I also need to insert this just before the
    close of the body tag:
    >
    > <script type="text/javascript">
    > <!--
    > var MenuBar1 = new Spry.Widget.MenuBar("MenuBar",
    > {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    > imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    > //-->
    > </script>
    >
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    >
    > I'm sorry I'm such a dope. I probably did something
    funny when I was
    > styling
    > the menu. (I do hope Adobe can accommodate dopes lime
    me, though, and make
    > these Spry Menus in Libraries easier to use...)
    >
    > Thanks for all of your help! Really!
    >

  • Error message with library item in template

    I'm not sure if this is a PM issue or a DWCS3 issue. The only
    way to find out is to ask.
    I have gone through the process of creating a a library item
    of a
    PopMagic menu according the the video provided by P7. Works
    well.
    Then I added the library item to an existing DWCS3 template
    and saved
    it. When I attempt to create "new from template" page from
    the template
    menu, I get this error message
    http://www.jdcdemo.com/blf/error.html
    If I do the same with a template without the menu, the
    error message goes away.
    If I create a page with from a template where I've left an
    editable
    region for the menu and then insert the menu and save the
    page, I also
    get the error message, but the page seems to work ok.
    Since I can't create a new page with the template, I opened
    it and saved it as a page:
    http://www.jdcdemo.com/baim/BLF8/error-message.html
    What is going on here and is there a fix?
    Thanks,
    Joe

    Look at your code. Count <body> tags. How many do you
    get? Yeah - that's
    wrong. You didn't follow the video....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "camelbreath" <[email protected]> wrote in
    message
    news:g680gh$3c$[email protected]..
    > I'm not sure if this is a PM issue or a DWCS3 issue. The
    only way to find
    > out
    > is to ask.
    > I have gone through the process of creating a a library
    item of a
    > PopMagic menu according the the video provided by P7.
    Works well.
    > Then I added the library item to an existing DWCS3
    template and saved
    > it. When I attempt to create "new from template" page
    from the template
    > menu, I get this error message
    >
    >
    http://www.jdcdemo.com/blf/error.html
    >
    > If I do the same with a template without the menu, the
    > error message goes away.
    >
    > If I create a page with from a template where I've left
    an editable
    > region for the menu and then insert the menu and save
    the page, I also
    > get the error message, but the page seems to work ok.
    >
    > Since I can't create a new page with the template, I
    opened it and saved
    > it as
    > a page:
    >
    >
    http://www.jdcdemo.com/baim/BLF8/error-message.html
    >
    > What is going on here and is there a fix?
    >
    > Thanks,
    > Joe
    >

  • Changed a Library Item and now my CSS no longer works!

    I am so frustrated I am almost in tears.  I created a menu in a roughly 7 page website and used DW Library menu to put it on additional pages.  Everything was working fine and then I changed a path to one of my links and hit the button to update the rest of the pages and that's when it happend.  My CSS was gone, no longer applying to any of my menus.  I created an additional CSS sheet just to style my menu and it worked fine up until I changed a frickin link to one my menu icons.  Now my CSS sheets won't apply at all.  I have no idea what has happened and why me changing the path of a link would void out my styles.  Has anyone else had this happen?  Suggestions are greatly appreciated.  Thanks!

    I don't want to rub salt into your wounds here, but why are you using Library Items for menus?   That's what DW Templates are for. 
    http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
    Or better still, Server-Side Includes. 
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    Shortcomings of Library Items: they cannot be inserted into the <head> tags of documents. Nor can they contain code that belongs in the <head> tags.  Library items can only be inserted into the <body> tags. 
    My advice is to run your code through the online validation tools below and fix reported errors. 
    HTML - http://validator.w3.org/
    CSS - http://jigsaw.w3.org/css-validator/
    If you can't solve the problem yourself, upload page(s) and supporting files to a public web space you control and post the URL here.
    Nancy O.

  • Spry widget menu bar as a library item - problems

    I created a spry vertical menu bar and made it a library item.  The original works great, however when I insert the library item into its own div tag on another page, the submenus will not pop out, either in DW or the browser view. The div tag is the correct size and I made the z index high enough. Here is the code of the page that works properly:
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>DM Consulting Dry Dock Training</title>
    <link href="css styles/drydock2.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-image: url(images/vertborderblue2.jpg);
    background-repeat: repeat-x;
    -->
    </style>
    </head>
    <body>
    <div id="container">
      <div id="header"><img src="images/header_title_white.png" width="645" height="116" alt="header" /></div>
      <div id="logo"><img src="images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
      <div id="mainContent">
        <div id="content">
          <p><span class="bolder1">D</span><span class="bolder1">M Consulting </span><span class="lineheight">provides Dry Dock Training, Dry Dock Conferences,<br />
            Dry Dock Software and Dry Dock Consulting      for:</span></p>
          <ul>
            <li class="lineheight"> Dock Masters</li>
            <li class="lineheight">Docking Officers</li>
            <li class="lineheight">Dry Dock Crews</li>
            <li class="lineheight">Engineers</li>
            <li class="lineheight">Naval Architects </li>
            <li class="lineheight"> Port Engineers</li>
            <li class="lineheight">Program/Project Managers</li>
            <li class="lineheight">Marine Surveyors</li>
            <li class="lineheight">Owners' Representatives</li>
            <li class="lineheight">On-site Representatives</li>
            <li class="lineheight">Consultants</li>
            <li class="lineheight">Others Involved or Interested in
              the <br />
              Dry Docking of Ships and Vessels</li>
          </ul>
          <div id="testimonials">&quot;The course was excellent, straight forward and comprehensive. Instruction was great, expected <br />
            &quot;death-by-power point&quot; but was pleasantly surprised.
            I am better acquainted w/dry dock basics after the
            course and can trust the accuracy of the training
            based on the extensive experience of the instructors. Thank you!
            Very informative, very thorough.&quot;
              - David, Australia<br />
          </div>
          <div id="movie">
            <object width="560" height="340">
              <param name="movie" value="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" />
              <param name="allowFullScreen" value="true" />
              <param name="allowscriptaccess" value="always" />
              <embed src="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
            </object>
          </div>
          <div id="moreTestimonials">&raquo;&raquo;&raquo; click here for more testimonials &laquo;&laquo;&laquo;</div>
          <div id="footer"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->&copy; COPYRIGHT 2010 DM CONSULTING<!-- #EndLibraryItem --></div>
        </div>
        <div id="navbar">
          <!-- #BeginLibraryItem "/Library/nav.lbi" -->
          <ul id="MenuBar1" class="MenuBarVertical">
            <li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
            <li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
              <ul>
                <li><a href="#outline.html" title="Outline of our Training Course">General Information &amp; Outline</a></li>
                <li><a href="#train_sched.html" title="Locations &amp; dates of our Training Courses">Training Course Schedule</a></li>
                <li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
                <li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
              </ul>
            </li>
            <li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
            <li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
            <li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
            <li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
            <li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
            <li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
          </ul>
        <!-- #EndLibraryItem --></div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    Here is the code for the page that DOESN'T work:
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Training Course Schedule</title>
    <link href="../css styles/drydock2.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-image: url(images/vertborderblue2.jpg);
    background-repeat: repeat-x;
    -->
    </style>
    </head>
    <body>
    <div id="container">
      <div id="header"><img src="../images/header_title_white.png" width="645" height="116" alt="header" /></div>
      <div id="logo"><img src="../images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
      <div id="mainContent">
        <div id="content">
          <h2><span class="bolder1">Training Course Schedule</span><span class="bolder1"></span></h2>
          <p><br />
          Class sizes are limited so please register early. Early registration and payment provides the best value.<br />
      <br />
          </p>
    <p class="underline"><strong>4-7 October 2010  •   Honolulu, HI, USA </strong></p>
          <div id="schedulephoto"><img src="../images/conference-rm_train_s.jpg" width="250" height="123" alt="image" /></div>
          <p>The training will be held in Pearl Harbor, Hawaii, USA. <br />
            <a href="Registration_Hawaii.html">Registration form</a><br />
            <br />
          </p>
          <p class="underline"><strong>15-18 November 2010   •   Virginia Beach VA, USA</strong></p>
          <p>The training will be held in Virginia Beach, Virginia, USA. <br />
            <a href="Registration_Virginia.html">Registration form</a><br />
            <br />
          </p>
          <p class="underline"><strong>11-14 May 2011  •   London, United Kingdom</strong></p>
            The training is held in conjunction with the Royal Institution of Naval Architects (RINA). Registration and payment will be made directly to RINA. <br />
            Visit RINA's <a href="http://www.RINA.org.uk" target="_blank">website</a> and go to &quot;Events&quot; or call +44 (0) 20 7201 2401.<br />
      <br />
          </p>
          <p><strong>Your Location</strong></p>
          <p>Training tailored to your organization's needs, including training at your facilities, <br />
            is also available.    </p>
        </div>
        <div id="nav3"><!-- #BeginLibraryItem "/Library/nav.lbi" -->
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
            <ul>
              <li><a href="#outline.html" title="Outline of our Training Course">General Information &amp; Outline</a></li>
              <li><a href="#train_sched.html" title="Locations &amp; dates of our Training Courses">Training Course Schedule</a></li>
              <li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
              <li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
            </ul>
          </li>
          <li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
          <li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
          <li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
          <li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
          <li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
          <li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
        </ul>
        <!-- #EndLibraryItem --></div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    I understand about having the script and  link element that connect my page to the dependent files in the SpryAssets folder in the header and the JavaScript function cal at the bottom on each page. I don't know what else to do - HELP!

    Welcome to the Dreamweaver world!
    Well, having your index.html page at the top/root level is important, as that is the default page by which people will enter your site.
    Having other pages in folders is fine...I do it all the time in order to keep departments or categories of information sorted.
    One characteristic of having pages in folders is that the hierarchy of files in folders (perforce) puts them at different depths in the site.
    This is not inherently a bad thing! Just one to remain aware of. When you look at your site files in the Files Panel, you can see a graphical representation of those different levels.
    But the nature of a library item is that it is identical in all its instances, which is what makes it useful...change it in the library, and it changes site-wide. The down-side of that identity is that when your files are at different depths in the hierarchy, their links back to, say, home (or any other same file) will change depending on the depth. You can see this if you make a link on a page, then drag the page (in the Files Panel) to a different depth...say, into a folder when it started at root level, or vice versa. Check the link, and you will see that it automatically adapted to the new path.
    Library items do not do that; they do not change, so some of your links will be 'wrong' when you refer to pages that have different paths than the ones originally set up in the library item... because of the change in hierarchy.
    All this is, of course, reliant on your creation of the site in the first place, as defining the root folder's location on your computer gives Dreamweaver a starting point for handling (juggling?) all the location-information for your site's files.
    Beth

  • Changing behaviors on library items

    I currently have a header as a library item. The buttons all
    have pop-up menus and I am trying to edit them. I used the help
    through Dreamweaver and it said to open a page that contains the
    library item and detach it - make the changes then re-save the
    library sections. I tried that and when I click on the "Shoe Pop-up
    Menu" on the behavior tab I get the following error message:
    While executing inspectBehavior in Show Pop-up Menu.htm, the
    followinf JavaScript error(s) occurred:
    At line 492 of file "C:\Program Files\Macromedia\Dreamweaver
    8\Configuration\Behaviors\Actions\Show Pop-up Menu.js"; TypeError :
    T.update is not a function
    Can anyone help with this? What does it mean?

    A well-formed library item cannot have a behavior *in* it. It
    can reference
    a behavior with a call to it, e.g.,
    <a onClick="MM_swapImage....
    but it cannot actually CONTAIN a behavior. Why? Because that
    would mean
    that it would have to have <html>, <head>, and
    <body> tags and Library items
    just cannot contain those. Why? Because since a Library item
    is inserted
    into another page, if it contained those tags, they would
    then be duplicated
    on the other page.
    So - your Library item is not well formed, i.e., it's broken.
    > buttons all have pop-up menus
    > and I am trying to edit them.
    This is the worst possible situation. You have a broken
    Library item, and it
    contains an even more broken menu system. Is it too late to
    reconsider
    here?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "TiffanyAdTrends" <[email protected]> wrote
    in message
    news:ed4inu$am9$[email protected]..
    >I currently have a header as a library item. The buttons
    all have pop-up
    >menus
    > and I am trying to edit them. I used the help through
    Dreamweaver and it
    > said
    > to open a page that contains the library item and detach
    it - make the
    > changes
    > then re-save the library sections. I tried that and when
    I click on the
    > "Shoe
    > Pop-up Menu" on the behavior tab I get the following
    error message:
    >
    > While executing inspectBehavior in Show Pop-up Menu.htm,
    the followinf
    > JavaScript error(s) occurred:
    >
    > At line 492 of file "C:\Program
    Files\Macromedia\Dreamweaver
    > 8\Configuration\Behaviors\Actions\Show Pop-up Menu.js";
    TypeError :
    > T.update is
    > not a function
    >
    > Can anyone help with this? What does it mean?
    >

Maybe you are looking for

  • Applet does not work after conversion

    Hi, A have an html page on with a use an applet. The applet is downloaded in two cab files for the internet explorer. The applet and the download works fine without the java plugin. When I convert this page to using the html converter the applet does

  • Problems with dates in Excel

    Not sure where to post this stupid but annoying problem, but here goes. I have to work on Excel files originating from a Windows machine which uses XP & Office 2003. I'm using Office 2008. I need to copy & paste sheets containing a column of dates am

  • Mandatory Field in Journals

    Hi, I would like to make Trading Partner as a Mandatory field for a particular GL account when entering FB50. I have checked OBC4 but could not find the Field so that i can mark as Mandatory. Can anyone suggest. Thanks Imran

  • Show tree folder structure of file system directory

    Hi, I am new to flex. I am using AS3 I am creating web application. I want to show the tree directory structure of the file system similar to what we seen in applet. Is there any component in flex, which will do that? Can it be possible in web applic

  • Combine sequences for export?

    If I have my movie broken up into separate sequences - tabs on the timeline - how do I bring them altogether to export to dvd? Do I have to copy and paste them into one complete sequence? That doesn't seem right. I hope using shorter sequences will a