Not sure about this but if you use jQuery, you could try adding a js in the head of the page which will have something like $(document).ready( function(){ //your javascript here } );
Regards, Poko On Nov 23, 2010, at 11:12, sonxurxo <sonxu...@gmail.com> wrote: > > Hi all, > > Is it possible to tell, from a Wicket Page, to execute some JavaScript > automatically when a page loads through a JavaScript XHTTPRequest? I'm using > AbstractBehavior with renderHead(), and it works when the Page is invoked > from another Wicket component (through Link, etc), but not when I invoke the > Page URL through Javascript, even when the HTML returned contains the > <script> tags in the header, it does not execute it. > > Any ideas? TIA > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Execute-JavaScript-automatically-when-loading-a-Page-through-XHTTPRequest-tp3055042p3055042.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org