Hi Mite, I think you don' t need put t:id and id in the component only one is enough. But for you have sure if the problem is javascript or other thing. I recommend the firebug.
http://getfirebug.com/ 2010/8/13 Mite <mitemeis...@gmail.com> > > I have tried this approach: > > <script type="text/javascript"> > > function refreshZoneEvent() > { > document.getElementById("refreshZone").onclick(); > window.setTimeout("refreshZoneEvent()", 5000); > } > </script> > > <aa t:type="actionlink" t:id="refreshZone" id="refreshZone" href="#" > t:zone="allResultsZone" onclick="refreshZoneEvent()">Refresh > <aa id="refreshZone1" href="#" onclick="refreshZoneEvent()">Refresh1 > > > and also have added onload="refreshZoneEvent()" to the BODY tag. > > The body tag doesn't fire the event. When I click on Refresh1 link, the > event should be fired and then repeated every 5 secs for the Refresh link. > But it only fires once. > > I am pretty sure that document.getElementById("refreshZone") cannot find > the > element with that id, maybe because it is a t:type="actionlink". > > P.S. The tag <aa> is like that because the mailing list didn't allow me to > post the proper anchor tag. > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Refresh-zone-periodicaly-tp2498534p2540993.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Pablo Henrique dos Reis