This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Accessing applet string from javascript

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to check for whether or not applet scripting is enabled in a user's browser. I can check for javascript being enabled and Java being enabled, but I do not seem to be able to reliably verify that the ability to script an applet is enabled. My Java is a bit rusty, but I have an applet (see below) that displays the word "Enabled" in the browser. I want to access that string in the applet from the browser using JavaScript to verify that scripting is enabled, but I can't seem to access the currStatus string from the applet. Any suggestions?
-Gary
Here are the relevant code snippets...
Java applet:

ASP page code:
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gary,
There are a couple classes within the netscape.javascript package that allow an applet to talk to javascript and vice versa. Take a look at this thread for some more information.
I hope that helps,
Corey
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there, you can change properties with the applet rather easily, look at this post and see if this will help you
https://coderanch.com/t/113648/HTML-JavaScript/set-applet-ID-your-html
Eric
 
expectation is the root of all heartache - shakespeare. tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!