EvaluateJavascriptFinished
PowerScript event
Description
Occurs after the EvaluateJavascriptAsync
function is executed.
Event ID
|
Event ID |
Objects |
|---|---|
|
None |
WebBrowser controls |
Arguments
|
Argument |
Description |
|---|---|
|
result |
The result of script execution. The execution result |
|
error |
The error information if an error occurs during |
Return Values
None
Examples
The following example shows that the EvaluateJavascriptFinished
event parses the JavaScript execution result via the JSONParser
object:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
//Event EvaluateJavascriptFinished JsonParser lnv_JsonParser Long ll_RootObject String ls_Type If Len(Result) > 0 Then lnv_JsonParser = Create JsonParser lnv_JsonParser.LoadString(result) ll_RootObject = lnv_JsonParser.GetRootItem() ls_Type = lnv_JsonParser.GetItemString(ll_RootObject, "type") If IsValid(lnv_JsonParser) Then Destroy (lnv_JsonParser) End If |
See also