...

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



heddock
08-02-2002, 09:51 AM
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

ACJavascript
08-02-2002, 03:51 PM
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 :D:D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum