houstontx
Newbie
Posts: 1
Registered: 10/25/2005
Member Is Offline
|
| posted on 10/25/2005 at 09:45 PM |
|
|
Tigra Gold - Frame problem
I have just started using Targa gold today so this may be a simple question but here goes.
I created a menu and copied the support files to the correct directory. I created a file called left.htm with the menu in it and it works perfectly
when I open the file directly. However, when I create a frameset that has left.htm as one of the frames I get an error icon in the lower left side of
my IE 6.0 window and the menu does not show up. When I double click on the error message I get the following message:
--------------------------
Line: 1
Char: 1
Error: Object does not support theis property or method.
I created a frame set
URL File://c:documents and settingsjdalglieshdesktopmenuleft.htm
-----------------------------
Any idea why it works on its own but not in the frame?
Thanks,
Jeff
This is the left.htm code
------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<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">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>left</title>
</head>
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
</html>
-----------------------------------
This is the frameset code
----------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<frameset rows="123,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="top.htm" name="topFrame" scrolling="NO" noresize >
<frameset rows="*" cols="145,*" framespacing="0" frameborder="NO" border="0">
<frame src="left.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="main.htm" name="mainFrame">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/7/2005 at 08:53 PM |
|
|
the menu is initialized differently when used with frames. Without frames you initialize it as described at:
http://www.softcomplex.com/products/tigra_menu_gold/docs/#construct_sframe
with frames:
http://www.softcomplex.com/products/tigra_menu_gold/docs/#construct_mframe
if the menu will not overlap the frame border you can initialize it like this:
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS, {'frames' : [[]]});
</script>
|
|
|