C
cont
Hi I have the following simple page:
<HTML>
<TITLE>Test</TITLE>
<HEAD>
<script language="javascript">
function doSubmit()
{
alert('test');
window.frames.item(0).updateParent();
}
</script>
</HEAD>
<body>
<table cellpadding="1" cellspacing="1" >
<tr>
<td rowspan="24" valign="top">
<IFRAME id="iTreeView" name='tree' src="iFrame_Child.htm"
width="324" height="550" scrolling="auto" frameborder="1"
marginheight=2 marginwidth=2 ></IFRAME>
</td>
</tr>
</table>
<table>
<form action="" method="POST" name="frmRequest">
<tr>
<td align=center><input type="button" OnClick="javascript:doSubmit"
value="Submit It"></td>
</tr>
</table>
</form>
</BODY>
</HTML>
<!----------------------------Respective Child
Page--------------------------------->
<html>
<head>
<title>iFrame Test</title>
<script>
function updateParent()
{
alert('In updateParent');
}
</script>
</head>
<body onload=updateParent()>
</body>
</html>
When the page loads, the updateParent function fires off (w/in iFrame),
but the button click event doesn't fire the function off. What am I
doing wrong?
This works fine in IE, but not in FireFox. I am using IE7 Beta 3 and
FireFox 1.5.0.6
Thanks in advance for any input!
<HTML>
<TITLE>Test</TITLE>
<HEAD>
<script language="javascript">
function doSubmit()
{
alert('test');
window.frames.item(0).updateParent();
}
</script>
</HEAD>
<body>
<table cellpadding="1" cellspacing="1" >
<tr>
<td rowspan="24" valign="top">
<IFRAME id="iTreeView" name='tree' src="iFrame_Child.htm"
width="324" height="550" scrolling="auto" frameborder="1"
marginheight=2 marginwidth=2 ></IFRAME>
</td>
</tr>
</table>
<table>
<form action="" method="POST" name="frmRequest">
<tr>
<td align=center><input type="button" OnClick="javascript:doSubmit"
value="Submit It"></td>
</tr>
</table>
</form>
</BODY>
</HTML>
<!----------------------------Respective Child
Page--------------------------------->
<html>
<head>
<title>iFrame Test</title>
<script>
function updateParent()
{
alert('In updateParent');
}
</script>
</head>
<body onload=updateParent()>
</body>
</html>
When the page loads, the updateParent function fires off (w/in iFrame),
but the button click event doesn't fire the function off. What am I
doing wrong?
This works fine in IE, but not in FireFox. I am using IE7 Beta 3 and
FireFox 1.5.0.6
Thanks in advance for any input!