PDA

View Full Version : Tab Content V2.2 Help Needed



krak001
09-16-2008, 08:51 PM
1) Script Title: Ajax Tab Content V2.2 (Ajax)

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

3) Describe problem:
I am getting problem in using this script to work with external page.


<ul id="studenttabs" class="shadetabs">
<li><a href="#" rel="#default" class="selected">Personal Information</a></li>
<li><a href="login.php" rel="s1">Guardian Information</a></li>
<li><a href="external3.htm" rel="s1">Academic Information</a></li>
<li><a href="external4.htm" rel="s1">Contact</a></li>
<!--<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>--><?php //Way to fetch the external url ;?>
</ul>
<!--<div id="sProfileContainer" class="stdclass">-->
<!--<p>This is some default tab content, embedded directly inside this space and not via Ajax. It can be shown when no tabs are automatically selected, or associated with a certain tab, in this case, the first tab.</p>-->
<div id="s1" class="stdClass">
Your Content Will be displayed here
</div>
<script type="text/javascript">
var students=new ddajaxtabs("studenttabs", "sProfileContainer")
students.setpersist(true)
students.setselectedClassTarget("link") //"link" or "linkparent"
students.init()
</script>


The tab is displayed correctly, but when I hit Guardian Information tab the login.php page is opened in new page. I want it to be opened in the divcontainer, defined as s1, but it always opens in new page.

I have already searched for the solution but couldn't find one, and hope you gyz know some workout.

Thanks in advance,

ddadmin
09-17-2008, 12:53 AM
Please post a link to the page on your site that contains the problematic script so we can check it out.