View Full Version : an 'all' tab in the ajax tabs menu

08-31-2006, 03:10 PM
1) Script Title: Ajax Tabs Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem:
I've got a fully functioning ajax tabs menu. Thanks!!!

What I'd like to do, however, is add a tab called 'all' that when you click it, all of the content from each of the other tabs gets displayed. I'm guessing it's just a matter of adding some more div containers, but not sure. What do you suggest?


09-05-2006, 01:51 PM
anyone able to point me in the right direction?


09-07-2006, 01:52 PM
I really need to get this working...

Anyone able to help me out? Please?

09-14-2006, 10:11 PM
I was able to get it to work locally by modifying the ajaxtabs.js file here:

function initializeAllPage()
clientSideInclude('include1', '1.html');
clientSideInclude('include2', '2.html');
clientSideInclude('include3', '3.html');
clientSideInclude('include4', '4.html');
clientSideInclude('include5', '5.html');
clientSideInclude('include6', '6.html');

and then initialize the pages in the tabs.html:

<script type="text/javascript">
document.getElementById('maintab').getElementsByTagName('li')[parseInt(unescape(location.search).replace(/\D/g, ''))].className="selected"
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.

It works great locally.

But when I put on a server in a frameset I get a JS error.
The error is:

Line: 545
Char: 1
Error: 'document.getElementByID(...).getElementsByTagName(...)(...)' is null or not an object
Code: 0

I didn't get the error when I was using the original JS.
Anyone able to help me out?

09-15-2006, 01:34 PM
Basically what I need to know is:

How can I access an elementID from .js when I have more than one frame. How to specifcy which page within the frames to get the element from.