Solved

Communication from Applet to HTML Page

Posted on 2000-03-13
2
209 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
2 Comments
 
LVL 7

Accepted Solution

by:
Sasha_Mapa earned 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

914 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

14 Experts available now in Live!

Get 1:1 Help Now