Sockets and Javascript

J

j_macaroni

I know Javascript has no methods to directly open sockets. Since that
is not possible, I was wondering if anyone knows of a Java applet
somewhere that does this that can can be instantiated in JS. This would
be running on a Windows client under IE or Firefox.

Thanks
 
L

Laurent Bugnion

Hi,

I know Javascript has no methods to directly open sockets. Since that
is not possible, I was wondering if anyone knows of a Java applet
somewhere that does this that can can be instantiated in JS. This would
be running on a Windows client under IE or Firefox.

Thanks

This page has information about LiveConnect, which is the technology
allowing JavaScript to control a Java applet. A few years ago, I used
"invisible" applets (Java applets with 1x1 pixel size, and with the same
background color as the page) to do special work that JavaScript
couldn't do. JavaScript was used to control the applets and to handle
the results.

It's a bit outdated but the code still works.

http://www.galasoft-lb.ch/myjavascript/consulting/LiveConnect102/index.html
and
http://www.galasoft-lb.ch/myjavascript/consulting/LiveConnect130/index.html

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top