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 <[email protected]>:
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to