1 Reply Latest reply on Aug 30, 2006 11:10 AM by Newsgroup_User

    changing behaviors on library items

    TiffanyAdTrends
      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?
        • 1. Re: changing behaviors on library items
          Level 7
          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" <webforumsuser@macromedia.com> wrote in message
          news:ed4inu$am9$1@forums.macromedia.com...
          >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?
          >