Wanted: Javascript Telnet client

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Tyler

    Wanted: Javascript Telnet client

    Has anyone ever built a JavaScript Telnet client?

    What about a JavaScript SSH client?
    --
    __________
    |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
  • Lasse Reichstein Nielsen

    #2
    Re: Wanted: Javascript Telnet client

    Tim Tyler <tim@tt1lock.or g> writes:
    [color=blue]
    > Has anyone ever built a JavaScript Telnet client?[/color]

    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.
    [color=blue]
    > What about a JavaScript SSH client?[/color]

    Ditto.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Martin Honnen

      #3
      Re: Wanted: Javascript Telnet client



      Tim Tyler wrote:
      [color=blue]
      > Has anyone ever built a JavaScript Telnet client?[/color]

      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
      RESOLVED (nobody) in SeaMonkey - UI Design. Last updated 2014-04-26.

      someone had that wish long ago

      --

      Martin Honnen


      Comment

      • Tim Tyler

        #4
        Re: Wanted: Javascript Telnet client

        Lasse Reichstein Nielsen <lrn@hotpop.com > wrote or quoted:[color=blue]
        > Tim Tyler <tim@tt1lock.or g> writes:[/color]
        [color=blue][color=green]
        > > Has anyone ever built a JavaScript Telnet client?[/color]
        >
        > 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.[/color]

        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/ tim@tt1lock.org Remove lock to reply.

        Comment

        • Michael Winter

          #5
          Re: Wanted: Javascript Telnet client

          On Sun, 29 Feb 2004 09:41:45 GMT, Tim Tyler <tim@tt1lock.or g> wrote:
          [color=blue]
          > Lasse Reichstein Nielsen <lrn@hotpop.com > wrote or quoted:[color=green]
          >> Tim Tyler <tim@tt1lock.or g> writes:[/color]
          >[color=green][color=darkred]
          >> > Has anyone ever built a JavaScript Telnet client?[/color]
          >>
          >> 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.[/color][/color]

          [snip]
          [color=blue]
          > * You could use a tiny Java applet to perform the connections.[/color]

          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.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

          Comment

          Working...