Page tree
Skip to end of metadata
Go to start of metadata

  

Introduced in

Version:19.1.0

Description

Description:Calls a JavaScript function, passing JSON-encoded data on a HTML UI, loaded by a control of type CT_WEBVIEW.

Syntax

Syntax:

ctrl ctrlWebViewFunc [functionName, data]

Parameters:
  • ctrl: Control - Control that loads the HTML UI, has to be of type CT_WEBVIEW.
  • functionName: String - Name of the JavaScript function to call. Receives JSON-encoded data as an argument.
  • data: Any Value - Any SQF data (for instance, an Array) that is passed to the JavaScript function call, encoded in JSON.
Return Value:Nothing

Examples

Examples:
_control ctrlWebViewFunc ["addEntry", [["name", "MyEntry"], ["description", "some text"]]]

Additional Information

See also:
Multiplayer:Works only on a local client.
Problems:

Notes 

...