Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Javascript -> Applet communication

Thread view: 
decoy@system102.com - 28 Dec 2005 10:30 GMT
Hi all,
 Does anyone know whether it's possible for Java (signed) applets to
call javascript functions and for javascript to call public methods in
the applet code.  I know that the latter is possible, but how do you
send parameters to Java (since the types are different).  E.g I have a
public method on the applet called setValue(String val) and I want to
call it from within my javascript.

I'd rather do it without 3rd party libraries ( for free :) if possible.

Many thanks for the help.

Stu.
Andrew Thompson - 28 Dec 2005 10:53 GMT
> ...E.g I have a
> public method on the applet called setValue(String val) and I want to
> call it from within my javascript.

Sure.  Check Real's HowTo* for lots of examples of applet/JS
and JS/applet interaction.

* <http://www.rgagnon.com/howto.html>

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

decoy@system102.com - 28 Dec 2005 18:34 GMT
Thanks for the link, problem solved!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.