Board Logo

Overlapping working under Firefox but not under IE
centaurus - 10/16/2006 at 08:18 AM

Hello, have the following problem. Have tigra menu gold and have to use frame overlapping.

The strange thing is, overlapping is working in Firefox but not in IE... in IE i always get a Javascript error. When I am just starting the the main html (testa.html) alone, menu is working properly in Firefox and IE. Could someone help me to found the mistake?

Thank you very much!

Here what I've done...

I set up a page with 3 frames:

top = TESTA (testa.html)
middle = CORPO (corpo.html)
bottom = PIEDE (piede.html)

in the testa.html i put:

<html>
<head>
<title>Untitled Document</title>
<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">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<script language="JavaScript">

var frameset = [
['TESTA'],
['CORPO'],
['PIEDE'],
]
new menu (MENU_ITEMS, MENU_TPL, {'frames' : frameset});
</script>
</body>
</html>


in the corpo.html i put:

<html>
<head>
<title>Untitled Document</title>
<title>www.endlichmalurlaub.de</title>
<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">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL)
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="430">
<tr>
<td align="center" valign="top" height="430"><img src="Img/03_news.jpg" width="760" height="430"></td>
</tr>
</table>
</body>
</html>

And in the frameset.html (witch starts all tree frames) i put:

<html>
<head>
<title>Untitled Document</title>
<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">
</head>
<frameset rows="30,*" frameborder="NO" border="0" framespacing="0">
<frame src="02_testa.html" name="TESTA" scrolling="NO" noresize frameborder="NO" marginwidth="0" marginheight="0">
<frameset rows="430,*" border="0" framespacing="0" frameborder="NO">
<frame src="03_news.html" name="CORPO" noresize frameborder="NO" marginwidth="0" marginheight="0" scrolling="AUTO">
<frame src="04_piede.html" scrolling="NO" name="PIEDE" marginwidth="0" marginheight="0">
</frameset>
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL)
</script>
</body>
</noframes>
</html>


Here the 2 Javascript Errors in IE


Line 11
Character 4551
Error "lenght" is zero or no object
Code 0
URL file://C:IMGtesta.html

and

Line 11
Character 3239
Error "frameElement" is zero or no object
Code 0
URL file://C:IMGtesta.html


tigra - 10/16/2006 at 09:44 AM

Extra comma in:

var frameset = [
['TESTA'],
['CORPO'],
['PIEDE'],
]

it should be:

var frameset = [
['TESTA'],
['CORPO'],
['PIEDE']
]

(no comma after the last element of the array)


centaurus - 10/17/2006 at 04:47 AM

thank you it works!


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