473,395 Members | 1,823 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,395 software developers and data experts.

Connecting to a socket using javascript

Is there anyway to connect to a socket via javascript. Im writing an
application where IE on the client pc..needs to connect to a server and get
some information before forward to an action class for processing...I have
the following options..

applet, activeX..what other solution is there and what wooutl be the easiest
to do. If I go activeX using C# or vb.net i will have to worry about
configuring security on the clients workstations..

If i use an applet I also have to worry about the correct jre plugin
installed..

what can i use without worrying about too much about security..this is a web
application on the company intranet.

its a web app..built with struts/jsp/spring/javascript....and i need to do
some work on the client side first gathering information from another server
before passing it to my web server...

any ideas?

thanks
Feb 11 '06 #1
2 2162


I think you're describing Asynchronous js, so-called AJAX using the
XMLHttpRequest method for fetching data/files from servers without
having a page reserving. Check in google for it.

Danny
Feb 11 '06 #2
VK

Lans Redmond wrote:
its a web app..built with struts/jsp/spring/javascript....and i need to do
some work on the client side first gathering information from another server
before passing it to my web server...


In such case nothing can be done client-side withing the default
security settings. No matter what solution would you choose,
cross-domain communication is blocked.

If you cannot / don't want to change security settings for each
involved machine, then the only way is to be a hacker on your own
server.

Take any of existing content grabbers (Perl, PHP, ASP - whatever you
like) and install it on your server. Now to communicate over Ajax with
your own server you are using direct addressing as before. To
communicate with another server you are calling your content grabber,
grabber gets the data from other server and forwards it to the client
so formally it stays withing the same domain.

Very stupid and security-wise useless, but IXMLHTTPRequest /
XMLHttpRequest designers wanted it this way.

By the way: for Ajax I recommend <http://www.ajaxtoolbox.com>

Feb 11 '06 #3

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

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
0
by: christian_stengel | last post by:
Hi *, I have just started to learn python and I am having a problem with an python client connecting to a perl server using ssl (I tried this with pyOpenSSL and with the build in SSL Module). ...
2
by: Bruce Vander Werf | last post by:
I am developing a network client application (using the Socket class) that will need to make simultaneous TCP connections to many (100 or more) servers. In this case, which would be a better...
0
by: Usman | last post by:
Hi I'm having problem with a scenarion where I have a server written in C# and client written in VC6++. Here is the server code that i'm using including the Callback function for handling...
10
by: gasfusion | last post by:
For some reason my socket isn't doing anything when i try connect. I have the header file and the class provided below. Everything works except for the socket_connect() function. Also, i do not...
0
by: bishnu12 | last post by:
Hi all, There are two questions 1. I am trying to write a programme which can query to a modem get the modem details. i am using normal send() and recv() functions. But when i try to fetch a...
9
by: darthghandi | last post by:
I am trying to create a server application using asynchronous sockets. I run into a problem when I try to connect to my server using a non-.net program. I can establish the connection, and send...
0
by: =?Utf-8?B?QWxwZXIgQUtDQVlPWg==?= | last post by:
Hello, First of all I wish you a good day. My help request is about .NET asynchrounus socket communication. I have developed Server-Client Windows Forms .NET applications in VC++ .NET v2003. I...
1
by: ElvisRS | last post by:
Hi, I'm writing a simple udp client using sockets. My code looks like this: initServer2 = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.