Welcome Guest Search | Active Topics | Sign In | Register

QueueScriptCall --> QueueScriptTask Options
Paul Joyce
Posted: Thursday, March 14, 2024 11:11:34 PM
Rank: Newbie
Groups: Member

Joined: 1/21/2015
Posts: 4
hi,
we had some code that was built with EO 2022.2.49, and was calling WebView.QueueScriptCall and friends.
when we upgrade to latest EO, this code doesn't compile. we can see all these seem to have been renamed QueueScriptTask etc, but we can't find anything in the changelog or doco to explain if there is a difference.
also, confusingly, the doco https://www.essentialobjects.com/doc/webbrowser/advanced/js.html#async still has QueueScriptCall in the text, but it links to QueueScriptTask API reference.
can you please clarify that the methods are the same and just renamed?
and please update the doco to use all the new names.
thanks
eo_support
Posted: Friday, March 15, 2024 9:58:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

I apologize for the conversion. Yes. This was a simple rename so that it can be more consistent with the aysnc programming model.

Thanks!
Paul Joyce
Posted: Monday, March 18, 2024 8:12:57 PM
Rank: Newbie
Groups: Member

Joined: 1/21/2015
Posts: 4
no problem, thanks for quick clarification.
the example on https://www.essentialobjects.com/doc/webbrowser/advanced/js.html#async has been updated, but the text still has the old names.
Quote:

If you need to execute JavaScript code during any of the above moments, you can use QueueScriptCall. This function will execute the JavaScript code immediately if it can. If it can not due to any of the above conditions, it will execute the JavaScript code later as soon as those conditions clear. After the script has been executed, it will raise ScriptCallDone event. The result value of the script code is stored in ScriptCall.Result property.


and

Quote:

As demonstrated above, both synchronous and asynchronous JavaScript call returns the result value to you. For synchronous calls, the result value is returned to you directly as the return value of the WebView.EvalScript function. For asynchronous calls, the result value is in ScriptCall.Result. The value can be a simple value such as a number or string, or complex value such as a JavaScript object or function.
eo_support
Posted: Monday, March 18, 2024 9:59:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for pointing those out. These will be updated in our next build.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.