View Full Version : Ajax Tabs Content Script (v 2.2) -noob alert
whatthemeh
03-25-2010, 02:54 AM
Ajax Tabs Content Script (v 2.2)
http://dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
I am trying to get this to have a tab change a different DIV tags content than the other tabs but i seem to be lost. All I am able to get it to do is load the changed content when the page loads.
Is this possible?
ddadmin
03-25-2010, 07:53 AM
Hmm not sure I understand the question actually. You want the content of a another DIV on the page to change when a tab is clicked on, apart from the content inside the Tab Contents area? In demo 2 on the script page (http://dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm), it already shows an example of hiding one DIV anywhere on the page and showing another when a tab is clicked on.
whatthemeh
03-26-2010, 02:08 AM
my website has a main section with three divs Right, center, and left.
Right now using the script from this example I am able to have my tabs change the center div section.
Now for example of the tabs is called donate. I was wondering if I can setup it up so that when that tab is selected that is changes just the right or left section?
What I was able to do so far was to get it to change the center section to its content and it also always displayed its external content in either the right or left section.
Now in thinking upon it this might not be the best visual idea but at this point I am mainly looking to see how it is done.
I did try using two instances of the script and renames the variables but still was not getting it to do quite what i wanted.
Another thing to note would be that the right or left section should only change when this tab is selected. Other than that it should show some default content within the DIV tag. I did try the #default setting but that of course just makes that section always show the DIV content.
I hope I am making more sense tonight as last nights post was after a long day and I closed the submission window twice before i managed to submit so I know there was not a lot of detail.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.