Results 1 to 2 of 2

Thread: 3 nested tabs NOT works

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

    Default 3 nested tabs NOT works

    1) Script Title: Ajax Tabs Content Script (v 2.2)

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

    3) Describe problem:
    Nice and helpfull Script !!

    ... I am not able to bring the script works correctly with 3 nested tabs
    Code:
    <script type="text/javascript">
    
    var countries_1=new ddajaxtabs("countrytabs_1", "countrydivcontainer_1");
    countries_1.setpersist(false);
    countries_1.setselectedClassTarget("link"); //"link" or "linkparent"
    countries_1.init();
    
    countries_1.onajaxpageload=function(pageurl){
    
     if (pageurl.indexOf("/admin/esercizi/esercizi.inc.php")!=-1){
      sedondLevelTab_1=new ddajaxtabs("tabsMain_84", "tabsMainContainer_84");
      sedondLevelTab_1.setpersist(false);
      sedondLevelTab_1.setselectedClassTarget("link"); //"link" or "linkparent"
      sedondLevelTab_1.init();
     }
     
     else if (pageurl.indexOf("/admin/esercizi/esercizi_offerteAjaxTabs.php")!=-1){
      thirdLevelTab_1=new ddajaxtabs("tabsOfferte_84", "offerteContainer_84");
      thirdLevelTab_1.setpersist(false);
      thirdLevelTab_1.setselectedClassTarget("link"); //"link" or "linkparent"
      thirdLevelTab_1.init();
     }
    
    }
    
    </script>
    The script works only with 2 nested tabs ...

    Any ideas if this is a script issue or if I have not correctly configured the script ?

    Thank you

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

    Default

    There's no reason why the script only works with 2 nested tabs, and not 3. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

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
  •