Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6551187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:18:18+00:00 2026-05-25T12:18:18+00:00

Given an Applet in one frame in a multi-frame web application where all frames

  • 0

Given an Applet in one frame in a multi-frame web application where all frames are loaded from the same web server, how can that Applet invoke JavaScript methods in other frames? I tried something like this:

jsobject.call("parent.otherFrame.methodToCall", new String[] {"argument"});

and I get a complaint that the function does not exist. However, if I invoke it like this:

jsobject.eval("parent.otherFrame.methodToCall('argument')");

then it works. I’m trying to avoid use of eval. Is calling code via call in a different frame from an Applet something that is likely to have different behavior in each browser and JVM combination? Is eval safer as it is evaluated in the JavaScript engine rather than partly on the Applet side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:18:19+00:00Added an answer on May 25, 2026 at 12:18 pm

    The equivalent code without eval is probably something like this:

    jsobject = (JSObject)jsobject.getMember("parent");
    jsobject = (JSObject)jsobject.getMember("otherFrame");
    jsobject.call("methodToCall", new String[] {"hello!"});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of IP's in IPv4 format that i have collected from
I'm trying to submit an update of an existing application on behalf of one
I need to retrieve a list of given entities (apples) from another resource (fruitDelaer)
We are developing a web application with a hetereogenous base of users. Additionally, we
I have a Java Applet that uses AWT. In some (rare) circumstances, the platform
I've got two small structural issues that I'm not sure how to handle given
I want to upload my application to iTunes Connect using application loader. For that
I have created one iPhone application. I am getting Device Token. But I am
I'm trying to parse H.264 frames from a .mov file. I think I've come
2 collections are given with the same number of elements, say List<String> . What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.