How to freeze the UI? (using modal dialog?)
Hi everyone,
In my use case, the user action may take some time (about 10 seconds) and I want the UI to be freezed during that waiting time so that the user cannot do anything until the previous action finish.
One of the first solution I could think of is showing a kind of modal dialog which user cannot dismiss manually. The Alert Dialog is almost fit my use case but it must have at least one button which the user can dismiss by select that button. I have digged into the source code of the framework (dialogs.js) and found that it's impossible to prevent the user dismiss the dialog (or I miss something?)
So my question is:
Is there any way to create a modal dialog without any buttons? or
Is there any alternative approach to freeze the UI beside the modal dialog hack?
Many thanks in advance!
Tinh
by
4 Replies