pkbarbiedoll
04-20-2006, 11:09 AM
Reference: http://flowersofdoom.net/a_index.html
I need to call a function on a_1.html (which is already loaded in the frame) from a_2.html.
When I load a_index.html I receive a javascript error saying, "parent.f2 is null or not an object". I've tested with IE 6.0 and Firefox 1.5.
Any suggestions?
a_index.html
<frameset col"50%,*">
<frame src="a_1.html" name="f1">
<frame src="a_2.html" name="f2">
</frameset>
a_1.html aka "f1"
<html>
<head>
<title>f1</title>
</head>
<body>
<script language="JavaScript">
<!--
parent.frames["f2"].Hello();
//-->
</script>
</body>
</html>
a_2.html aka "f2"
<html>
<head>
<title>f2</title>
</head>
<body>
<script language="JavaScript">
<!--
function Hello() {
alert('Hello world');
}
-->
</script>
</body>
</html>
I need to call a function on a_1.html (which is already loaded in the frame) from a_2.html.
When I load a_index.html I receive a javascript error saying, "parent.f2 is null or not an object". I've tested with IE 6.0 and Firefox 1.5.
Any suggestions?
a_index.html
<frameset col"50%,*">
<frame src="a_1.html" name="f1">
<frame src="a_2.html" name="f2">
</frameset>
a_1.html aka "f1"
<html>
<head>
<title>f1</title>
</head>
<body>
<script language="JavaScript">
<!--
parent.frames["f2"].Hello();
//-->
</script>
</body>
</html>
a_2.html aka "f2"
<html>
<head>
<title>f2</title>
</head>
<body>
<script language="JavaScript">
<!--
function Hello() {
alert('Hello world');
}
-->
</script>
</body>
</html>