I was able to get it to work locally by modifying the ajaxtabs.js file here:
Code:
function initializeAllPage()
{
clientSideInclude('include1', '1.html');
clientSideInclude('include2', '2.html');
clientSideInclude('include3', '3.html');
clientSideInclude('include4', '4.html');
clientSideInclude('include5', '5.html');
clientSideInclude('include6', '6.html');
}
and then initialize the pages in the tabs.html:
Code:
<script type="text/javascript">
if(location.search!=''){
document.getElementById('maintab').getElementsByTagName('li')[0].className=''
document.getElementById('maintab').getElementsByTagName('li')[parseInt(unescape(location.search).replace(/\D/g, ''))].className="selected"
}
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
initializeAllPage()
</script>
It works great locally.
But when I put on a server in a frameset I get a JS error.
The error is:
Code:
Line: 545
Char: 1
Error: 'document.getElementByID(...).getElementsByTagName(...)(...)' is null or not an object
Code: 0
I didn't get the error when I was using the original JS.
Anyone able to help me out?
Bookmarks