hi i am totally frustrated !!
i have been using this on my webpage.
http://www.barelyfitz.com/projects/tabber/
if u see under the advanced section there is a code for changing tabs dynamically.
Code:
document.getElementById('mytab1').tabber.tabShow(0);
this doesn't work.
basically i have a webpage internet.htm. which has a menubar with loads of menu items.
if i click one of the submenu items this code should change the dynamic tabs in admin.htm. the code i have defined for the submenu click is:
Code:
<li><a href="admin.htm" onClick="document.getElementById('Admin').tabber.tabShow(0)" >Forms</a></li>
the full code is:
Code:
<ul id="QualityMenuBar" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#"><strong>Admin</strong></a>
<ul>
<li><a href="AdminDocuments.htm" onClick="document.getElementById("Admin").tabber.tabShow(0)" >Forms</a></li>
<li><a href="AdminDocuments.htm" >Guidance</a></li>
<li><a href="AdminDocuments.htm" onClick="document.getElementById("Admin").tabber.tabShow(2)" >Organisation Chart</a></li>
<li><a href="AdminDocuments.htm">Plans</a></li>
<li><a href="AdminDocuments.htm">Procedures</a></li>
</ul>
</li>
this is what the admindocuments.htm contains, based on the website link i have borrowed the code from.
Code:
<div class="tabber" id="admin">
<div class="tabbertab">
<h2>Forms</h2>
<script type="text/javascript" src="adminForms.js"></script>
</div>
<div class="tabbertab">
<h2>Guidance</h2>
<script type="text/javascript" src="adminGuidance.js"></script>
</div>
<div class="tabbertab">
<h2>Org. Chart</h2>
<script type="text/javascript" src="adminOrg.js"></script>
</div>
<div class="tabbertab">
<h2>Plans</h2>
<script type="text/javascript" src="adminPlans.js"></script>
</div>
<div class="tabbertab">
<h2>Procedures</h2>
<script type="text/javascript" src="adminProc.js"></script>
</div>
</div>
whenever i click the submenu they all point to the first tab only. it doesn't change inspite of the code.
what am i doing wrong here?
please advice.
Many thanks.