call javascript from applet which is loaded in one frame

Posted on 2004-10-29
Medium Priority
Last Modified: 2012-05-05
I hava a problem like below:
page a.jsp has 3 frames: a1.jsp, a2.jsp, a3.jsp
In a3.jsp, I have an applet with one button. When user click on button, it will do a javascript function. I use getAppletContext().showDocument(url).... This function works when a3.jsp is not in frame, but in case a3.jsp is one of frame of a.jsp, this function doesn't work.
Please tell me how to fix it
Thank you very much
Question by:nphnhi

Accepted Solution

lcwiding earned 150 total points
ID: 12445563
I would recommend using:

getAppletContext().showDocument(url, "_self");

If this does not work, what is displayed in the java console?

Expert Comment

ID: 12445573

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month6 days, 2 hours left to enroll

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question