Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
Hello, I've got an ajaxTabbedPanel inside a ModalWindow. I would like to call some javascript _after_ the panel from ajaxTabbedPanel is displayed. Overriding onAjaxUpdate(AjaxRequestTarget target) doesn't help as it seems it gets called before the panel gets displayed. Do you have any ideas?

Re: Adding javascript after tab clicked

2009-08-03 Thread Eyal Golan
I'm not sure, but are you looking for this: AjaxRequestTarget #appendJavascript(javascript) ? Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Mon,

Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
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:

Re: Adding javascript after tab clicked

2009-08-03 Thread Erik van Oosten
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,

Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
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.nlwrote: That

Re: Adding javascript after tab clicked

2009-08-03 Thread Cristi Manole
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.comwrote: I think you're right. Maybe I need smth like a dom ready thing.