View Single Post
Old 01-29-2013, 05:29 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,395
Thanks: 18
Thanked 351 Times in 350 Posts
sunfighter is on a distinguished road
This is the second time you have posted this question. The first time I looked at your site. I think it's far more complicated then it needs to be. I could not follow anything.

Here is a general explanation to do what you want:
You have to use AJAX. Your tabs call the ajax function and pass it an identifier. Ajax then calls a server-side script like PHP. That script gets the identifier and obtains the info and passes it back.

A second method:
Inside of the div that shows the results of your tabs have three divs, each with what is to be displayed per tab. Use display: none; on two of them. The tags than call a javascript function to turn display: none; to all three divs and then turn display: block; for the one you want to show.
Problem with this method is you have to change the HTML of your index page each time there is a change in what you want displayed. You can ruin the index page if your not careful!!!

One last thing IMHO you should light the tab that is displayed.
sunfighter is offline   Reply With Quote