Way for browser to talk to Rev?

Ken Ray kray at sonsothunder.com
Tue Dec 28 11:45:46 EST 2004


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




More information about the use-livecode mailing list