PDA

View Full Version : Ajax Tabs Content Script (v 2.2) not working at my end



rizwan
11-08-2008, 10:18 AM
hi gays,

i am using Ajax Tabs Content Script (v 2.2) . i want to open pages in these tabs , but did bot opened in the tabs location , it redirected on this page .

actualy i have made some pages and these are already using ajax, my ajax code returns the html. now i want to open this code when any tab will active

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

please help me about this .


//////////////////////////////////////////////////////////////////////////
<link rel="stylesheet" type="text/css" href="ajaxtabs/ajaxtabs.css" />
<script type="text/javascript" src="ajaxtabs/ajaxtabs.js"></script>
<title>Approved Images</title>
</head>
<body onload="fetchapprovalimages();">
<ul id="approvalimg" class="shadetabs">
<li><a href="#" rel="countrycontainer" class="selected" >Approval Images</a></li>
<li><a href="publishedimages.php" rel="countrycontainer">Published Images</a></li>
</ul>
<div id="approval" style="border:1px solid gray; width:1024px; margin-bottom: 1em; padding: 10px">
</div>
</body>
</html>
<script language="text/javascript">
var app=new ddajaxtabs("approvalimg", "approval")
app.setpersist(true)
app.setselectedClassTarget("link") //"link" or "linkparent"
app.init()

////////////////////////////////////////////////////