S
samuelberthelot
Hi,
I have the following code that shows up a div with an animated gif
inside, executes a cpu intensive function using setTimeout and then
hide the div again:
getEl('divWaiting').style.display = 'block';
window.setTimeout(function(){me.FM.addFlagPopBox(me);
getEl('divWaiting').style.display = 'none';}, 1000);
issue is that the animated gif will stop as soon as the function in
setTimeout starts. How can I solve this ?
Thanks
ps: me is a global variable that refers to this object.
I have the following code that shows up a div with an animated gif
inside, executes a cpu intensive function using setTimeout and then
hide the div again:
getEl('divWaiting').style.display = 'block';
window.setTimeout(function(){me.FM.addFlagPopBox(me);
getEl('divWaiting').style.display = 'none';}, 1000);
issue is that the animated gif will stop as soon as the function in
setTimeout starts. How can I solve this ?
Thanks
ps: me is a global variable that refers to this object.