Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Communication from Applet to HTML Page

Posted on 2000-03-13
2
Medium Priority
?
249 Views
Last Modified: 2006-11-17
I need to make information captured in an applet available to the HTML page so that when a user presses a submit button, information from within my applet is merged with other information on the page and sent to the server. Is this possible?
0
Comment
Question by:howesd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
Sasha_Mapa earned 400 total points
ID: 2612770
As far as I know, there is no way to communicate with HTML.
A. An applet can invoke methods defined in Javascript on the page it was loaded from  (but I don't know Javascript, so I don't know whether it's possible to send something to a server from Javascript).
B. Javascript can call public methods in the applet that is found on the same page as the Javascript. You can use that to gather information from the page, give it to the applet, and have the applet send everything to the server.

If you want to know how to do either, post a comment :-)
0
 
LVL 1

Author Comment

by:howesd
ID: 2613970
That's all I need thanks - I can use Javascript to get at the public methods of my applet - once I've got that far I think the rest will be easy

Thanks for your help

Dave
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

610 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