ragheb.khaseeb
02-23-2009, 06:51 AM
i write html page to iframe like this
PrintWrite out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<script language=\"javascript\">");
out.println("top.frames['bridge_frame'].location = \"http://"+host+"/empty.html?message="+message+"\";");
out.println("</script>");
out.println("</head>");
out.println("<body>");
out.println("</body>");
out.println("</html>");
when i view the iframe content by Firebug the iframe contnet is
<html><head></head><body><pre></pre>top.frames['bridge_frame'].lcaotion ... </body></html>
PrintWrite out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<script language=\"javascript\">");
out.println("top.frames['bridge_frame'].location = \"http://"+host+"/empty.html?message="+message+"\";");
out.println("</script>");
out.println("</head>");
out.println("<body>");
out.println("</body>");
out.println("</html>");
when i view the iframe content by Firebug the iframe contnet is
<html><head></head><body><pre></pre>top.frames['bridge_frame'].lcaotion ... </body></html>