Popup hide/sqow in same event

hi ll,

I try to show a temporary popup during long process

in the same event, i want to show it, have a long calculation javascript process, then hide it.

I tried, with no success

https://snippet.dhtmlx.com/g68viyk0

I must miss something

Please, try to use:
https://snippet.dhtmlx.com/ct4js997

Hi sematik,

It’s not ok, i use sleep to simulate long process in javascript (so dont use the setTimeout function, it’s not the goal)

consider the updated snippet using promise

https://snippet.dhtmlx.com/hp4dq0o8

this don’t work, it hide first and then show

do you have an idea ? thx

For those who need it,
solved by using event “afterShow” and dhx.awaitRedraw

https://snippet.dhtmlx.com/a8crin4e

1 Like