Re: [wicket 1.5] Ajax recovery script
Ahh good idea and also a bit concrete :) 2011/2/7 Pedro Santos > It possible to test if there in an AJAX activity by testing > the Wicket.Channel busy property. Those channels can be iterated on > Wicket.channelManager.channels > If I got it right, than an JavaScript function can live testing this > property and, when an timeout was detected, invokes some callback that can > be the fallback to the baseurl. > > On Mon, Feb 7, 2011 at 11:16 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hi > > > > Does anybody have a java script which does the following modification to > > wicket's ajax: > > > > If the server are to long to respond, the script automatically invokes > > fallback to the "baseurl" for the page? > > > > > > I guess you could also have some reverse heartbeat technique, that would > > update a timer, and when the timer reaches 0 it just tries to refresh the > > page manually..However I'd also like for the manual refresh to wait for > the > > server comes up.. Any snipplets or ides? > > > > regards Nino > > > > > > -- > Pedro Henrique Oliveira dos Santos >
Re: [wicket 1.5] Ajax recovery script
It possible to test if there in an AJAX activity by testing the Wicket.Channel busy property. Those channels can be iterated on Wicket.channelManager.channels If I got it right, than an JavaScript function can live testing this property and, when an timeout was detected, invokes some callback that can be the fallback to the baseurl. On Mon, Feb 7, 2011 at 11:16 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi > > Does anybody have a java script which does the following modification to > wicket's ajax: > > If the server are to long to respond, the script automatically invokes > fallback to the "baseurl" for the page? > > > I guess you could also have some reverse heartbeat technique, that would > update a timer, and when the timer reaches 0 it just tries to refresh the > page manually..However I'd also like for the manual refresh to wait for the > server comes up.. Any snipplets or ides? > > regards Nino > -- Pedro Henrique Oliveira dos Santos
[wicket 1.5] Ajax recovery script
Hi Does anybody have a java script which does the following modification to wicket's ajax: If the server are to long to respond, the script automatically invokes fallback to the "baseurl" for the page? I guess you could also have some reverse heartbeat technique, that would update a timer, and when the timer reaches 0 it just tries to refresh the page manually..However I'd also like for the manual refresh to wait for the server comes up.. Any snipplets or ides? regards Nino