rajs1
10-23-2004, 10:06 AM
I wonder if there is any way by which I can make the LzTimer repeat the delegate call after a set interval of time (for ever).
For example
LzTimer.addTimer( this.fadeDelegate, 3000 );
<method name="fadeText">
this.myText.animate( "opacity", 0.0, 1000 );
</method>
Seems to call fadeText just once.
I my case, I need to poll a servlet and receive XML data, say every 60 seconds, and update a corresponding grid.
I have done a search across all forums and there is not much to go on. Also the Reference for LzTimer does not suggest the availability of a repeat tag.
It does offer a restTimer but I do not know how to use that and if it would do the job.
Thanks.
Cheers
-raj
For example
LzTimer.addTimer( this.fadeDelegate, 3000 );
<method name="fadeText">
this.myText.animate( "opacity", 0.0, 1000 );
</method>
Seems to call fadeText just once.
I my case, I need to poll a servlet and receive XML data, say every 60 seconds, and update a corresponding grid.
I have done a search across all forums and there is not much to go on. Also the Reference for LzTimer does not suggest the availability of a repeat tag.
It does offer a restTimer but I do not know how to use that and if it would do the job.
Thanks.
Cheers
-raj