Solved

HOWTO set a value to an invisible input text of a HTML page with an Applet?

Posted on 2001-06-07
2
185 Views
Last Modified: 2010-05-18
Hello!

HOWTO set a value to an invisible input text of a HTML page with an Applet?

thanks
0
Comment
Question by:jussara
  • 2
2 Comments
 

Accepted Solution

by:
smileyxx earned 30 total points
ID: 6165807
In Netscape, you may use Java to JavaScript communication.

For example, in the applet

import netscape.javascript.*;

public void setValue(String value) {
 JSObject win = JSObject.getWindow(this);
 win.eva("document.FormName.HiddenFieldName.value="+value);
}

and in the html,

<form name=FormName>
  <applet ... MAYSCRIPT><!-- mayscript is necessary -->
   <input type=hidden name=HiddenFieldName>
</form>
0
 

Expert Comment

by:smileyxx
ID: 6165901
This will also work in Internet Explorer 4 and above.
All your applet needs is the JSObject class, which you can extract from the java40.jar file distributed with Netscape.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

757 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

23 Experts available now in Live!

Get 1:1 Help Now