View Full Version : Ajax Tab Content Problem

03-24-2008, 03:29 PM
1) Script Title:
Ajax Tab Content
2) Script URL (on DD):
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.

03-24-2008, 08:26 PM
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:

var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setselectedClassTarget("link") //"link" or "linkparent"

Here the variable used for the set is "countries", and should be different for the 2nd set.

03-26-2008, 08:27 PM
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

03-27-2008, 03:39 AM
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.