How to create socket (connect to host) in javascript

M

Moonlit

Hi,

I wondered is it possible to connect to a host from javascript. I know how
to do (and have done) it from java, however I would like to create an
application with only javascript, that would be able to communicate with a
server (the same server the script and html pages reside on).

I spend some hours searching the net and dejanews but couldn't find an
answer (unfortunately javascript connect -database etc. are not very
selecting terms).

Any help greatly appreciated.

Regards, Ron AF Greve
 
J

Janwillem Borleffs

Moonlit said:
Hi,

I wondered is it possible to connect to a host from javascript. I know how
to do (and have done) it from java, however I would like to create an
application with only javascript, that would be able to communicate with a
server (the same server the script and html pages reside on).

Read the faq: http://jibbering.com/2002/4/httprequest.html


JW
 

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
474,147
Messages
2,570,833
Members
47,378
Latest member
BlakeLig

Latest Threads

Top