PDA

View Full Version : [Tab Content Script (v 2.2)] Problem with remote link



coo
10-17-2008, 09:15 AM
1) Script Title:
Tab Content Script (v 2.2)

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

3) Describe problem:

Hi,
I've a problem with a remote link.
I've a menu like this:


<a href="#" rel="country1" class="selected">Page 1</a>
<a href="#" rel="country2">Page 2</a>
<a href="#" rel="country3">Page 3</a>
<a href="#" rel="country4">Page 4</a> bsp;
<a href="page5.php">Page5</a>
<a href="#" rel="country5">Page6</a>

It works, and from the remote page (page.php) I can expand all my tabs, but not the last one: country5 / page6.

The content is:

<div id="country1" class="tabcontent">...</div>
etc etc..

In the remote page I've this code:

<a href="index.php?menu=0">Page 1</a>
<a href="index.php?menu=1"> Page 2</a>
<a href="index.php?menu=2"> Page 3</a>
<a href="index.php?menu=3"> Page 4</a>
<font color="gray"><b>Page 5</b></font>

<a href="index.php?menu=4"> Page 6</a>

and my code:


<script type="text/javascript">

var countries=new ddtabcontent("menu")
countries.setpersist(false)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>

Where is the error?
Why I can select all the tabs but not the last one?
Thanks..

ddadmin
10-18-2008, 09:38 AM
Try the link:


<a href="index.php?menu=5"> Page 6</a>

instead.