Advanced Search

Results 1 to 2 of 2

Thread: Cascading tabs

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

    Unhappy Cascading tabs

    Hello everybody,

    I use the basic implementation of ajax tabs method given on the site. It works perfectly, but I would like to add a new tab which will open other multiple tabs in the div content. So I have multiple tabs with a div content and in this div I have multiple tabs with an other div content. The problem is that nothing appears in this new div content.

    I understood that I had to instanciate a new ddajaxtabs object with the second tabinterfaceid and contentdivid. So my solution was to do it in the expandtab:function(tabref).

    I have added a condition to tell that if I have clicked on the specific tab (of my first tabs list) then I have to instanciate a new ddajaxtabs object with the tabinterfaceid and contentdivid of my second tabs list.

    Code:
    if (tabref=="http://localhost/benchTWS/gui/TWS/TWSManagement.php"){
         var toto=new ddajaxtabs("twstabs", "twsdivcontainer")
         toto.setpersist(true)
         toto.setselectedClassTarget("link") //"link" or "linkparent"
         toto.init()   
    }
    It should work ! But the surprise is that it works only if I put an alert message in the if instruction :

    Code:
    if (tabref=="http://localhost/benchTWS/gui/TWS/TWSManagement.php"){
         alert("working")
         var toto=new ddajaxtabs("twstabs", "twsdivcontainer")
         toto.setpersist(true)
         toto.setselectedClassTarget("link") //"link" or "linkparent"
         toto.init()   
    }
    Somebody can help me please ???

  2. #2
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nobody can help me ???

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
  •