Board Logo

'TM0_' error - can't find a way out!
paulcobb - 11/7/2006 at 05:02 AM

Using tigra menu gold
I can make the menu work fine in the sigle page but as soon as I use as opart of the frames page with the appropriate initialisation I get Runtime error Line 10 TM0 is undefined.

The pages load tho and the menu works - but does not over lap the adjoining frame.


master frame = nyt_menu

<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Youth Theatre - Menu</title>
<base target="menu">
<script language="JavaScript" src="menu_files/menu.js"></script>
<script language="JavaScript" src="menu_files/items.js"></script>
<script language="JavaScript" src="menu_files/template.js"></script>
<link rel="stylesheet" href="menu_files/menu.css">
</head>


<td height="110">
<script language="JavaScript">
var frameset = [
['nyt_menu', 'nyt_top'],
['nyt_menu', 'nyt_main', 'nyt_news']
];
new menu (MENU_ITEMS, MENU_TPL, {'frames' : frameset});</script></td>


The routine above is in a table where the menu needs to be:
Not 100% sure about the format of definingthe frames though!


Slave page = main

<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Youth Theatre - Main</title>
<base target="nyt_main">
<script language="JavaScript" src="menu_files/menu.js"></script>
<script language="JavaScript" src="menu_files/items.js"></script>
<script language="JavaScript" src="menu_files/template.js"></script>
<link rel="stylesheet" href="menu_files/menu.css">

</head>



<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
</body>

above is at bottom of page


frames page code is below

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Welcome to New Youth Theatre across the UK | Inspire!&nbsp; Reach!&nbsp; Create!
</title>
<base target="_top">
</head>

<frameset framespacing="0" border="0" frameborder="0" cols="114,*">
<frame name="nyt_menu" scrolling="no" noresize target="menu" src="menu.htm" title="nyt_menu" marginwidth="0" marginheight="10">
<frameset rows="140,*">
<frame name="nyt_top" target="top" src="lib/top.htm" scrolling="no" marginwidth="0" marginheight="0" title="nyt_top">
<frameset cols="600,150">
<frame name="nyt_main" src="lib/main.htm" target="main" scrolling="auto" title="nyt_main" marginwidth="0" marginheight="0">
<frame name="nyt_news" target="news" scrolling="no" title="nyt_news" src="http://ccgi.paulcobb.co.uk/pcp/nyt/news.htm">
</frameset>
</frameset>
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>


I would appreciate some guidance - as I seem to be going round in circles - Thanks


tigra - 11/7/2006 at 08:32 AM

in menu.js use absolute path so it points to the same folder regardless of the
folder you use the menu in.

For example if menu_files is located in the root folder of the website then
the path is:

var TMenu_path_to_files='/menu_files/';

Also check the limitations of the cross-frame setup to make sure you're not
in one of those situations:

http://www.softcomplex.com/products/tigra_menu_gold/docs/#construct_mframe


paulcobb - 11/10/2006 at 09:42 AM

Thanks i had one frame that had a page from a different domain loading - sorted!


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/