Frames causing an Error on Page when compiled and viewed
First off, I am using RoboHelp 10 and WebHelp.
I am trying to click on a certain Topic in the ToC, and have it open in the window with two frames.I get an Error on Page when I click the link, but it seems to load up the page properly, as I can't see anything wrong with it.
I tried this with a new project, thinking that I may have something in my large project that was causing this, but it also appears to happen on a brand new project. So my conclusion is that I am doing something that RoboHelp doesn't like.
If I delete the line of code, noted in the Error on Page, from the compiled html from the SSL folder, there is no error.
I also tried to do this with Framesets inside of RoboHelp, but I got the same results.
Does anyone have any thoughts or solutions that I might be able to implement? I would like to be able to get rid of the error without having to edit the html after compiling, but if that is my only option, I guess I'll have to do it.
Thanks in advance.
Here is the html of the page I am trying to create:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe RoboHelp 10" />
<title>Copy of Frames</title>
</head>
<frameset cols="35%, 65%">
<frame name="main" src="cursor.gif" />
<frame name="video" src="tab.png" />
<noframe>
<body>
<p> </p>
</body>
</noframe>
</frameset>
</html>
Here is the compiled html from the SSL folder:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe RoboHelp 10" />
<title>Copy of Frames</title>
<script type="text/javascript" language="JavaScript">
//<![CDATA[
var gbstrRelHomePageURL="index.htm";
//]]>
</script><script type="text/javascript1.2" language="javascript" src="whmsg.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript" src="whver.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript1.2" src="whutils.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript1.2" src="whproxy.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript1.2" src="whframes.js" charset="utf-8"></script>
<script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
addTocInfo("Copy of Frames");<!--This is the line that is giving me the issue.-->
window.onload = function()
{
if (window.setRelStartPage)
{
setTimeout("setRelStartPage('index.htm');", 1)
}
}
function onSetStartPage()
{
if (window.autoSync)
autoSync(1);
}
//-->
//]]></script>
</head>
<frameset cols="35%, 65%">
<frame name="main" src="cursor.gif" />
<frame name="video" src="tab.png" />
<noframe>
<body>
<script type="text/javascript" src="./ehlpdhtm.js" language="JavaScript1.2"></script>
<p> </p>
</body>
</noframe>
</frameset><noframes></noframes>
</html>
Here is the error from IE:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729;
.NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 19 Sep 2012 17:46:05 UTC
Message: Object expected
Line: 19
Char: 1
Code: 0
URI: file:///C:/Users/i63962/Documents/My%20RoboHelp%20Projects/frame/!SSL!/WebHelp/First_Topic.htm
