revBrowserCallScript?
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jul 22 08:54:58 EDT 2010
Scott,
I had a similar problem the other day. I had to force RunRev to parse
the result into a string by adding single quotes. As Andre mentioned
already, adding parentheses might help too.
get revBrowserCallScript(sBrowserId, "result = testMe()+''")
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce
On 22 jul 2010, at 13:29, Scott Rossi 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
More information about the use-livecode
mailing list