After refreshing the page I saw it;-) Best, Ernesto
On Fri, Sep 11, 2009 at 9:29 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Already done, if you look carefully :) > > ** > Martin > > 2009/9/11 Ernesto Reinaldo Barreiro <reier...@gmail.com>: > > Why not add this as a "variation" to the WIKI page [1] you have created? > > Ernesto > > > > [1]- > > > http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html > > > > < > http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html > > > > > > On Fri, Sep 11, 2009 at 7:57 AM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> wrote: > > > >> Hi! > >> > >> Well.. you need to find out what is the cause. > >> > >> For example, if you redirect to external pages, you must skip the busy > >> indicator. This means that you might have to use some clue in your > >> button or link to omit the busy indicator. > >> > >> Here is some example code that we use: > >> > >> if ((clickedElement.tagName.toUpperCase() == 'A' > >> && ((clickedElement.target == null) || > >> (clickedElement.target.length <= 0)) > >> && (clickedElement.href.lastIndexOf('#') != > >> (clickedElement.href.length-1)) > >> && (!('nobusy' in clickedElement)) > >> && (clickedElement.href.indexOf('skype') < 0) > >> && (clickedElement.href.indexOf('mailto') < 0) > >> && (clickedElement.href.indexOf('WicketAjaxDebug') < 0) > >> && (clickedElement.href.lastIndexOf('.doc') != > >> (clickedElement.href.length-4)) > >> && (clickedElement.href.lastIndexOf('.csv') != > >> (clickedElement.href.length-4)) > >> && (clickedElement.href.lastIndexOf('.xls') != > >> (clickedElement.href.length-4)) > >> && ((clickedElement.onclick == null) || > >> (clickedElement.onclick.toString().indexOf('window.open') <= 0)) > >> ) > >> || (clickedElement.parentNode.tagName.toUpperCase() == 'A' > >> && ((clickedElement.parentNode.target == null) || > >> (clickedElement.parentNode.target.length <= 0)) > >> && (clickedElement.parentNode.href.indexOf('skype') < 0) > >> && (clickedElement.parentNode.href.indexOf('mailto') < 0) > >> && (clickedElement.parentNode.href.lastIndexOf('#') != > >> (clickedElement.parentNode.href.length-1)) > >> && (clickedElement.parentNode.href.lastIndexOf('.doc') != > >> (clickedElement.parentNode.href.length-4)) > >> && (clickedElement.parentNode.href.lastIndexOf('.csv') != > >> (clickedElement.parentNode.href.length-4)) > >> && (clickedElement.parentNode.href.lastIndexOf('.xls') != > >> (clickedElement.parentNode.href.length-4)) > >> && ((clickedElement.parentNode.onclick == null) || > >> (clickedElement.parentNode.onclick.toString().indexOf('window.open') > >> <= 0)) > >> ) > >> || ( > >> ((clickedElement.onclick == null) > >> || > >> ((clickedElement.onclick.toString().indexOf('confirm') <= 0) > >> && (clickedElement.onclick.toString().indexOf('alert') <= 0) > >> && > (clickedElement.onclick.toString().indexOf('Wicket.Palette') > >> <= 0))) > >> && (clickedElement.tagName.toUpperCase() == 'INPUT' && > >> (clickedElement.type.toUpperCase() == 'BUTTON' > >> || clickedElement.type.toUpperCase() == 'SUBMIT' || > >> clickedElement.type.toUpperCase() == 'IMAGE')) > >> ) > >> ) { > >> showBusysign(); > >> } > >> > >> > >> ** > >> Martin > >> > >> 2009/9/11 Robert McGuinness <robert.mcguinness....@gmail.com>: > >> > I applied the busy indicator techniques found here: > >> > > >> > http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.htmlas > >> > a site wide implementation. > >> > > >> > I am using an ajax to submit the form, and do to some condition, I > >> redirect > >> > to the user to another page. My problem seems to be the > >> > Wicket.Ajax.invokePreCallHandlers() gets called on the doPost() method > in > >> > the wicket-ajax.js and the busy indicator continuously shows on the > next > >> > page. > >> > > >> > Any ideas how to resolve this issue? > >> > > >> > >> --------------------------------------------------------------------- > >> 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 > >