Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi all i'm new here but how to make an socket connection with a script

    Hi

    i want to make an socket sonnection witch 192.168.0.2:8081 and send a string to it how to do this with a javascript

    <HEAD>
    <TITLE>Go! Menu</TITLE>
    </HEAD>

    <BODY BGCOLOR="#FFFFFF">

    <SCRIPT LANGUAGE="JavaScript1.2" ID="Ex8">
    <!--

    function go_to_station(){

    //HERE I WANT TO MAKE AN SOCKET CONNECTION AND SEND AN STRING CAN SOMEONE HELP ME WITH THAT PLZ

    return true;
    }

    //-->
    </script>

    </head>
    <form name="stationform">
    <p align="left">
    &nbsp;You need to log in! Enter password!<center>
    <p>
    <input name="stationtext" size="35" maxlength="35" style="float: left"><input type="button" name="stationbutton" value="Login" onClick="go_to_station()" style="float: left"></form>
    <p>&nbsp;</p>

    tnx greetings heddock

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you mean as in a FTP Program socket connection?

    if so then no you can't do that in javascript, i would suggest using a server-side language.

    And if thats not what you mean i would still suggest using a server-side langauge hehe
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •