Andre Garzia andre at
Thu Jul 22 08:49:52 EDT 2010


Try something along the lines of:

get revBrowserCallScript(sBrowserId, "testMe()")


get revBrowserCallScript(sBrowserId, "javascript:testMe();")

As far as I know, you can't invoke javascript functions without the
parenthesis. In that call of yours you are refering to a variable named
testMe and not the testMe() function.

Hope this helps.


On Thu, Jul 22, 2010 at 8:29 AM, Scott Rossi <scott at> wrote:

> Has anybody gotten the revBrowserCallScript function to work on OS X?
> No matter what I do, I seem to continually get errors when trying to use
> this function.  Even when doing a simple test function, Rev says an error
> occurred:
> card "videos": execution error at line n/a () near "-[WebUndefined
> cStringUsingEncoding:]: unrecognized selector sent to instance 0x19790990"
> -- Rev script
> get revBrowserCallScript(sBrowserId, "testMe")
> -- Javascript function on local test page
> function testMe() {
>   alert("got message");
> }
> The frustrating part of this is the alert message gets displayed as
> expected, and after clicking OK, Rev throws the error.
> Anyone have any suggestions to troubleshoot this?
> Thanks & Regards,
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

-- All We Do Is Code.

More information about the Use-livecode mailing list