0

Sending immediate message to client

asked 2006-03-05 22:54:04 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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!

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-03-06 00:05:12 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-03-05 22:54:04 +0800

Seen: 533 times

Last updated: Mar 06 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More