When the user press the login button a animated gif appear so he knows something is loading but when I change the window.location.href the animated gif stop working.
I found a workaround in IE doing this :
var loadingFigure = $('#loadingImage');
var html = loadingFigure.html();
window.location.href = returndata.message;
But is not working in firefox and I have a lot of users that use firefox so I need the busy indicator to continues working.
Anyone have a workaround.
Here my HTML for the gif
<figure id='loadingImage' class="animationCreateAccount">
Go to Solution.
I finally found I work around, I added an iframe, is not the best approach I'm agree but sometimes you need to do some workaround.
Here how I did it.
<iframe id="myIframe" src="/images/busy.gif" title="@Resource.TooltipLoading" scrolling="no" frameborder="0"></iframe>
And the js
window.location.href = 'mylocation'