djl
At 10:52 PM 1/27/03 +0000, you wrote:
Ok, I've stripped out my 'extra' bits for simplicity, so here goes...
I've got a stack with a single button 'Start' and a field 'tfld'.
In the start button the script is...
----------------------------------------------------
on mouseup
put "" into fld "tfld"
--kill any existing sockets (can be used for a stop button)
get the OpenSockets
repeat with c=1 to the number of lines in it
close socket (line c of it)
end repeat
--start to accept connections
accept connections on port 8181 with message "wRequest"
end mouseup
on wRequest skt
set the socketTimeoutInterval to 20000
read from socket skt for 1 line
put it into fld "tfld"
close socket skt
end wRequest
-----------------------------------------------------
I've then got a web page at http://www.garyrathbone.net/revclick.htm
Which consists of
-----------------------------------------------------
-----------------------------------------------------![]()
![]()
Click 'Start' on the stack. When the button (in this case an image) is
clicked on the web page the _javascript_ tries to load a 'fake' image from ip
127.0.0.1 on port 8181. This is the stack on your local machine. The stack
takes the 'request' in this case the string 'Hello World' (so you can
actually pass parameters) and puts it in the field "tfld" (Obviously you can
parse this etc....) The socket is then killed so the browser doesn't end up
waiting.
It's a bit of a cheat, but it works fine. It can be improved in just about
every direction possible, but I hope it provides a start.
Regards
Gary Rathbone
-----------------------------------------------------
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
|| Dave LeYanna ||
|| Director IS ||
|| Right to Life of Michigan ||
======================
