call javascript from applet which is loaded in one frame

Posted on 2004-10-29
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
    LVL 4

    Accepted Solution

    I would recommend using:

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

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

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    884 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now