サーバーへの長い呼び出しをトリガーするチェックボックスがあります。ユーザーが通話を待っている間、回転する .gif 画像を表示したいのですが、画像が表示されません。以下は私のコードスニペットです:
$('#chk').click(function () {
$('span.progress-indicator').show(); //the gif image
$.ajaxSetup({ asynch: false});
LongServerCallMethod();
$('span.progress-indicator').hide(); //the gif image
});