Re: Firing JavaScript handler on AJAX panel swap
Martin, Wicket.Ajax.doGet() is called when JavaScript is contributed with response.renderJavascriptReference(script). So, there is no way for preCallHandlers to distinguish between JavaScript contribution and user-initiated click. I would also like to mention that this is not a jQuery issue. Thanks! Alec On Mon, Sep 26, 2011 at 4:02 AM, Emond Papegaaij wrote: > Hi Alec, > > If you use WiQuery for your javascript-enabled panels, this is done > automatically. WiQuery will add the javascript calls in the right places for > you. > > Best regards, > Emond > > On Saturday 24 September 2011 19:58:05 Alec Swan wrote: >> Hello, >> >> We use panel swapping to implement tabbing. The code contributes >> javascript the head when the panels are swapped using AJAX. Some of >> our JS scripts register $(document).ready() handlers. However, these >> handler never fire during panel swap. >> >> How can we register our JS handlers so that they fire on AJAX-based panel >> swap? >> >> Thanks, >> >> Alec >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Firing JavaScript handler on AJAX panel swap
Hi Alec, If you use WiQuery for your javascript-enabled panels, this is done automatically. WiQuery will add the javascript calls in the right places for you. Best regards, Emond On Saturday 24 September 2011 19:58:05 Alec Swan wrote: > Hello, > > We use panel swapping to implement tabbing. The code contributes > javascript the head when the panels are swapped using AJAX. Some of > our JS scripts register $(document).ready() handlers. However, these > handler never fire during panel swap. > > How can we register our JS handlers so that they fire on AJAX-based panel > swap? > > Thanks, > > Alec > > - > 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
Re: Firing JavaScript handler on AJAX panel swap
On Sun, Sep 25, 2011 at 11:30 PM, Alec Swan wrote: > It would be nice if Wicket JavaScript API supported registration of > handlers for user-initiated AJAX events, such as clicking on a link, > separately from code-initiated AJAX events, such as contributing a > JavaScript script to head. The current > Wicket.Ajax.registerPreCallHandler does not support this distinction. Can you give more details ? Wicket.Ajax.invokePreCallHandlers(); is called from Wicket.Ajax.doGet() so it will be called for all Wicket.Ajax.** calls. If you use JQuery.ajax() then it wont be called. > > Thoughts? > > Thanks, > > Alec > > On Sat, Sep 24, 2011 at 9:04 PM, Alec Swan wrote: >> Hello, >> >> Our JavaScript code shows a busy sign/progress bar from a handler >> registered with Wicket.Ajax.registerPreCallHandler(showBusysign). >> >> However, now that we contribute JavaScript during panel swap the busy >> sign flickers twice - once when the panels are swapped using AJAX and >> the second time when JavaScript is contributed. Is there a way to >> distinguish between these two scenarios on the client side so that we >> can avoid displaying busy sign when JS is being contributed? >> >> Thanks, >> >> Alec >> >> On Sat, Sep 24, 2011 at 1:52 PM, Alec Swan wrote: >>> My problem was that I was trying to call >>> Wicket.Event.addDomReadyEvent() from the script that was loaded by >>> response.renderJavascriptReference(). And for some reason the >>> registration code was never getting called. >>> >>> If I have a JS script which contains function declarations and inline >>> function calls, does Wicket handle them differently? In other words, >>> does Wicket inject function declarations differently than inline >>> method calls? >>> >>> Thanks, >>> >>> Alec >>> >>> On Sat, Sep 24, 2011 at 1:05 PM, Igor Vaynberg >>> wrote: maybe you are registering them too late.. -igor On Sat, Sep 24, 2011 at 12:04 PM, Alec Swan wrote: > I found this thread > http://apache-wicket.1842946.n4.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a-component-is-added-via-ajax-td1875918.html > where there was a recommendation to use > Wicket.Event.addDomReadyEvent(), but I can't get handlers registered > this way to fire on panel swap. Any ideas why? > > On Sat, Sep 24, 2011 at 12:52 PM, Igor Vaynberg > wrote: >> we dont do that yet, but makes sense. you are welcome to attach a >> patch... >> >> -igor >> >> >> On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: >>> Thanks. Is there a way to do this using JavaScript only? Maybe >>> register for some JavaScript event that Wicket fires when DOM is >>> ready? >>> >>> On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg >>> wrote: use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's ready() -igor On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: > Hello, > > We use panel swapping to implement tabbing. The code contributes > javascript the head when the panels are swapped using AJAX. Some of > our JS scripts register $(document).ready() handlers. However, these > handler never fire during panel swap. > > How can we register our JS handlers so that they fire on AJAX-based > panel swap? > > Thanks, > > Alec > > - > 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 >>> >>> - >>> 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 >> >> > > - > 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 >>> >> > > - > To unsubscribe, e-mail: users-unsu
Re: Firing JavaScript handler on AJAX panel swap
It would be nice if Wicket JavaScript API supported registration of handlers for user-initiated AJAX events, such as clicking on a link, separately from code-initiated AJAX events, such as contributing a JavaScript script to head. The current Wicket.Ajax.registerPreCallHandler does not support this distinction. Thoughts? Thanks, Alec On Sat, Sep 24, 2011 at 9:04 PM, Alec Swan wrote: > Hello, > > Our JavaScript code shows a busy sign/progress bar from a handler > registered with Wicket.Ajax.registerPreCallHandler(showBusysign). > > However, now that we contribute JavaScript during panel swap the busy > sign flickers twice - once when the panels are swapped using AJAX and > the second time when JavaScript is contributed. Is there a way to > distinguish between these two scenarios on the client side so that we > can avoid displaying busy sign when JS is being contributed? > > Thanks, > > Alec > > On Sat, Sep 24, 2011 at 1:52 PM, Alec Swan wrote: >> My problem was that I was trying to call >> Wicket.Event.addDomReadyEvent() from the script that was loaded by >> response.renderJavascriptReference(). And for some reason the >> registration code was never getting called. >> >> If I have a JS script which contains function declarations and inline >> function calls, does Wicket handle them differently? In other words, >> does Wicket inject function declarations differently than inline >> method calls? >> >> Thanks, >> >> Alec >> >> On Sat, Sep 24, 2011 at 1:05 PM, Igor Vaynberg >> wrote: >>> maybe you are registering them too late.. >>> >>> -igor >>> >>> On Sat, Sep 24, 2011 at 12:04 PM, Alec Swan wrote: I found this thread http://apache-wicket.1842946.n4.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a-component-is-added-via-ajax-td1875918.html where there was a recommendation to use Wicket.Event.addDomReadyEvent(), but I can't get handlers registered this way to fire on panel swap. Any ideas why? On Sat, Sep 24, 2011 at 12:52 PM, Igor Vaynberg wrote: > we dont do that yet, but makes sense. you are welcome to attach a patch... > > -igor > > > On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: >> Thanks. Is there a way to do this using JavaScript only? Maybe >> register for some JavaScript event that Wicket fires when DOM is >> ready? >> >> On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg >> wrote: >>> use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's >>> ready() >>> >>> -igor >>> >>> On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: Hello, We use panel swapping to implement tabbing. The code contributes javascript the head when the panels are swapped using AJAX. Some of our JS scripts register $(document).ready() handlers. However, these handler never fire during panel swap. How can we register our JS handlers so that they fire on AJAX-based panel swap? Thanks, Alec - 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 >>> >>> >> >> - >> 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 > > - 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 >>> >>> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Firing JavaScript handler on AJAX panel swap
Hello, Our JavaScript code shows a busy sign/progress bar from a handler registered with Wicket.Ajax.registerPreCallHandler(showBusysign). However, now that we contribute JavaScript during panel swap the busy sign flickers twice - once when the panels are swapped using AJAX and the second time when JavaScript is contributed. Is there a way to distinguish between these two scenarios on the client side so that we can avoid displaying busy sign when JS is being contributed? Thanks, Alec On Sat, Sep 24, 2011 at 1:52 PM, Alec Swan wrote: > My problem was that I was trying to call > Wicket.Event.addDomReadyEvent() from the script that was loaded by > response.renderJavascriptReference(). And for some reason the > registration code was never getting called. > > If I have a JS script which contains function declarations and inline > function calls, does Wicket handle them differently? In other words, > does Wicket inject function declarations differently than inline > method calls? > > Thanks, > > Alec > > On Sat, Sep 24, 2011 at 1:05 PM, Igor Vaynberg > wrote: >> maybe you are registering them too late.. >> >> -igor >> >> On Sat, Sep 24, 2011 at 12:04 PM, Alec Swan wrote: >>> I found this thread >>> http://apache-wicket.1842946.n4.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a-component-is-added-via-ajax-td1875918.html >>> where there was a recommendation to use >>> Wicket.Event.addDomReadyEvent(), but I can't get handlers registered >>> this way to fire on panel swap. Any ideas why? >>> >>> On Sat, Sep 24, 2011 at 12:52 PM, Igor Vaynberg >>> wrote: we dont do that yet, but makes sense. you are welcome to attach a patch... -igor On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: > Thanks. Is there a way to do this using JavaScript only? Maybe > register for some JavaScript event that Wicket fires when DOM is > ready? > > On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg > wrote: >> use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's >> ready() >> >> -igor >> >> On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: >>> Hello, >>> >>> We use panel swapping to implement tabbing. The code contributes >>> javascript the head when the panels are swapped using AJAX. Some of >>> our JS scripts register $(document).ready() handlers. However, these >>> handler never fire during panel swap. >>> >>> How can we register our JS handlers so that they fire on AJAX-based >>> panel swap? >>> >>> Thanks, >>> >>> Alec >>> >>> - >>> 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 >> >> > > - > 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 >>> >>> - >>> 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 >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Firing JavaScript handler on AJAX panel swap
My problem was that I was trying to call Wicket.Event.addDomReadyEvent() from the script that was loaded by response.renderJavascriptReference(). And for some reason the registration code was never getting called. If I have a JS script which contains function declarations and inline function calls, does Wicket handle them differently? In other words, does Wicket inject function declarations differently than inline method calls? Thanks, Alec On Sat, Sep 24, 2011 at 1:05 PM, Igor Vaynberg wrote: > maybe you are registering them too late.. > > -igor > > On Sat, Sep 24, 2011 at 12:04 PM, Alec Swan wrote: >> I found this thread >> http://apache-wicket.1842946.n4.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a-component-is-added-via-ajax-td1875918.html >> where there was a recommendation to use >> Wicket.Event.addDomReadyEvent(), but I can't get handlers registered >> this way to fire on panel swap. Any ideas why? >> >> On Sat, Sep 24, 2011 at 12:52 PM, Igor Vaynberg >> wrote: >>> we dont do that yet, but makes sense. you are welcome to attach a patch... >>> >>> -igor >>> >>> >>> On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: Thanks. Is there a way to do this using JavaScript only? Maybe register for some JavaScript event that Wicket fires when DOM is ready? On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg wrote: > use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's > ready() > > -igor > > On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: >> Hello, >> >> We use panel swapping to implement tabbing. The code contributes >> javascript the head when the panels are swapped using AJAX. Some of >> our JS scripts register $(document).ready() handlers. However, these >> handler never fire during panel swap. >> >> How can we register our JS handlers so that they fire on AJAX-based >> panel swap? >> >> Thanks, >> >> Alec >> >> - >> 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 > > - 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 >>> >>> >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Firing JavaScript handler on AJAX panel swap
maybe you are registering them too late.. -igor On Sat, Sep 24, 2011 at 12:04 PM, Alec Swan wrote: > I found this thread > http://apache-wicket.1842946.n4.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a-component-is-added-via-ajax-td1875918.html > where there was a recommendation to use > Wicket.Event.addDomReadyEvent(), but I can't get handlers registered > this way to fire on panel swap. Any ideas why? > > On Sat, Sep 24, 2011 at 12:52 PM, Igor Vaynberg > wrote: >> we dont do that yet, but makes sense. you are welcome to attach a patch... >> >> -igor >> >> >> On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: >>> Thanks. Is there a way to do this using JavaScript only? Maybe >>> register for some JavaScript event that Wicket fires when DOM is >>> ready? >>> >>> On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg >>> wrote: use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's ready() -igor On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: > Hello, > > We use panel swapping to implement tabbing. The code contributes > javascript the head when the panels are swapped using AJAX. Some of > our JS scripts register $(document).ready() handlers. However, these > handler never fire during panel swap. > > How can we register our JS handlers so that they fire on AJAX-based panel > swap? > > Thanks, > > Alec > > - > 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 >>> >>> - >>> 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 >> >> > > - > 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
Re: Firing JavaScript handler on AJAX panel swap
I found this thread http://apache-wicket.1842946.n4.nabble.com/correct-way-to-call-necessary-javascript-initialization-when-a-component-is-added-via-ajax-td1875918.html where there was a recommendation to use Wicket.Event.addDomReadyEvent(), but I can't get handlers registered this way to fire on panel swap. Any ideas why? On Sat, Sep 24, 2011 at 12:52 PM, Igor Vaynberg wrote: > we dont do that yet, but makes sense. you are welcome to attach a patch... > > -igor > > > On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: >> Thanks. Is there a way to do this using JavaScript only? Maybe >> register for some JavaScript event that Wicket fires when DOM is >> ready? >> >> On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg >> wrote: >>> use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's >>> ready() >>> >>> -igor >>> >>> On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: Hello, We use panel swapping to implement tabbing. The code contributes javascript the head when the panels are swapped using AJAX. Some of our JS scripts register $(document).ready() handlers. However, these handler never fire during panel swap. How can we register our JS handlers so that they fire on AJAX-based panel swap? Thanks, Alec - 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 >>> >>> >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Firing JavaScript handler on AJAX panel swap
we dont do that yet, but makes sense. you are welcome to attach a patch... -igor On Sat, Sep 24, 2011 at 11:51 AM, Alec Swan wrote: > Thanks. Is there a way to do this using JavaScript only? Maybe > register for some JavaScript event that Wicket fires when DOM is > ready? > > On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg > wrote: >> use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's >> ready() >> >> -igor >> >> On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: >>> Hello, >>> >>> We use panel swapping to implement tabbing. The code contributes >>> javascript the head when the panels are swapped using AJAX. Some of >>> our JS scripts register $(document).ready() handlers. However, these >>> handler never fire during panel swap. >>> >>> How can we register our JS handlers so that they fire on AJAX-based panel >>> swap? >>> >>> Thanks, >>> >>> Alec >>> >>> - >>> 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 >> >> > > - > 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
Re: Firing JavaScript handler on AJAX panel swap
Thanks. Is there a way to do this using JavaScript only? Maybe register for some JavaScript event that Wicket fires when DOM is ready? On Sat, Sep 24, 2011 at 12:42 PM, Igor Vaynberg wrote: > use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's ready() > > -igor > > On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: >> Hello, >> >> We use panel swapping to implement tabbing. The code contributes >> javascript the head when the panels are swapped using AJAX. Some of >> our JS scripts register $(document).ready() handlers. However, these >> handler never fire during panel swap. >> >> How can we register our JS handlers so that they fire on AJAX-based panel >> swap? >> >> Thanks, >> >> Alec >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Firing JavaScript handler on AJAX panel swap
use ajaxrequesttarget.renderondomreadyjavascript() instead of jquery's ready() -igor On Sat, Sep 24, 2011 at 10:58 AM, Alec Swan wrote: > Hello, > > We use panel swapping to implement tabbing. The code contributes > javascript the head when the panels are swapped using AJAX. Some of > our JS scripts register $(document).ready() handlers. However, these > handler never fire during panel swap. > > How can we register our JS handlers so that they fire on AJAX-based panel > swap? > > Thanks, > > Alec > > - > 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
Firing JavaScript handler on AJAX panel swap
Hello, We use panel swapping to implement tabbing. The code contributes javascript the head when the panels are swapped using AJAX. Some of our JS scripts register $(document).ready() handlers. However, these handler never fire during panel swap. How can we register our JS handlers so that they fire on AJAX-based panel swap? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org