revBrowserCallScript?

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


Scott,

Try something along the lines of:

get revBrowserCallScript(sBrowserId, "testMe()")

or

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.

Andre

On Thu, Jul 22, 2010 at 8:29 AM, Scott Rossi <scott at tactilemedia.com> 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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the Use-livecode mailing list