Randy Webb <hikksnotathome@aol.com> writes:
[color=blue]
> Ask in comp.lang.java
> java != javascript[/color]
I think the original poster knows that well enough, when he wants to
call a Javascript function from inside the applet.
That said, I think the solution will be in Java, so asking in a Java
group could be better.
Netscape's solution for Javascript/Java interaction is called
LiveConnect (the original name for JavaScript was LiveScript, and I
don't think it is a coincidence).
<URL:
http://developer.netscape.com/docs/t...#Communicating with JavaScript from>
So, to call the Javascript alert function, do:
JSObject window = netscape.javascript.JSObject.getWindow();
window.call("alert",new Object[]{"Test"});
I don't know if it will work in IE, or with the MS-"JVM".
[color=blue][color=green]
>> * What would be a good messaging system among some Applets inside the
>> same page?[/color][/color]
I don't know if there is anything better, but you can use LiveConnect,
if permissions on the browser allows it.
/L
--
Lasse Reichstein Nielsen -
lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'