Hi,
In our current application, when we click on submit button in child widow, the form wil be submitted in a way that response will bel oaded in a specific frame in the parent window by usign the following attribute
document.formname.target="mainFrame"
"mainFrame" is the framename in the parent window.
The above fucntionality worked with out any issues with all previous versions on Internet Explorer, but in IE11 the response is
loading in a new window instead of parent window though meta tag is added to load the window in IE8 mode.
I can go with an alternative as below , but this would lead to GET instead of POST which is not preferrable.
window.opener.top.frames.mainframe.location="newPage.html
Please let me know incase of any other alternatives.
The sample files are attached for easy reference.
parentWindow.html
<HTML><HEAD><title>Parent Window </title><meta http-equiv="X-UA-Compatible" content="IE=8" /></HEAD><FRAMESET ROWS="20%,*" border="0"><FRAME SRC = "topPage.html" marginheight="0" marginwidth="0" name="topFrame" scrolling="no" noresize frameborder="2"><FRAME SRC = "mainPage.html" marginheight="0" marginwidth="0" name="mainFrame" scrolling="no" noresize frameborder="2"></FRAMESET><noframes> Sorry your browser does not support frames.</noframes><body></body></HTML>
topPage.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><meta http-equiv="X-UA-Compatible" content="IE=8" /><TITLE> TOp Page </TITLE></HEAD><BODY><H5>Top Page </H5></BODY></HTML>
mainPage.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><meta http-equiv="X-UA-Compatible" content="IE=8" /><TITLE> Main Page</TITLE><script > function test() { window.open ("childWindow.html",'childWindow','scrollbars=no,resizable=no,width=400,height=400'); } </script></HEAD><BODY><H5> Main Page </H5><input type="button" onclick="test()" value="Click Here to Test"/></BODY></HTML>
childWindow.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><meta http-equiv="X-UA-Compatible" content="IE=8" /><TITLE> Main Page</TITLE><script > function submitForm() { document.form1.action= "newPage.html"; document.form1.target= "mainFrame"; document.form1.submit(); window.close(); }</script></HEAD><BODY><H5> Main Page </H5><form name="form1"><input type="button" value="Submit" onclick="submitForm()"/></form></BODY></HTML>
newPage.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><meta http-equiv="X-UA-Compatible" content="IE=8" /><TITLE> New Page </TITLE></HEAD><BODY><H5>New Page - Testing </H5></BODY></HTML>