ExecuteScriptResult
class cAlgo.API
DesktopCLICloud
The result of JavaScript execution on a WebView control.
Definition
public class ExecuteScriptResult
Namespace: cAlgo.API · Group: Controls
Examples
var webView = new WebView();
webView.Loaded += args => webView.NavigateToStringAsync("<html><body>Hello</body></html>");
webView.NavigationCompleted += args =>
{
var result = webView.ExecuteScript("document.body.innerText");
Print("Successful: {0}, JSON: {1}", result.IsSuccessful, result.Json);
};
Chart.AddControl(webView);
webView = WebView()
webView.Loaded += lambda args: webView.NavigateToStringAsync("<html><body>Hello</body></html>")
webView.NavigationCompleted += lambda args: api.Print(webView.ExecuteScript("document.body.innerText").Json)
api.Chart.AddControl(webView)
Constructors
| Name | Description |
|---|---|
| ExecuteScriptResultDesktopCLICloud | Initializes a new instance of ExecuteScriptResult |
Properties
| Name | Description |
|---|---|
IsSuccessfulDesktopCLICloudbool | True if JavaScript execution was successful otherwise false |
JsonDesktopCLICloudstring | Returned JSON result of execution. |