473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sockets and Javascript

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

Jun 10 '06 #1
5 1707
j_********@yahoo.com wrote:
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

Well, I could give you a javascript tag
that would allow you to interact with most any socket based resource
no matter it's domain , but it would cost at least some monthly fee, and
a development charge depending on the nature of the socket relay.

If it was something we could sell to others , you could even make a kickback
Jun 10 '06 #2
Hi,

j_********@yahoo.com wrote:
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/myjavascri...102/index.html
and
http://www.galasoft-lb.ch/myjavascri...130/index.html

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 10 '06 #3
What do you mean by a Javascript tag? Is it a DLL or a java applet?

drclue wrote:
j_********@yahoo.com wrote:
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

Well, I could give you a javascript tag
that would allow you to interact with most any socket based resource
no matter it's domain , but it would cost at least some monthly fee, and
a development charge depending on the nature of the socket relay.

If it was something we could sell to others , you could even make a kickback


Jun 11 '06 #4
Hi Laurent, I will look at the code. Thanks for sharing it.

Laurent Bugnion wrote:
Hi,

j_********@yahoo.com wrote:
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/myjavascri...102/index.html
and
http://www.galasoft-lb.ch/myjavascri...130/index.html

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


Jun 11 '06 #5
j_********@yahoo.com wrote:
What do you mean by a Javascript tag? Is it a DLL or a java applet?

Actually neither. It's just a <script> tag that provides access to
databases , WSDL, REST, shared Javascripts and other services in a
fashion much akin to how googlemaps works

Basically what happens is that I and others on my team
write all the complicated server side code and make it available
as web 2.0 type resources that can have ongoing conversations with
our servers without reloading your page and without you needing to know
the ins and outs of the technologies involved.


drclue wrote:
j_********@yahoo.com wrote:
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


Well, I could give you a javascript tag
that would allow you to interact with most any socket based resource
no matter it's domain , but it would cost at least some monthly fee, and
a development charge depending on the nature of the socket relay.

If it was something we could sell to others , you could even make a kickback

Jun 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tero Saarni | last post by:
Hi, I have several threads communicating with each other using events stored in Queues. Threads block on Queue.get() until somebody publishes an event in thread's event queue. I need to add...
1
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and establishes itself on port 9900. It then polls for...
0
by: mrpolitics | last post by:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd) and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up...
4
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
3
by: Michael Maercker | last post by:
hi! i'm really not into networking at all and have now been asigned the task of porting a vb6-code into vb.net (compact framework, in this case) and the code uses the winsock-control. i quickly...
3
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
5
by: PJ6 | last post by:
I can't figure this out. I have several references to style sheets and javascript files in my page header, the contents of which are served dynamically by my httphandler that serves *.res requests....
7
by: Adam01 | last post by:
Im using cygwin to test the code of a server I am writing. I've included sys/types.h, sys/socket.h, netdb.h, and arpa/inet.h. And this is the output.. ../../../sockets.cpp: In constructor...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.