Forum Moderators: open
My prob is I want to execute javascript that is in topframe.js from mainframe.js. This is the function in main.js:
function hideTopToolbars()
{
parent.TopFrame.hideNavigationBar();
parent.TopFrame.hideBreadCrumbTrail();
}
function hideNavigationBar()
{
document.getElementById('TopNavigationBar_tbl').style.display='none';
}
function hideBreadCrumbTrail()
{
document.getElementById('BreadCrumbTrail_tbl').style.display='none';
}
Im new to FireFox so i guess im doing something glaringly obvious. Any help would be most appreciated.
<HTML>
<HEAD>
<script language="javascript" type="text/javascript" src="../JavaScript_Pages/mainframe.js"></script>
</HEAD>
<form id="Main_frm" method="post" runat="server">
</form>
....table containing image.
</body>
</html>
function hideTopToolbars()
{
parent.TopFrame.hideNavigationBar();
parent.TopFrame.hideBreadCrumbTrail();}
function hideNavigationBar()
{
document.getElementById('TopNavigationBar_tbl').style.display='none';
}
function hideBreadCrumbTrail()
{
document.getElementById('BreadCrumbTrail_tbl').style.display='none';
}
<html>
<head>
<script language="javascript"type="text/javascript" src="../JavaScript_Pages/TopFrame.js"></script>
</head>
<body style="overflow:hidden;">
<table id="TopFrameContainer_tbl" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<tr>
<td valign="top" height="56px">
<div id="CheckPointLogo_div" class="CheckPointLogo"> </div>
</td>
</tr>
<tr>
<td valign="top" height="25px">
<table id="TopNavigationBar_tbl" cellpadding="0" cellspacing="0" border="0">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" height="25px">
<table id="BreadCrumbTrail_tbl" cellpadding="0" cellspacing="0" border="0">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
It works fine in IE but not in FireFox, though no javascript errors are displayed, it just simply does nothing when the page is loaded.