I've written some code that works on internet explorer, but not on
netscape.
The code is the following:
<%! String dataview=""; %>
.......
.......
<% dataview = myBeanInstance.getDocument(); %>
....
....
<SCRIPT language="JavaScript">
<!--
parent.frames[2].document.write("<HTML><HEAD><TITLE>bottom
frame</TITLE></HEAD><BODY>");
parent.frames[2].document.write("writing on bottom frame con frames[2]");
parent.frames[2].document.write("<%= dataview %>");
parent.frames[2].document.write("</BODY></HTML>");
parent.frames[2].document.close();
-->
</SCRIPT>
the content of dataview variable is written on the frame[2] in IE, but not
in Netscape
I've isolated the problem, and I've seen that it is a javascript problem,
and not a jsp problem.
Infact in the following code the sentence "writing on frame 0" appearar on
the left frame in both browser
while the sentence "writing on frame 1" appear on the right frame only in
IE
main.htm
------------------
<HTML>
<HEAD>
<TITLE>window.frames property</TITLE>
</HEAD>
<FRAMESET COLS="50%,50%">
<FRAME NAME="JustAKid1" SRC="second.htm">
<FRAME NAME="JustAKid2" SRC="second.htm">
</FRAMESET>
</HTML>
second.htm:
------------------
<HTML>
<HEAD>
<TITLE>Window Revealer II</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
parent.frames[1].document.write("<br>writing on frame 1");
parent.frames[0].document.write("<br>writing on frame 0");
</SCRIPT>
</BODY>
</HTML>
Does anyone know how to solve this , or does anyone know a forum like this
for javascript problems?
thanks a lot Maria
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets