revBrowserCallScript?

Scott Rossi scott at tactilemedia.com
Thu Jul 22 12:44:36 EDT 2010


Recently, Andre Garzia wrote:

> 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.

Thanks for the suggestion Andre, but parentheses were the first thing I
tried and they made no difference.  Maybe the docs are wrong, but they say
the second item used in the function call is the function name and any
parameters for the function follow:

revBrowserCallScript(instanceId, functionName [, parameter1, parameter2,
..., parameterN ])

Parameters
The instanceId is the integer identifier of a browser object
The functionName is the name of the web script function to call
The parameters parameter1  through to parameterN  contain the arguments to
pass to the function (optional).

Examples: 
get revBrowserCallScript(sBrowserId, "swapImages")
get revBrowserCallscript(sBrowserId, "displayTable", tHeader, tFooter)


Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design





More information about the use-livecode mailing list