romanticyao
04-16-2008, 11:13 PM
1) Script Title: Ajax Tabs Content Script (v 2.2)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
I have my Ajax Tabs Content Script setup and it works great, but I am having trouble with Dynamically selecting a tab using a remote link
I am using the ajax tab content with Vbulletin, same one used here, lol. on index.php, I've put tabbed content inside forumhome template, using the following code:
<div id="forumhome_header">
<div class="shadetabs">
<ul id="forumtabs">
<if condition="$show[member]"><li class="myfourm"><a class="seleted" href="/myforum.php?page=forumhome" rel="forumajax">tab0</a></li></if>
<li class="citycenter"><a href="/tabs/tab_hot1.php" rel="forumajax" rev="tcontent1">tab1</a></li>
<li class="youth"><a href="/tabs/tab_hot5.php" rel="forumajax" rev="tcontent2">tab2</a></li>
<li class="lifestyle"><a href="/tabs/tab_hot6.php" rel="forumajax" rev="tcontent3">生活小叙</a></li>
<li class="ent"><a href="/tabs/tab_hot2.php" rel="forumajax" rev="tcontent4">tab3</a></li>
<li class="univer"><a href="/tabs/tab_hot3.php" rel="forumajax" rev="tcontent5">tab4</a></li>
<li class="gen"><a href="/tabs/tab_hot4.php" rel="forumajax" rev="tcontent6">tab5</a></li>
<br class="clearfloat" />
</ul>
</div><br class="clearfloat" />
</div>
<div id="forumajax" class="forumajax"></div>
<script type="text/javascript">
var forumhome_forumtab=new ddajaxtabs("forumtabs", "forumajax")
forumhome_forumtab.setpersist(true)
forumhome_forumtab.setselectedClassTarget("link") //"link" or "linkparent"
forumhome_forumtab.init()
</script>
Then from a different page (forumdisplay.php) I want to use a remote link to go back to the index.php and have one of the tab to be selected. However, that didn't work...
Based on my setup, what should I do to make things work?
Thank you in advance for you help.:)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
I have my Ajax Tabs Content Script setup and it works great, but I am having trouble with Dynamically selecting a tab using a remote link
I am using the ajax tab content with Vbulletin, same one used here, lol. on index.php, I've put tabbed content inside forumhome template, using the following code:
<div id="forumhome_header">
<div class="shadetabs">
<ul id="forumtabs">
<if condition="$show[member]"><li class="myfourm"><a class="seleted" href="/myforum.php?page=forumhome" rel="forumajax">tab0</a></li></if>
<li class="citycenter"><a href="/tabs/tab_hot1.php" rel="forumajax" rev="tcontent1">tab1</a></li>
<li class="youth"><a href="/tabs/tab_hot5.php" rel="forumajax" rev="tcontent2">tab2</a></li>
<li class="lifestyle"><a href="/tabs/tab_hot6.php" rel="forumajax" rev="tcontent3">生活小叙</a></li>
<li class="ent"><a href="/tabs/tab_hot2.php" rel="forumajax" rev="tcontent4">tab3</a></li>
<li class="univer"><a href="/tabs/tab_hot3.php" rel="forumajax" rev="tcontent5">tab4</a></li>
<li class="gen"><a href="/tabs/tab_hot4.php" rel="forumajax" rev="tcontent6">tab5</a></li>
<br class="clearfloat" />
</ul>
</div><br class="clearfloat" />
</div>
<div id="forumajax" class="forumajax"></div>
<script type="text/javascript">
var forumhome_forumtab=new ddajaxtabs("forumtabs", "forumajax")
forumhome_forumtab.setpersist(true)
forumhome_forumtab.setselectedClassTarget("link") //"link" or "linkparent"
forumhome_forumtab.init()
</script>
Then from a different page (forumdisplay.php) I want to use a remote link to go back to the index.php and have one of the tab to be selected. However, that didn't work...
Based on my setup, what should I do to make things work?
Thank you in advance for you help.:)