ページネーターのリンクをクリックしたときに読み込みバーを表示したい。ページネーターは ajax 関数を通過します。mozilla を使用すると、読み込みバーが表示されます。しかし、クロム、サファリを使用すると、読み込みバーが表示されません
私の読み込みバーは div であり、これは私の index.php ファイルに存在します。
<div class="loading_wrapper" id="loading_wrapper" style="display:none;">
<div class="load_animation"><img src="/magsonwink/images/loadinfo.gif" width="24" height="24" /></div>
<div class="load_texts"><h4>Loading...</h4></div>
<div class="clear"></div>
ページネーターのリンクも index.php ファイルに存在します。ページネーターのリンクをクリックすると、これが関数に移動します
var resp_msg =
$.ajax({
url: path + set_page,
async: false,
beforeSend: function() {
$('#loading_wrapper').show();
},
success: function(data, result) {
if (!result)
alert('Failure to set the value.');
}
}).responseText;
if (resp_msg) {
$('#loading_wrapper').hide();
$(objReplace).html(resp_msg);
}
これは mozilla では問題なく動作しますが、chrome では動作しません。エラー コンソールを見てもエラーは表示されません。助けてください。前もって感謝します