469,883 Members | 1,221 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,883 developers. It's quick & easy.

Applet - Javascript communication

Hi again. Thank you for previews answers.

I have another question.... How can I inform a Javascipt, that must
submit my Applet's data, that this same Applet has produced the data in
question?
Or in other words, is there any way to call a JavaScript junction within
the Applet? Is it the best way?
What do you suggest?

Thank you very much again,

Roberto Gallo.


Jul 20 '05 #1
3 2011

"Roberto Gallo" <ro***************@hotmail.com> wrote in message
news:bu**********@aracaju.ic.unicamp.br...
Hi again. Thank you for previews answers.

I have another question.... How can I inform a Javascipt, that must
submit my Applet's data, that this same Applet has produced the data in
question?
Or in other words, is there any way to call a JavaScript junction within the Applet? Is it the best way?
What do you suggest?

Thank you very much again,

Roberto Gallo.


Hello Robert,

You need a Netscape JAR file name java40.jar to compile the next code but
when running in a browser the referred classes are supplied by the
environment.

public Object callJS(String jsCode)
{
JSObject window = JSObject.getWindow(appletInstance);
window.eval(jsCode);
}

Regards,

Silvio Bierman
Jul 20 '05 #2

"Silvio Bierman" <sb******@idfix.nl> wrote in message
news:40*********************@news.xs4all.nl...

"Roberto Gallo" <ro***************@hotmail.com> wrote in message
news:bu**********@aracaju.ic.unicamp.br...
Hi again. Thank you for previews answers.

I have another question.... How can I inform a Javascipt, that must
submit my Applet's data, that this same Applet has produced the data in
question?
Or in other words, is there any way to call a JavaScript junction

within
the Applet? Is it the best way?
What do you suggest?

Thank you very much again,

Roberto Gallo.


Hello Robert,

You need a Netscape JAR file name java40.jar to compile the next code but
when running in a browser the referred classes are supplied by the
environment.

public Object callJS(String jsCode)
{
JSObject window = JSObject.getWindow(appletInstance);
window.eval(jsCode);
}

Regards,

Silvio Bierman


typo: the last statement should be

return window.eval(jsCode);
Jul 20 '05 #3
Thank you very much

"Silvio Bierman" <sb******@idfix.nl> wrote in message
news:40*********************@news.xs4all.nl...

"Silvio Bierman" <sb******@idfix.nl> wrote in message
news:40*********************@news.xs4all.nl...

"Roberto Gallo" <ro***************@hotmail.com> wrote in message
news:bu**********@aracaju.ic.unicamp.br...
Hi again. Thank you for previews answers.

I have another question.... How can I inform a Javascipt, that must submit my Applet's data, that this same Applet has produced the data in question?
Or in other words, is there any way to call a JavaScript junction

within
the Applet? Is it the best way?
What do you suggest?

Thank you very much again,

Roberto Gallo.


Hello Robert,

You need a Netscape JAR file name java40.jar to compile the next code but when running in a browser the referred classes are supplied by the
environment.

public Object callJS(String jsCode)
{
JSObject window = JSObject.getWindow(appletInstance);
window.eval(jsCode);
}

Regards,

Silvio Bierman


typo: the last statement should be

return window.eval(jsCode);

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by George Hester | last post: by
2 posts views Thread by decoy | last post: by
4 posts views Thread by rajesh | last post: by
reply views Thread by ankur | last post: by
1 post views Thread by 418928 | last post: by
2 posts views Thread by Richard Maher | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.