43
Views
1
Comments
JavaScript versus Notify issue

Dear all,


I a web-application I'm using a popup screen to draw something on a canvas.

When done I use javascript to set the canvas-content into a local variable by using a hidden inputfield.
That works great. But after that the notify sends the variable back to the parent screen.

Now the problem. The Javascript it to slow for the notify, so when the notify is executed, the variable is still empty.

Is there a way to delay, sleep, wait, until the javascript is finished?

When i use Resolve() i get ReferenceError: $resolve is not defined

2019-05-22 11-30-09
Marcelo Ferreira

Hi Jeroen,

Can't you have a button (that is hidden) click at the end of that js and only notify on the action that button calls?

Regards,

Marcelo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.