Right?
Wrong, see explanation below.
Sven
mbrictson wrote:
Actually wicket-ajax.js is smart enough to fire these "dom ready" events
after an ajax request.
Of course, a jQuery $(document).ready() will not fire; neither will the
"ready" events of other various JS libraries. However if you specifically
use Wicket's "dom ready" event (i.e. renderOnDomReadyJavascript() as in the
Java example below, or manually in JavaScript using
Wicket.Event.addDomReadyEvent()), then the event will fire after the ajax
call.
jthomerson wrote:
Won't work on an ajax request because the dom ready event isn't fired.
Right?
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Nov 11, 2009 at 2:23 AM, svenmeier <[email protected]> wrote:
Why so complicated?
@Override
public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavascript(init_slider_js());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]