-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3612192
By: tskale
In the code below, process() method takes some time to process data and eventually update components with the results.
To show user that system is working on the request, I would like to show a "Loading..." message before processing begins and then "Done" message when done processing.
what happens is that the "Loading..." message never appears. After few seconds(could be longer) the data appears with the message "Done".
Is there any way to get the UIEngine to send the request to paint "Loading..."
message immediately to client and not bundle it up with rest of the update?
If there is any other way to achieve the same result, please advise.
<button label="Search" >
<attribute name="onClick">
msgLabel.value="Loading...";
process();
msgLabel.value="Done";
</attribute>
</button>
Thanks!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3612249
By: fernando_deleon
You could overload the alert window when it gets created.
the alert window can have on its create execute the process..and when done u could change the message on the window to done all via your window subclass.
Asked: 2006-03-05 22:54:04 +0800
Seen: 533 times
Last updated: Mar 06 '06