Results 1 to 4 of 4

Thread: Idea for tab content

  1. #1
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Idea for tab content

    1) Script Title:
    Tab Content Script
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tent/index.htm
    3) Describe problem:

    i have a problem that if i have include external page with rel="differentarea"
    from the tab content itself how can i do it any suggest please help

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    What problem are you having with getting the a particular tab to load in a different content area? This works as long as both content area DIVs are defined before you call startajaxtabs(). For example:

    Code:
    <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
    <li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>
    <li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
    <li><a href="external3.htm" rel="ajaxcontentarea2">Cat</a></li>
    <li><a href="external4.htm" rel="ajaxcontentarea2">Sea Otter</a></li>
    </ul>
    
    <div id="ajaxcontentarea" class="contentstyle">
    <p>This is some default tab content, embedded directly inside this space and not via Ajax. It can be shown when no tabs are automatically selected, or associated with a certain tab, in this case, the first tab.</p>
    <p><b><a href="javascript: expandtab('maintab', 2)">Select 3rd tab of "maintab"</a></b></p>
    </div>
    
    <pSeparator</p>
    
    <div id="ajaxcontentarea2" class="contentstyle">
    
    </div>
    
    <script type="text/javascript">
    //Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
    startajaxtabs("maintab")
    </script>

  3. #3
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    thx you but it not
    umm i mean the external page that come with area that in the main page

    main page 2 content area
    let say's
    area1 & area2

    main page show at area1 (load external page)
    external page at area2

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Do you want to load a part of your page in the tabs? Please explain your question properly, in English preferably
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

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
  •