Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Applet - Javascript communication

Reply
Thread Tools

Applet - Javascript communication

 
 
Roberto Gallo
Guest
Posts: n/a
 
      01-16-2004
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.




 
Reply With Quote
 
 
 
 
Silvio Bierman
Guest
Posts: n/a
 
      01-17-2004

"Roberto Gallo" <> wrote in message
news:bu9fit$h4g$...
> 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


 
Reply With Quote
 
 
 
 
Silvio Bierman
Guest
Posts: n/a
 
      01-17-2004

"Silvio Bierman" <> wrote in message
news:4008a4da$0$324$...
>
> "Roberto Gallo" <> wrote in message
> news:bu9fit$h4g$...
> > 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);


 
Reply With Quote
 
Roberto Gallo
Guest
Posts: n/a
 
      01-18-2004
Thank you very much

"Silvio Bierman" <> wrote in message
news:40098227$0$320$...
>
> "Silvio Bierman" <> wrote in message
> news:4008a4da$0$324$...
> >
> > "Roberto Gallo" <> wrote in message
> > news:bu9fit$h4g$...
> > > 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);
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript -> Applet communication decoy@system102.com Java 2 12-28-2005 06:34 PM
Applet to Applet Communication Your Name Java 0 11-03-2003 04:33 PM
Applet to Javascript communication Paul Richards Java 0 09-25-2003 09:08 PM
Applet - server communication - edited code on the applet side - problem! Rune Andresen Java 2 09-17-2003 06:26 PM
applet to applet communication over lan Jade Java 3 08-14-2003 09:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57