M
Magesh
Hi,
I am trying to do the following
1. On form submit, open a window with three frames
2. Set the target as one of the frames
3. Set the action for the frame
It is working properly in version 6.0.2800.1106.xpsp2, etc. But, the
same page is not working properly in version 6.0.2800.1006CO. IE
opens two windows, one window containing the Frames and another window
which contains the output of test1.html.
I have attached the two files:
test.html
=========
<html>
<head>
<script language='javascript'>
function doit(form)
{
var tmpStr = "<HTML> <HEAD><TITLE>iView Record
Detail</TITLE></HEAD>" +
"<FRAMESET ROWS='30,100,30'> " +
"<FRAME ID='detailDisplayHeader' SRC='' MARGINHEIGHT=0
MARGINWIDTH=0 NORESIZE>"+
" <FRAME ID='detailDisplayBody' NAME='bodyname'
MARGINHEIGHT=0 MARGINWIDTH=0>" +
" <FRAME ID='detailDisplayFooter' SRC='' MARGINHEIGHT=0
MARGINWIDTH=0 NORESIZE>" +
" </FRAMESET>" +
"</HTML> ";
var mywindow=window.open('','myname'
,'toolbar=0,location=0,directories=0,status=1,menubar=0,width=500,height=600,scrollbars=1,resizable=1,left=100,Top=100');
mywindow.document.write(tmpStr);
mywindow.document.close();
form.target='bodyname';
form.action='test1.html';
mywindow.focus();
form.submit();
}
</script>
</head>
<body>Hello!!!
<form name="myform" onsubmit='doit(this); return false;'>
<input name='S' type='submit' value='button' />
</form>
</body>
</html>
2. test1.html
=============
<HTML>
<body>
HELLO
</body>
</HTML>
Any help in resolving this issue is greatly appreciated.
Magesh.
I am trying to do the following
1. On form submit, open a window with three frames
2. Set the target as one of the frames
3. Set the action for the frame
It is working properly in version 6.0.2800.1106.xpsp2, etc. But, the
same page is not working properly in version 6.0.2800.1006CO. IE
opens two windows, one window containing the Frames and another window
which contains the output of test1.html.
I have attached the two files:
test.html
=========
<html>
<head>
<script language='javascript'>
function doit(form)
{
var tmpStr = "<HTML> <HEAD><TITLE>iView Record
Detail</TITLE></HEAD>" +
"<FRAMESET ROWS='30,100,30'> " +
"<FRAME ID='detailDisplayHeader' SRC='' MARGINHEIGHT=0
MARGINWIDTH=0 NORESIZE>"+
" <FRAME ID='detailDisplayBody' NAME='bodyname'
MARGINHEIGHT=0 MARGINWIDTH=0>" +
" <FRAME ID='detailDisplayFooter' SRC='' MARGINHEIGHT=0
MARGINWIDTH=0 NORESIZE>" +
" </FRAMESET>" +
"</HTML> ";
var mywindow=window.open('','myname'
,'toolbar=0,location=0,directories=0,status=1,menubar=0,width=500,height=600,scrollbars=1,resizable=1,left=100,Top=100');
mywindow.document.write(tmpStr);
mywindow.document.close();
form.target='bodyname';
form.action='test1.html';
mywindow.focus();
form.submit();
}
</script>
</head>
<body>Hello!!!
<form name="myform" onsubmit='doit(this); return false;'>
<input name='S' type='submit' value='button' />
</form>
</body>
</html>
2. test1.html
=============
<HTML>
<body>
HELLO
</body>
</HTML>
Any help in resolving this issue is greatly appreciated.
Magesh.