2016-04-26 17 views
0

$.mobile.loadingが正常に動作するようにトラブルが発生しています...長い間うまくいきました。最後のバージョン(9.x)では、部分的に動作しています。つまり、動作することがあり、読み込み中のメッセージが表示されることもありますが、ほとんどの場合、何も表示されません。私はiOS 9.1.3を実行していて、SafariとFirefox iOSの両方でテストしました。

ios 6.xで動作している古いiPhone 4Sでテストしたところ、ローダーは正常に動作しています。

また、Androidの下で動作しています。パソコンでテストしたところ、ChromeとFirefoxでは動作していますが、Safariでは動作していません。

Safari/iOSの最新バージョンでjQuery/jQuery Mobileに関する既知のバグはありますか?

function showLoadingPage() { 
    $('body').append("<div class='ui-loader-background' onClick='$.mobile.loading(\"hide\");'> </div>"); //Fond opaque lors du chargement 

    var $this = $(this), 
     //theme = $this.jqmData("theme") || $.mobile.loader.prototype.options.theme, 
     theme = "b", 
     //msgText = $this.jqmData("msgtext") || $.mobile.loader.prototype.options.text, 
     msgText = "Chargement ...", 
     //textVisible = $this.jqmData("textvisible") || $.mobile.loader.prototype.options.textVisible, 
     textVisible = true, 
     textonly = !!$this.jqmData("textonly"), 
     html = $this.jqmData("html") || ""; 
    $.mobile.loading('show', { 
      text: msgText, 
      textVisible: textVisible, 
      theme: theme, 
      textonly: textonly, 
      html: html 
    }); 
} 

$(document).on("click", ".show-page-loading-msg", function() { showLoadingPage(); }); 

私はそのクラスでshow-page-loading-msgリンクをクリック、$.mobile.loadingをトリガすることになっています:

は、ここに私のコードです。

答えて

0

ローダーの表示に役立つ小さな遅延を追加します。

setTimeout(function() {  
    $.mobile.loading('show'); 
}, 10); 
+0

はまだ動作しません:/ –

+0

この[フィドル](https://jsfiddle.net/da7y5vcL/2/が)私のiPhoneのバージョン9.3.1で動作します。あなたはそれをチェックできますか? –

+0

私のためにも働きます。しかし、リンクが別のページを指しているときにはうまくいかないようです。フィドルでこれを確認することはできません。試してみてください:http://hortistock.fleurondanjou.fr/testloader.php –

関連する問題