You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Celinio Fernandes <ce...@yahoo.com> on 2009/12/29 19:48:03 UTC

[Struts 2.1.8] Timer with Dojo tag

Hi,
I am using a timer with the Dojo tag <sx:div>. It works well. The only "problem" is that when i use a timer then the content does not load immediately the first time i load the page. It loads after 5 seconds only, which is the frequence of reloading.
How do i load the content of the <div> tag immediately (when the page loads for the first time) ?

<sx:div id="articles" href="%{descrsUrl}" loadingText="Loading ..." listenTopics="/refresh"  
               showLoadingText="true" 
               updateFreq="5000" highlightColor="red" startTimerListenTopics="/startTimer" stopTimerListenTopics="/stopTimer"                            
            />