![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 1 of 1 total |
![]() |
Fri, Dec 11 2020 12:01 PM | Permanent Link |
erickengelke | This is a complex JavaScript question.
First, the eye candy. I made this example which tracks faces in EWB, but I had to resort to writing about 5 lines in pure JavaScript to do it. https://www.eng.uwaterloo.ca/~erick/ewb/faces/faces.html Now here's the question. I've done a lot with JavaScript promises in EWB. usually promise(xxx,yyy).then( execthis ) and that works great. But I've run into an increasing number of libraries that require async/await JavaScript extensions. And I don't see any way to use them from EWB except by writing a short JavaScript TScript file that calls await in an async function. One such example is TensorFlow libraries for Aritificial Intelligence which I used in the above. The probem is knowing when a promise is completed. If I could poll for it, that would be acceptable. But I dont think JavaScript allows that. Is there any way to handle async/await situations without actually using asycn/await? Thanks Erick EWB Programming Books and Component Library http://www.erickengelke.com |
This web page was last updated on Friday, March 17, 2023 at 10:08 PM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |