I have an operation on one of my projects that takes a few seconds to complete. I'm trying to use dojox/widget/Standby to overlay a standby image, but it doesn't work. I had it working on another project, and I'm implementing it the same way, but for some reason, I don't get the same behavior.
I also tried to put up a small dijit/Dialog with a "Please Wait" message, but that doesn't show up. I only get flash once the operation is complete. I think I'm running into an asynchronous process timing issue, but I can't get around that using dojo/Deferred.
What I'm doing, in a nutshell:
1) show the dijit/Dialog using the show command
2) call my subfunction to do my operation and use .then to wait for the process to finish. I call dojo/Deferred in the subfunction, resolve it when complete, and return the promise as the last line in the function.
3) once it finishes, the .then kicks in and I hide the dialog
However, like I said, I never see the dialog, only a flash after the function is complete. Any ideas? I'll post some code if someone requests it.
Thanks,
Harry
--
Dojo Toolkit:
http://dojotoolkit.org/Tutorials:
http://dojotoolkit.org/documentation/[hidden email]
To unsubscribe, visit:
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest