It works in my Netscape. After you try your test, type "javascript:" on the
Netscape URL line and it will show you any javascript errors it encountered.
If you've never done this, you may have a long list of errors shown. For
best testing, clear the "Clear Console" button on the "Netscape JavaScript
Console" (what you get when you type "javascript:" on the URL) and then do
your tests and see what Netscape is complaining about.
Hope that helps. If it doesn't, send me your test code & I'll try it on my
side.
Jorge Barrera
Coral Reef Technologies, Inc.
S.FL.USA, always looking for Java people
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Maria Baldassarri
Sent: Thursday, August 31, 2000 9:41 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp, java script and frames
It doesn't work! same behaviour!!
Jorge Barrera <[EMAIL PROTECTED]> on 08/18/2000 02:58:18 PM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Maria Baldassarri/Tivoli Systems)
Subject: Re: jsp, java script and frames
Hello Maria,
Try calling the frame by name instead of index. This should be
cross-browser.
=============
<SCRIPT language="JavaScript">
<!--
parent.JustAKid2.document.write("<HTML><HEAD><TITLE>bottom
frame</TITLE></HEAD><BODY>");
parent.JustAKid2.document.write("writing on bottom frame con frames[2]");
parent.JustAKid2.document.write("<%= dataview %>");
parent.JustAKid2.document.write("</BODY></HTML>");
parent.JustAKid2.document.close();
-->
</SCRIPT>
============
Jorge Barrera
Coral Reef Technologies, Inc.
S.FL.USA, always looking for Java people
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Maria Baldassarri
Sent: Thursday, August 31, 2000 7:38 AM
To: [EMAIL PROTECTED]
Subject: jsp, java script and frames
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
===========================================================================
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
===========================================================================
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
===========================================================================
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