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

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?