10 Replies Latest reply on Jul 7, 2006 6:05 AM by Newsgroup_User

    Best way to update div content

    vanq
      I am trying to create a favorite links page. Basically there are two divs, "categories" and "links." What I would like to do is have a bunch of links that are seperated into several categories. In the "categories" div would be the category names which would be links that would load the text links for that category into the "links" div. I would like to avoid the obvious solution of creating a seperate page for each category which would require opening a new page in order to view a different set of links. I don't know if there is a way to, instead of having just one "links" div, create a seperate div for each category and then switch the div's visibility when a specific category link is selected. Or could the content be switched out with some PHP or Javascript code if the new text and link locations were contained in a database? Any advice would be appreciated. Thanks.
        • 2. Re: Best way to update div content
          Level 7
          vanq wrote:
          > I am trying to create a favorite links page. Basically there are two
          > divs, "categories" and "links." What I would like to do is have a
          > bunch of links that are seperated into several categories. In the
          > "categories" div would be the category names which would be links
          > that would load the text links for that category into the "links"
          > div. I would like to avoid the obvious solution of creating a
          > seperate page for each category which would require opening a new
          > page in order to view a different set of links. I don't know if there
          > is a way to, instead of having just one "links" div, create a
          > seperate div for each category and then switch the div's visibility
          > when a specific category link is selected. Or could the content be
          > switched out with some PHP or Javascript code if the new text and
          > link locations were contained in a database? Any advice would be
          > appreciated. Thanks.

          Does something like this help?
          http://www.tjkdesign.com/articles/toggle_elements.asp

          --
          Thierry
          Articles and Tutorials: http://www.TJKDesign.com/go/?0
          The perfect FAQ page: http://www.TJKDesign.com/go/?9
          CSS-P Templates: http://www.TJKDesign.com/go/?1
          CSS Tab Menu: http://www.TJKDesign.com/go/?3


          • 3. Re: Best way to update div content
            Level 7

            "vanq" <webforumsuser@macromedia.com> wrote in message
            news:e8kge5$7so$1@forums.macromedia.com...
            >I am trying to create a favorite links page. Basically there are two
            >divs,
            > "categories" and "links." What I would like to do is have a bunch of
            > links that
            > are seperated into several categories. In the "categories" div would
            > be the
            > category names which would be links that would load the text links for
            > that
            > category into the "links" div. I would like to avoid the obvious
            > solution of
            > creating a seperate page for each category which would require opening
            > a new
            > page in order to view a different set of links. I don't know if there
            > is a way
            > to, instead of having just one "links" div, create a seperate div for
            > each
            > category and then switch the div's visibility when a specific category
            > link is
            > selected. Or could the content be switched out with some PHP or
            > Javascript code
            > if the new text and link locations were contained in a database? Any
            > advice
            > would be appreciated. Thanks.

            The mosr automated solution would be our SwapClass extension (free).
            Info: http://www.projectseven.com/extensions/info/swapclass/
            Additional Example: http://www.projectseven.com/csslab/swapclass/faq/

            PVII Outline script (free). Not an extension, but very efficient:
            http://www.projectseven.com/csslab/swapclass/outline/

            PVII Tab Panel Magic. A different approach. Totally automated, but not
            free:
            http://www.projectseven.com/products/tools/tabpanel/demo/index.htm


            --
            Al Sparber - PVII
            http://www.projectseven.com
            Popup Menus | Image Galleries | CSS Tutorials & Templates
            ------------------------------------------------------------------------------------
            Newsgroup: news://forums.projectseven.com/pviiwebdev/
            CSS Newsgroup: news://forums.projectseven.com/css/
            DW Newsgroup: news://forums.projectseven.com/dreamweaver/






            • 4. Re: Best way to update div content
              Level 7
              Al,

              With your Tab Panel Magic, what would happen if there was active content.
              Let's say there was a Flash file in a tab. If one switch to another tab
              would the Flash movie continue to play?

              I've been trying to make something like this work with show/hide Div's.
              Firefox will stop the active content when the Div is hidden, but IE will
              not.

              http://www.buddhapada.com/tests/by-id.htm



              • 5. Re: Best way to update div content
                Level 7
                "Alan Smithee Jr." <A_Smithee_J@no.email> wrote in message
                news:e8ko8p$g6e$1@forums.macromedia.com...
                > Al,
                >
                > With your Tab Panel Magic, what would happen if there was active
                > content. Let's say there was a Flash file in a tab. If one switch to
                > another tab would the Flash movie continue to play?

                Yes. That's because IE uses the object tag while Firefox and Opera use
                the embed tag.


                --
                Al Sparber - PVII
                http://www.projectseven.com
                Popup Menus | Image Galleries | CSS Tutorials & Templates
                ------------------------------------------------------------------------------------
                Newsgroup: news://forums.projectseven.com/pviiwebdev/
                CSS Newsgroup: news://forums.projectseven.com/css/
                DW Newsgroup: news://forums.projectseven.com/dreamweaver/






                • 6. Re: Best way to update div content
                  Level 7
                  Are you saying yes this will happen regardless of the method? That your Tab
                  Panel Magic will not stop the active content either?
                  Are you saying the nature of the beast will prevent any method from stoping
                  the active content in IE?


                  • 7. Re: Best way to update div content
                    Level 7
                    "Alan Smithee Jr." <A_Smithee_J@no.email> wrote in message
                    news:e8kqq6$it9$1@forums.macromedia.com...
                    > Are you saying yes this will happen regardless of the method? That
                    > your Tab Panel Magic will not stop the active content either?
                    > Are you saying the nature of the beast will prevent any method from
                    > stoping the active content in IE?

                    The nature of the object tag will prevent active content from stopping
                    in IE by merely hiding it. In Tab Panel Magic, if you have a flash movie
                    in one of the tab panels and you allow it to begin, switching tabs will
                    not stop it from playing. Sort of like background music that can't be
                    shut off :-)

                    • 8. Re: Best way to update div content
                      vanq Level 1
                      Thanks everyone for all the suggestions. I'll have to look them over and see which option will work best in my situation.

                      Al, as a side note I just wanted to let you know that I had purchased the PVII tree menu magic package and it works great. The code is well organized and straight forward enough that even as a beginner I was able to modify it to pull in all of it's text dynamically using php/MySQL.
                      • 9. Re: Best way to update div content
                        Level 7
                        Thanks for the info.

                        Futile search for some method of doing something like this? Revealing/hiding
                        some kind of element that contains active content?

                        I've been trying to find a method using this stuff:

                        http://winlike.com/

                        To do something along these lines. So far...not luck.


                        • 10. Re: Best way to update div content
                          Level 7
                          That's why you see PVII products recommended so heartily and frequently
                          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
                          ==================


                          "vanq" <webforumsuser@macromedia.com> wrote in message
                          news:e8krpm$juo$1@forums.macromedia.com...
                          > Thanks everyone for all the suggestions. I'll have to look them over and
                          > see
                          > which option will work best in my situation.
                          >
                          > Al, as a side note I just wanted to let you know that I had purchased the
                          > PVII
                          > tree menu magic package and it works great. The code is well organized and
                          > straight forward enough that even as a beginner I was able to modify it to
                          > pull
                          > in all of it's text dynamically using php/MySQL.
                          >