tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
Subject Re: waitForPage / onDOMLoaded hybrid
Date Sun, 06 Mar 2011 23:38:45 GMT
On Sun, 06 Mar 2011 19:44:09 -0300, Paul Stanton <paul@mapshed.com.au>  

> Hi all,


> i'm using tapestry on this particular project.
> I'm not 100% sure this isn't already available, but before duplicating  
> logic i thought I'd check...
> I need to be able to call a function at any point in the page state (ie  
> before it's loaded, during loading, after load) but have it wait until  
> tapestry.init has been called.

Have you tried adding the call to this function using  
RenderSupport.addScript()? It seems to do exactly what you need.

Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.

To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

View raw message