By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,309 Members | 2,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,309 IT Pros & Developers. It's quick & easy.

Wanted: Javascript Telnet client

P: n/a
Has anyone ever built a JavaScript Telnet client?

What about a JavaScript SSH client?
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Tim Tyler <ti*@tt1lock.org> writes:
Has anyone ever built a JavaScript Telnet client?
Can't be done. Javascript does not have the ability to make pure TCP/IP
connections. It can make HTTP-requests, but that is it.
You might be able to use prorpietary features of some browsers to access
non-javascript functions, but it will not work in other browsers.
What about a JavaScript SSH client?


Ditto.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a


Tim Tyler wrote:
Has anyone ever built a JavaScript Telnet client?


Well, Mozilla has Chatzilla, an IRC client which is built with XUL and
JavaScript as far as I know, but of course it is part of the Mozilla
application and as such has capabilities far beyond those JavaScript in
a HTML page loaded via HTTP in a browser has.
Thus as part of Mozilla it might be possible to build a telnet client
(using XUL for the interfaces and JavaScript and XPCOM to implement the
protocol) but with JavaScript in a HTML page loaded in a browser via
HTTP I think there is no browser exposing any APIs for that.
As for Mozilla see
http://bugzilla.mozilla.org/show_bug.cgi?id=94344
someone had that wish long ago

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3

P: n/a
Lasse Reichstein Nielsen <lr*@hotpop.com> wrote or quoted:
Tim Tyler <ti*@tt1lock.org> writes:

Has anyone ever built a JavaScript Telnet client?


Can't be done. Javascript does not have the ability to make pure TCP/IP
connections. It can make HTTP-requests, but that is it.


Thanks. However this doesn't quite seem like the end of the world.

There seem to me to be at least two possibilities for farming out the
connection to another technology.

* You could perform the telnet connection from the server - and talk to
the Javascript client solely via HTTP - i.e. use "telnet-over-http"
or "tunneling ssh";

* You could use a tiny Java applet to perform the connections.

The second solution probably has few advantages over using a Java
applet to do the whole job.

However, the first solution seems theoretically possible.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 20 '05 #4

P: n/a
On Sun, 29 Feb 2004 09:41:45 GMT, Tim Tyler <ti*@tt1lock.org> wrote:
Lasse Reichstein Nielsen <lr*@hotpop.com> wrote or quoted:
Tim Tyler <ti*@tt1lock.org> writes:
> Has anyone ever built a JavaScript Telnet client?


Can't be done. Javascript does not have the ability to make pure TCP/IP
connections. It can make HTTP-requests, but that is it.


[snip]
* You could use a tiny Java applet to perform the connections.


If I recall correctly, in most environments, Java applets are restricted
to making connections to machine that they were served from. If you intend
to telnet to arbitrary addresses, you might run into security-based
problems.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.