way to listen to port 127.0.0.1
Bill Marriott
wjm at wjm.org
Sat Apr 26 02:56:39 EDT 2008
127.0.01 isn't a port, it's an "IP Address" for the local machine. The port
for web page interaction would be 80 (or 88, 8008, or something else)
depending on how the machine and remote website are set up.
If it's true that you will be in a kiosk environment, you can force people
to go through the embedded web browser in Rev. This gives you the
opportunity to catch data the way you'd like. Check out the documentation
for browserBeforeNavigate and revBrowserGet commands. I don't know if those
will do what you want "out of the box" but you certainly can analyze the
HTML code (and therefore the JavaScript code) to look for specific
operations/urls you want to monitor and either simulate them or rewrite them
before display to users so they do what you want.
>I have a need to write a little "listener app" that lurks in the
>background, waiting for the user to do something on a webpage in a browser,
>like Safari. When a javascript routine on the web-page gets called, I need
>my Rev app to receive a few strings of text from the browser.
>
> The only way I can think to do that is to somehow pass data through port
> 127.0.0.1 and have Rev waiting patiently to receive that data. I'm just
> not sure how to go about sniffing for data from that port. Has anyone
> done that type of thing before that could share some code.
>
> Note that this is for a kiosk environment where I have full control over
> the hardware and software. This is for a Mac.
More information about the use-livecode
mailing list