Jquery mobile spinner not loading in external links
Posted
by
Jorge Zuverza
on Stack Overflow
See other posts from Stack Overflow
or by Jorge Zuverza
Published on 2012-11-02T16:33:34Z
Indexed on
2012/11/02
17:02 UTC
Read the original article
Hit count: 191
I'm developing an application in which I have internal and external links. i noticed that Jquery mobile does not load the spinner when an external link is clicked:
Example
<a href = "/products">Spinner is shown </a>
<a href = "othersite.com" rel = "external">Spinner is NOT shown </a>
I have tried :
$('a[href][rel=external]').click(function(){ //doesnt work
$.mobile.showPageLoadingMsg();
}
and:
$('a[href][rel=external]').click(function(){
// shows the spinner but it gets stuck forever
$.mobile.showPageLoadingMsg();
$('#loadingDiv').div("refresh");
}
can someone help me show the spinner when the rel = external links are clicked?
thanks!
© Stack Overflow or respective owner