HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2000, 03:29 AM
chestutr chestutr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 3 chestutr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I would like to put a telnet connection in a frame or in some way pass data to and from a browser. Is there a way that javascript can handle it? Thanks.

Reply With Quote
  #2  
Old October 9th, 2000, 05:06 AM
poggy poggy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: UK
Posts: 9 poggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to poggy
The only way I can think of to do this would be to use a Java Applet as the telnet session. Even then though I think you would have problems passing info to it from Javascript. There is no way (that I know of) of passing data to and from a browser. That would be a BIG security hole!

Look into using Java applets...


------------------
Mark Ogden
http://homepage.ntlworld.com/pogden

Reply With Quote
  #3  
Old October 13th, 2000, 01:22 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 56
It is possible, at some level, but not with mere Javascript. You would need some server-side scripting. Even so, it would be difficult to get the FULL functionality of telnet in a browser without an actual telnet client in Java.

It is more possible if you are interested in connecting only to one server, which has PHP or Perl. There are several existing PHP scripts which let users enter commands on the server, and view output. See http://gimpster.com/php/phpshell/index.php

Also, search the PHP forum for 'telnet'. In one thread, member 'freebsd' mentions a perl module that has more advanced funcitonality.

But yes, it's about the biggest security hole imaginable, and you can sometimes have unpredictable results. Be careful.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > How do you pass data to browser from telnet?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT