Thank you very much. Unfortunately it didn't do the trick... to test it I scrolled down in the page loaded in tab 2, went to tab 3, but then when getting back to tab 2 the page re-loaded. I also followed a link in tab 2 and when getting back it loaded the original url back on the tab.
My code is really simple.. maybe I'm doing something wrong on the main page? :
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="ajaxtabs/ajaxtabs.css" />
<script type="text/javascript" src="ajaxtabs/ajaxtabs.js">
/***********************************************
* Ajax Tabs Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<body>
<div id="pettabs" class="indentmenu">
<ul>
<li><a href="http://www.google.com" rel="#iframe" class="selected">Viewer 1</a></li>
<li><a href="http://www.yahoo.com" rel="#iframe">Viewer 2</a></li>
<li><a href="http://www.cnn.com" rel="#iframe">Viewer 3</a></li>
</ul>
<br style="clear: left" />
</div>
<div id="petsdivcontainer" style="border:1px solid gray; width:1000px; height: 500px; padding: 5px; margin-bottom:1em">
</div>
<script type="text/javascript">
var mypets=new ddajaxtabs("pettabs", "petsdivcontainer")
mypets.setpersist(false)
mypets.setselectedClassTarget("link")
mypets.init()
</script>
<p><a href="javascript: mypets.loadiframepage('http://www.unodox.com')">Load "Unodox Homepage" into selected tab</a></p>
</body>
</html>
Bookmarks