PDA

View Full Version : ajax tabs



LifeIsBeta
08-04-2006, 01:43 PM
1) Script Title: Ajax Tabs Content script

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

3) Describe problem:
Not really a problem, just a question...

Can you target specific <div> tags in an external file?

i.e. when you click a tab, a specific <div> tag from the external .html file is displayed?

Thanks

mburt
08-04-2006, 01:46 PM
When you say external.. Do you mean an Iframe, or a completely different document?

mburt
08-04-2006, 02:03 PM
Nevermind.. Stupid question :)

waynep
08-04-2006, 04:44 PM
maybe try a different script :( because the whole point of having it ajaxed based is that it loads an external file etc etc, why not just add the div tags to the external page ? or search google for a script called accordian tabs ... its a cool scriptalicious script by moo fx ..



_________________________
http://www.mediapixel.co.uk

LifeIsBeta
08-04-2006, 05:45 PM
well, I want to load an external file, but it'd be cool if I could load a specific portion of the external file. basically have each tab pull the same external file, only display a certain <div> from that external file.

jscheuer1
08-05-2006, 06:55 AM
Not really such a good idea. You could use the ordinary tab script:

http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

It could be worked out the way you say but, it really is more complex than it would be worth. The point of the AJAX tabs is to load separate pages. The ordinary tabs script loads division on the same page with no external page. To combine the two, you would need to code for displaying and not displaying divisions anyway, and they all would need to be parsed by the browser anyway. At that point there would be no functional advantage over the plain tabs script but there would be a lot more server overhead.