user800014
user800014

Reputation:

Is there some equivalent to setInterval in the ZK server structure?

I'm trying to make a process that will refresh my Chart from time to time. In Javascript the answer comes in my mind: setInterval() + ajax call. How can I do this with ZK?

I looked at the Client Side Programming but didn't find anything that solves this requirement.

In the Server Side, it seems that I can fire events with Events.echoEvent(), doing this repeatdly have any downside?

Upvotes: 2

Views: 127

Answers (1)

Nabil A.
Nabil A.

Reputation: 3400

All you need is the Timer component. It fires events after a specified delay.

Upvotes: 4

Related Questions