|
|
You are not logged in. Announcement
When reporting a problem or a bug :
Thanks.* Provide your OS version (INCLUDING service pack) and installed IE version. * Provide your IETester version * Provide the IE Tab version opened to generate the problem * Provide a test case with a sample url or sample code to reproduce the problem * Provide a step by step explanation on how to reproduce the problem. * If needed provide additional information. #1 2008-10-14 17:14:13
Redirect in framesHi! Code:<html>
<head>
<title>Test</title>
</head>
<frameset rows="200,*">
<frame name="f1" src="Test.jsp">
<frame name="f1" src="Test.jsp?redirect=true">
</frameset>
</html>Test.jsp: Code:<%
if(request.getParameter("redirect")!=null) {
response.sendRedirect("Test.jsp");
}
%>
<html>
<head>
<script type="text/javascript">
window["undefined"]=window["undefined"];
</script>
</head>
<body onload='document.getElementById("a").innerHTML=window["undefined"];'>
<div id='a'></div>
</body>
</html>As you can see, the Main.jsp has a frame construct with two frames. The first frame is called directly with "Test.jsp". The javascript in this frame works fine. Offline |