Hi David,
DavidNorep said:
I want that when the visitor in my website clicks on a particular
button - text will be sent to a certain port at a certain IP, which is
not the web server.
Is Java the only technology to do this (except Microsoft technologies,
which I am not familiar with)?
If yes - must I have an applet, even though the Java code does not
need a GUI? I assume that the applet may be invisible.
I understand that the applet will face security obstacles in both
sides, and that it should be signed. Does it cost money to have a
signed applet?
Not completely sure what everyone else is going on about in the thread (or
I've probably completely misunderstood your question) but my answer to you
is "The Java option works, and is straight-forward to implement".
If your Applet connects back to the same server as the codebase (as
specified in the <object> tag) then is does not need to be signed. Just
stick the JAR file on whatever server you want to connect back to. If it's
run-time determination of the target IP address that you're after, then
you're on your own
So as not to interfere with the format of the web-page that is hosting *my*
Applet, I pop-up seperate modal dialog boxes when I wish to interact with
the User. (Username/Password and then a Welcome panel) For security, I keep
the network connection up only while the hosting page (this includes all
sub-pages in sub-Frames) is displayed.
With the Microsoft/Eolas dispute (some?) Applets on IE result in the "Click
to activate and use this control" message, but I think what SUN refers to as
blind-applets (what we both wish to use) do not suffer from this
restriction. (And there are several published solutions/work-arounds for
this anyway)
Now, if whatever it is your hosting, on this "certain port and certain IP"
is not a web server then I have no idea why anyone would recommend going the
AJAX route. When will people start thinking outside the box on this one? If
you want to send HTML pages with embedded images/objects then HTTP is
absolutely the mut's nuts! As an application-middleware protocol it is a
complete pile of pooh! I suppose the sad fact is that "a.n.other
mono-lingual Web-Server" is the *only* application-server available on most
architectures :-(
Cheers Richard Maher
PS. I love the Java Applet approach primarily 'cos of it's cross-platform
appeal and 'cos you don't have to have things signed to achieve my aims, but
I am also interest in the .NET solution. Can anyone point to good web-site
for converting a Java Applet into a .NET compatible, browser resident,
ActiveX Socket calling "thingy"? In other words, I want to do a Socket and
Connect back to a server using whatever Microsoft's solution is; can someone
please point me to an example? (I know it's the wrong group but I'm sure
someone here must know)