AJAX Tabs - How to make an extra link to another internal div (content) ?

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

AJAX Tabs - How to make an extra link to another internal div (content) ?

3) Describe problem:
Hi, I want to use the ajax tabs script stated above but with the possibility to add extra tabs which refer to internal content and not an extra iframe or external page. I have tried to combine this script with the "Tab Content Script"(http://www.dynamicdrive.com/dynamici...tabcontent.htm), which is a script to add more tabs only with internal content. I downloaded the other files and referred to it, but it just became a mess with tabs inside tabs and not working properly. I guess I am overseeing something or it is not possible.

Thus the simple question is, how can I make extra tabs that link to an internal div (content) in the Ajax Tabs Content script v2.2? (I also want to keep using the ability to link to external files so just switching to the "Tab Content Script" is not an option)

Do you have any idear when you will release with this feature ? we also would very much like to see this implemented. and as of now have found no other script that can both load external and internal content via ajax.

I tried this just recently and it works perfectly in IE6,IE7,IE8, Chrome 4.1 and FF 3.6.3!!!!!

thsi should be added to the script permanently!

* one note - I didn't like the idea of using document.write to add the .divcontent class, perhaps it could just be included as an aside in the documentation to set display:none to any containers users want to hide.

But then, with javascript disabled/unavailable, the content would be inaccessible. It's been some time since my post outlining this approach. Looking over it I think my reasoning was that, since the link would be:

And it would then work like a normal named anchor/anchor link pair for navigating within the document. At the very least, even without the named anchor, the content would be accessible without javascript. Which, BTW, is how the external pages are. Without javascript, they become ordinary links.

The Following User Says Thank You to jscheuer1 For This Useful Post:

Ahhhh! Now I understand the reason for putting the document.write in the javascript.
I understand your idea about using anchors as well. I hate anchors but its better than nothing if there is no javascript on the users browser.

I have been having some pretty serious problems getting anything javascript related to work properly when using rel="#div" .

For example: One tab I have setup displays a div that includes a iframe with an id of "bottom". I have a simple javascript that opens a new email telling the user what the document title and document location of the file currently loaded into the iframe with an id of "bottom".

I also use the exact same script on another page ( I'm trying to condense) and it works fine and the only thing different is that I am displaying the div as a one of my tabs.