Results 1 to 2 of 2

Thread: level three nested Ajax tabs

  1. #1
    Join Date
    Apr 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default level three nested Ajax tabs

    1) Script Title: Level Three nested ajax tabs required

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...uppliment2.htm

    3) Describe problem:
    hello everyone,
    I am new to Ajax and this is the first time i am using Ajax. I have been developing a web application prototype and i am using the ajax tabs from the dynamic drive ajax tab as shown in the examples. In the example it has shown only till a second level nested tabs. However in my application i need a third and fouth level ajax nested tabs. Can anyone please go through the link and give me an insight as how to create a third level nested ajax tabs. Any help will be greatly appreciated.

    Thank you.

    MODERTATOR'S EDIT - CONTENT BELOW MOVED FROM ANOTHER THREAD

    I tried the same thing (http://www.dynamicdrive.com/forums/s...ax-tabs-Please) but it wont work at all...i am posting my codes can anyone tell me what have i done wrong here....

    <!-- Main Page -->
    Code:
    <ul id="countrytabs" class="shadetabs">
    <li><a href="external1.htm" rel="countrycontainer" class="selected">Tab 1</a></li>
    <li><a href="external2.htm" rel="countrycontainer">Tab 2</a></li>
    <li><a href="externalnested.htm" rel="countrycontainer">Tab 3</a></li>
    </ul>
    
    <div id="countrydivcontainer" style="border:1px solid gray; width:700px; height:400px; margin-bottom: 1em; padding: 10px">
    </div>
    
    <script type="text/javascript">
    
    var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    
    countries.onajaxpageload=function(pageurl){
    if (pageurl.indexOf("externalnested.htm")!=-1){
    var provinces=new ddajaxtabs("provincetabs", "provincedivcontainer")
    provinces.setpersist(true)
    provinces.setselectedClassTarget("link") //"link" or "linkparent"
    provinces.init()
    }
    
    else if (pageurl.indexOf("newexternalnested.htm")!=-1){
    var provinces=new ddajaxtabs("protabs", "prodivcontainer")
    provinces.setpersist(true)
    provinces.setselectedClassTarget("link") //"link" or "linkparent"
    provinces.init()
    }
    
    }
    </script>
    <!-- External Nested Page -->
    Code:
    <ul id="provincetabs" class="shadetabs">
    <li><a href="external1.htm" rel="provincedivcontainer">Tab 1</a></li>
    <li><a href="external2.htm" rel="provincedivcontainer">Tab 2</a></li>
    <li><a href="newexternalnested.htm" rel="provincedivcontainer">Tab 3</a></li>
    </ul>
    
    <div id="provincedivcontainer" style="padding: 10px; border-top: 1px solid gray;">
    </div>
    <!-- New External Nested Page-->
    Code:
    <ul id="protabs" class="shadetabs">
    <li><a href="external1.htm" rel="prodivcontainer">Tab 1</a></li>
    <li><a href="external2.htm" rel="prodivcontainer">Tab 2</a></li>
    <li><a href="external3.htm" rel="prodivcontainer">Tab 3</a></li>
    </ul>
    
    <div id="prodivcontainer" style="padding: 10px; border-top: 1px solid gray;">
    </div>
    Last edited by Beverleyh; 04-02-2015 at 10:48 AM.

  2. #2
    Join Date
    Apr 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    common guys, ain't here anyone who can solve this problem of mine. I think the problem is with that else if statement, i know i am missing something very important, it will be kind of you guys if you point out that mistake of mine.

Similar Threads

  1. Ajax Tabs--next/back buttons with nested tabs?
    By amyschiff in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-04-2008, 04:55 PM
  2. ajax tabs multiple nested tabs doesnt work?
    By pinkstone in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-08-2008, 06:51 PM
  3. Nested ajax tabs
    By koolaid in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-20-2008, 03:41 AM
  4. Need help with nested ajax tabs Please
    By Billy Johnson in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-15-2007, 03:47 PM
  5. How to? Nested Ajax Tabs
    By j1vasan007 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 08-04-2006, 04:06 AM

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
  •