Results 1 to 4 of 4

Thread: Ajax Tab Content Problem

  1. #1
    Join Date
    Sep 2007
    Posts
    172
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Ajax Tab Content Problem

    1) Script Title:
    Ajax Tab Content
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tent/index.htm
    3) Describe problem:
    I was trying to make more than 1 tab on the same page but was not able to do when I make two tabs and click on the first one the second one itself changes to the one I clicked, is it possible to make separate tabs? I was trying to make demo 1 help would be appreciated.

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

    Default

    Are you talking about two sets of tabs, such as in Demo 1 and Demo 2 together? The key is just to make sure each set is initialized using its own unique variable:

    Code:
    var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    Here the variable used for the set is "countries", and should be different for the 2nd set.

  3. #3
    Join Date
    Sep 2007
    Posts
    172
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    No I want demo 1 15 or 16 times on a single page. It do come but what happen is when I click the demo 1 tabs all the other demo 1 tabs will select with one click :s

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

    Default

    Well, the procedure is the same nonetheless. For each instance of demo #1 on the page, just make sure all the variable/id names are unique for each instance. Please read the explanation on the script page again, which covers this.

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
  •