Way for browser to talk to Rev?

Lynch, Jonathan BNZ2 at CDC.GOV
Tue Dec 28 11:59:40 EST 2004


Can javascript be used to send a message to a port? If so, the Rev app
could be set to listen to that port, and receive messages from the
browser.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Ken Ray
Sent: Tuesday, December 28, 2004 11:46 AM
To: Use Revolution List
Subject: Re: Way for browser to talk to Rev?

On 12/28/04 10:40 AM, "RGould8 at aol.com" <RGould8 at aol.com> wrote:

> I know that I can use Revolution to talk to Applescript to pass
> values/commands to IE and Safari via their "Do Applescript" calls, but
is
> there a method of
> going the other way?   (For instance, pressing a button on a web-page
which
> sends a Javascript call back to Revolution that can be picked up?)

Well, if you are using a "normal" browser, the only thing I can think of
is
to have the button in the web page call a CGI which stores some
information
and have a front-end Rev app query the CGI periodically to see if it is
received the "call" from the browser.

However, if you want to *embed* the browser into a Rev stack using
Chipp's
altBrowser, you could do this by creating a "fake" url to go to, which
altBrowser can trap and you can take action based on it.

There may be other ways, but those are the only ones I've thought of so
far.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list