They solve one or two problems in Internet Explorer; they also banish some bad
behavior in other browsers.
I would like to be able to say which pieces of code are for what problems, but
I can't be certain everything will work if you omit some. For example, the
first fix below helps Navigator, but also may help Firefox (and Opera, when it
presents itself as Netscape). I didn't have time to test at this level.
My environment and the usual disclaimers:
RH X5.0.2;
Windows 2000
IE 6
Firefox 1.5.07
Netscape 7.1
Opera 9.02
User's access is via Intranet URL (rather than as files in a network path)
These fixes work for me but I can't guarantee your results. Back up
everything. Experiment on a small project or a minimized copy of the working
project. Please post a note about how they work for you.
Thanks.
whtbar.js
In function addButton (search for "hide2" to locate these lines):
--------
else if(sType=="hide2"&&(!gbNav4)&&(!gbOpera))
{
var svTitle="Hide Navigation Component";
sButton="<a title=\""+svTitle+"\" id=\"btnhide\" class=\"btnhide\"
href=\"javascript:void(0);\" onclick=\"showHidePane();return false;\">";
gnShowHideStyle=nStyle;
--------
Delete this snippet:
&&(!gbNav4)
So the line will read:
else if(sType=="hide2"&&(!gbOpera))
----------------------------------------------------------------------------
whtbar.js, near the end:
--------
function tryReload()
{
if (gnRE==1)
// document.location.reload();
gnRE--;
}
--------
Insert // as shown above to comment out this line.
-------------------------------------------------------------------------
whskin_tbars.htm
and
whskin_mbars
Near the beginning of each, note the location of </head>:
--------
<title> WebHelp Navigation Toolbar </title>
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<meta name="description" content="WebHelp 5.50">
</head>
<style>
<!--
body {margin:0;}
-->
</style>
</style>
<script language="javascript" src="whver.js"></script>
<script language="javascript1.2" src="whutils.js"></script>
<script language="javascript1.2" src="whmsg.js"></script>
<script language="javascript1.2" src="whproxy.js"></script>
<script language="javascript1.2" src="whmozemu.js"></script>
<script language="javascript1.2" src="whtbar.js"></script>
<body marginheight="0" marginwidth="0" bgcolor="#c1d1e5"
background="mytoolbarimage.gif" scroll="no">
--------
Delete </head> and insert it as shown below:
--------
<title> WebHelp Navigation Toolbar </title>
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<meta name="description" content="WebHelp 5.50">
<style>
<!--
body {margin:0;}
-->
</style>
<script language="javascript" src="whver.js"></script>
<script language="javascript1.2" src="whutils.js"></script>
<script language="javascript1.2" src="whmsg.js"></script>
<script language="javascript1.2" src="whproxy.js"></script>
<script language="javascript1.2" src="whmozemu.js"></script>
<script language="javascript1.2" src="whtbar.js"></script>
</head>
<body marginheight="0" marginwidth="0" bgcolor="#c1d1e5"
background="mytoolbarimage.gif" scroll="no">
--------
--------------------------------------------------------------------------
whskin_mbars.htm
To prevent the toolbar image from filling the minibar, too--
Near the beginning:
<body marginheight="0" marginwidth="0" bgcolor="#c1d1e5"
background="mytoolbarimage.gif" scroll="no">
Delete this snippet:
background="mytoolbarimage.gif"
And delete this line in the next section:
setBackground("mytoolbarimage.gif");
-----------------------------------------------------------------------
whskin_frmset01.htm and whskin_frmset010.htm
At the end, insert body tags, so it reads:.
</script><body></body>
</html>
---------------------------------------------------------------------------
launchfile.htm
Near the beginning, delete </head> and insert it near the end.
<title>WebHelp package for your application</title>
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<meta name="description" content="WebHelp 5.50">
</head>
<script type="text/javascript" . . . .
At the end,
Insert </head> and <body></body>So it reads:
</script></head>
<frameset cols="100%,*" frameborder=no border=0>
<frame src="whnjs.htm">
<frame src="whskin_blank.htm" noresize>
</frameset>
<body></body>
</html>
------------------------------------------------------------------------------
A code checker also flagged templates that have a <body> tag near the
beginning, but lack a </body> tag at the end. I'm not sure it matters for
these, but I fixed them anyway.
For example,
whtdata/whftdata0.htm
At the end, should read:
</script>
</body>
</html>
whidata0.htm
At the end, should read:
</script>
</body>
</html>
Similarly, these files:
whtdhtml.htm
whskin_tw.htm
whskin_info.htm
whiform.htm
whibody.htm
------------------------------------------------------------------------
Cool, nice job... Perhaps some of these edits will address FireFox's
startup/reloading issue. (?)
I haven't tried the edits, but, I should mention that in frameset files, the
<body> tag isn't used. Just the <frameset> tag. If you found an errant
<body> tag in those files (other than in the <noframes> section), it should be
removed.
Please don't hesitate to correct or improve upon anything else.
I deleted the frameset piece. There was no stray body tag, but I was uncertain
whether you can get away with a disembodied head. Apparently you can.
Harvey