Hello All
I am experimenting with the new revBrowserOpenCef command and specially with
the command
revBrowserAddJavaScriptHandler to trigger a LiveCode script from a webpage.
There is not much info on this online !
I tried all the examples I could find but nothing works so far with LiveCode
JavaScript. To make a LiveCode handler visible to JavaScript, use the
revBrowserAddJavaScriptHandler
command, and to remove it use the revBrowserRemoveJavaScriptHandler command.
LiveCode handlers are
added as functions with the same name attached to a global 'liveCode' object.
When called
the
revBrowserAddJavaScriptHandler
command, and to remove it use the revBrowserRemoveJavaScriptHandler
command. LiveCode handlers are
added as functions with the same name attached to a global 'liveCode'
object. When called, these functions
will result in the corresponding LiveCode handler
Date: Wed, 17 Dec 2014 09:59:13 -0700
Subject: Re: revBrowserAddJavaScriptHandler
From: bonnm...@gmail.com
To: use-livecode@lists.runrev.com
You might look here: http://summerschool.livecode.com/index.php/sneak-peek
theres a very simple, straightforward example a little ways down
.
On Wed, Dec 17, 2014 at 10:26 AM, John Dixon dixo...@hotmail.co.uk wrote:
Date: Wed, 17 Dec 2014 09:59:13 -0700
Subject: Re: revBrowserAddJavaScriptHandler
From: bonnm...@gmail.com
To: use-livecode@lists.runrev.com
You might look here:
http://summerschool.livecode.com/index.php/sneak
that in Windows as
well. Otherwise it’s a Mac Only feature.
Bob S
On Dec 17, 2014, at 09:26 , John Dixon dixo...@hotmail.co.uk wrote:
Date: Wed, 17 Dec 2014 09:59:13 -0700
Subject: Re: revBrowserAddJavaScriptHandler
From: bonnm...@gmail.com
To: use-livecode@lists.runrev.com
You
as well. Otherwise it’s a Mac Only feature.
Bob S
On Dec 17, 2014, at 09:26 , John Dixon dixo...@hotmail.co.uk wrote:
Date: Wed, 17 Dec 2014 09:59:13 -0700
Subject: Re: revBrowserAddJavaScriptHandler
From: bonnm...@gmail.com
To: use-livecode@lists.runrev.com
You might look here