Copy link to clipboard
Copied
ROBOHELP HTML 8.
Hello,
I generate my webhelp files. Add them to the application file. Build, Deploy, etc,
Then when accessing the help file directly or through the application(web application) using Internet Explorer 8, I get an error...
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 3 Nov 2010 19:07:56 UTC
Message: Expected ';'
Line: 21
Char: 12
Code: 0
URI: https://vmgenqa03/MeiTpm/help/ENG/whskin_tbars.htm
It still loads the help and goes away when you start navigating, But what is causing it and how can I get rid of it?
Does not happen in Firefox, but we only support IE.
Thanks,
Stephen
Copy link to clipboard
Copied
Anybody got any ideas? Mr. Grainge?
Copy link to clipboard
Copied
Does your 'whskin_tbars.htm' file have anything on Line 21, or thereabouts?
(open it in Notepad or some other text editor)
Copy link to clipboard
Copied
line 21 is...
var history.go = function(-1)
Copy link to clipboard
Copied
Hi,
history.go is a javascript function. You cannot declare this as a variable. Can you post the complete script so we can check what this code tries to do? My guess is that this is the code for a back button. Try replacing this line with: history.go(-1); (If you're doing something else, don't replace this line.)
Greet,
Willam
Copy link to clipboard
Copied
Hi William,
Thanks for you help. Here is the whole file...
<html>
<head>
<title> WebHelp Navigation Toolbar </title>
<meta name="generator" content="Adobe RoboHelp 8" />
<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>
<script type="text/javascript" language="JavaScript1.2">
//<![CDATA[
var history.go = function(-1)
{
var topicPane = top.frames[1].frames[1];
topicPane.focus(-1);
topicPane.history.go(-1);
}
//]]>
</script>
</head>
<body marginheight="0" marginwidth="0" bgcolor="White" scroll="no">
<script language="javascript1.2">
<!--
if (window.gbWhTBar)
{
setButtonFont("toc","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("toc","Verdana","8pt","#333333","Normal","Bold","none", true);
setButtonFont("idx","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("idx","Verdana","8pt","#333333","Normal","Bold","none", true);
setButtonFont("fts","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("fts","Verdana","8pt","#333333","Normal","Bold","none", true);
setButtonFont("glo","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("glo","Verdana","8pt","#333333","Normal","Bold","none", true);
setButtonFont("searchform","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("searchform","","","","","","", true);
setButtonFont("banner","","","","","","");
setButtonFont("banner","","","","","","", true);
setButtonFont("custom9412","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("custom9412","Verdana","8pt","#333333","Normal","Bold","none", true);
setButtonFont("custom24912","Verdana","8pt","#333333","Normal","Bold","none");
setButtonFont("custom24912","Verdana","8pt","#333333","Normal","Bold","none", true);
gsIToc = "wht_toc_n.gif";
gsITocS = "wht_toc_h.gif";
gsIIndex = "wht_idx_n.gif";
gsIIndexS = "wht_idx_h.gif";
gsISearch = "wht_fts_n.gif";
gsISearchS = "wht_fts_h.gif";
gsIGlossary = "wht_glo_n.gif";
gsIGlossaryS = "wht_glo_h.gif";
gsIWebSearch = "wht_ws.gif";
gsIWebSearchD = "wht_ws_g.gif";
gsIBanner = "wht_logo1.gif";
gsIGo = "wht_go.gif";
setBackgroundcolor("White");
setAlignment("left");
setGoImage("search.png");
if (!gsBgImage)
{
setButtonBgColor("toc", gsBgColor);
setButtonBgColor("idx", gsBgColor);
setButtonBgColor("fts", gsBgColor);
setButtonBgColor("glo", gsBgColor);
setButtonBgColor("toc", gsTBSelectedBgColor, true);
setButtonBgColor("idx", gsTBSelectedBgColor, true);
setButtonBgColor("fts", gsTBSelectedBgColor, true);
setButtonBgColor("glo", gsTBSelectedBgColor, true);
setButtonBgColor("toc","White");
setButtonBgColor("idx","White");
setButtonBgColor("fts","White");
I did add a backbutton through the skin editor with the following commands...
var history.go = function(-1)
{
var topicPane = top.frames[1].frames[1];
topicPane.focus(-1);
topicPane.history.go(-1);
}
Stephen
Copy link to clipboard
Copied
Hi,
In the skin editor, modify the code of your back button to:
top.frames[1].frames[1].history.go(-1);
That should clear up your error message and make your back button functional.
Greet,
Willam
Copy link to clipboard
Copied
Hi,
Now I get...
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 10 Nov 2010 14:40:46 UTC
Message: Syntax error
Line: 26
Char: 1
Code: 0
URI: file:///C:/Users/sure/Documents/Compass%20User%20Assistance/!SSL!/WebHelp/whskin_tbars.htm
and an error dialog in the skin editor.
The back button works, but it did before the change too.
Thanks.
Copy link to clipboard
Copied
Hi,
Got to love IE
In the skin editor, fill in history.go(-1); in OnClick. Don't include other script. This worked for me on IE8/IE7 with a blank project.
Greet,
Willam
Copy link to clipboard
Copied
Now the back button does not do anything.
Copy link to clipboard
Copied
It seems I accidentally added the back code to the print button and left the code for the back button in the skin.
Thanks to W. van Weelden for helping me out.