bobth1019
05-16-2008, 11:55 AM
1) Script Title: Ajax Tabs Content Script (v 2.2)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
3) Describe problem: Simple question, I would think but I'm new so please excuse....
I want to configure a tab to for script that would replicate tab one on the URL above in "Demo #1" as in "The default content is added inline on the page and not fetched via Ajax, to avoid unnecessary fetching of external pages." So content within another tab that is not being called externally. So 3 tabs-there would a default content tab, a page called by Ajax tab, and another tab that is "static" for lack of a better word.
I've tried various alterations as in adding another div id besides "countrydivcontainer" as in "countrydivcontainer2" but no luck and similar attempts.
How do I do this? code below. Thank you very much for your help.
<ul id="countrytabs" class="shadetabs" style=" margin-left: 10px;">
<li><a href="#" rel="#default" class="selected">History/Overview</a></li>
<li><a href="/apps/pbcs.dll/section?Category=cityoverview2" rel="countrycontainer">City Information</a></li>
<li><a href="#" rel="#default" >Map</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px #ccc solid; width:470px; margin-bottom: 1em; padding: 10px; padding-top:0px; margin-left: 10px;">
<p><%ParagraphItems%></p>
</div>
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
3) Describe problem: Simple question, I would think but I'm new so please excuse....
I want to configure a tab to for script that would replicate tab one on the URL above in "Demo #1" as in "The default content is added inline on the page and not fetched via Ajax, to avoid unnecessary fetching of external pages." So content within another tab that is not being called externally. So 3 tabs-there would a default content tab, a page called by Ajax tab, and another tab that is "static" for lack of a better word.
I've tried various alterations as in adding another div id besides "countrydivcontainer" as in "countrydivcontainer2" but no luck and similar attempts.
How do I do this? code below. Thank you very much for your help.
<ul id="countrytabs" class="shadetabs" style=" margin-left: 10px;">
<li><a href="#" rel="#default" class="selected">History/Overview</a></li>
<li><a href="/apps/pbcs.dll/section?Category=cityoverview2" rel="countrycontainer">City Information</a></li>
<li><a href="#" rel="#default" >Map</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px #ccc solid; width:470px; margin-bottom: 1em; padding: 10px; padding-top:0px; margin-left: 10px;">
<p><%ParagraphItems%></p>
</div>
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>