I used JQuery $(document).*ready*(function(){ // Your code here... });
and it works now. Don't know why OOB Wicket doesn't work in this case. Thks. On Mon, Aug 3, 2009 at 2:08 PM, Cristi Manole <cristiman...@gmail.com>wrote: > I think you're right. Maybe I need smth like a dom ready thing. The > javascript call I'm making is to update something that's not yet there. If I > use firebug to inject the call after it finished rendering it works. > > > On Mon, Aug 3, 2009 at 2:03 PM, Erik van Oosten <e.vanoos...@grons.nl>wrote: > >> That can not be right. The javascript added with >> AjaxRequestTarget#appendJavascript should be executed /after/ the DOM >> manipulations have finished. Maybe you called prependJavascript by accident? >> >> Or do you refer to something another thing when you write 'before the >> rendering finishes'? >> >> BTW, I assume you are using an overriden AjaxTabbedPanel#onAjaxUpdate. >> >> Regards, >> Erik. >> >> Cristi Manole wrote: >> >>> Hello, >>> >>> Tks for the reply. Yes, I'm using that, the problem is it gets called >>> before >>> the rendering finishes. I need something that runs after it got rendered. >>> >>> Any ideas? >>> >>> Cristi >>> >>> On Mon, Aug 3, 2009 at 1:07 PM, Eyal Golan <egola...@gmail.com> wrote: >>> >>> >>>> I'm not sure, but are you looking for this: >>>> AjaxRequestTarget #appendJavascript(javascript) >>>> ? >>>> >>>> Eyal Golan >>>> egola...@gmail.com >>>> >>>> >>> >> -- >> Erik van Oosten >> http://day-to-day-stuff.blogspot.com/ >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Cristi Manole > > Nova Creator Software > www.novacreator.com > -- Cristi Manole Nova Creator Software www.novacreator.com