Advanced Search

Results 1 to 9 of 9

Thread: link to specific tab from another page

  1. #1
    Join Date
    Feb 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default link to specific tab from another page

    This is my very first post, so I hope I'm doing this right.

    I came across this script:

    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    Here's what I'm trying to do. I have two pages. PageA.html has the Tab Content script and the default tab is "Dynamic Drive".

    PageB.html has the following links:

    Dynamic Drive, What's New, What's Hot, Search

    What I want to do is that when I click a link on PageB.html, for example, "What's Hot" it should go to PageA.html and display the "What's Hot" tab instead of the default "Dynamic Drive".

    Essentially, I want to change the Tabs on PageA.html by clicking the links on PageB.html.

    I'm really stumped on how to do this.

    Thank you to everyone.

    SB

  2. #2
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    Hi:
    What you're looking for is essentially a "site wide" cookie persistence feature. Currently the script only supports "local" persistence, whereby the tab order is remembered for only that page. An example of a "site wide" cookie persistence can been seen in the Switch Menu script, which we recently modified for this: http://dynamicdrive.com/dynamicindex1/switchmenu.htm

    I'll make a note of this and consider adding the same feature to the Tab Content script soon.

  3. #3
    Join Date
    Feb 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you. I'll see what I can do with the information you suggested.

  4. #4
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    Ok, script updated for "sitewide" persistence as well: http://www.dynamicdrive.com/dynamici...tabcontent.htm Enjoy

  5. #5
    Join Date
    Feb 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you.

    So, if I had the "Dynamic Drive", "What's New", "What's Hot" and "Search" links on another page (page1) and wanted to change the Tabs (page2), I could?

    Any ideas as to how?

    Thanks again. I really appreciate your help.

  6. #6
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    If I understood you correctly, simply set persistype="sitewide" inside the cookie script will do.

  7. #7
    Join Date
    Feb 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm sorry I guess I'm not explaining myself clearly. Here's what I'd like to do.


    page1.html

    This page has some content with the following:

    Hi my name is Joe and if you would like to learn about transportation click the following links:

    <a href="page2.html?tab=cars"> Cars </a>
    <a href="page2.html?tab=trucks"> Trucks </a>
    <a href="page2.html?tab=boats"> Boats </a>
    <a href="page2.html?tab=planes"> Planes </a>

    ------------------------------------------------------------------

    Note: I'm assuming I need to send variables to make the appropriate TAB display on page2.html.

    When you click any of the above links on page1.html the appropriate TAB on page2.html would be displayed.

    It's like using an anchor tag to go to the specific section of another page. I'd just like to reference a tab from another page.

    ------------------------------------------------------------------


    page2.html

    This page has the TAB Content Script and the following TABs and their corresponding content:

    Cars, Trucks, Boats, Planes



    Thank you so much for your time.

  8. #8
    Join Date
    Aug 2004
    Posts
    9,863
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    Ah I see now. This would be a script customization, and due to time constraints, right now I can't help out unfortunately. If someone else has the time, please take a look.

  9. #9
    Join Date
    Feb 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That's okay. Thanks for helping me so far.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •