EvalJavaScriptWithArguments |
Type | handler |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | EvalJavaScriptWithArguments(<pScript>,<pArgs>)
|
Associations | com.livecode.emscripten |
Summary | Evaluate JavaScript code within the browser with arguments
|
Parameters | Name | Type | Description |
---|
pScript | | The script to evaluate
|
pArgs | | The list of arguments to pass to the script
|
|
Example | variable mButton as JSObject
public handler SetButtonText(in pText as String)
EvalJavaScriptWithArguments("arguments[0].innerHTML = arguments[1]", [mButton, pText])
end handler
|
Values | Name | Type | Description |
---|
return | | A value of any type
|
|
Description | Use EvalJavaScriptWithArguments to get the result of running a block of JavaScript code, where you need to pass values to the script.
|