AJAX Call In My HTML Page を使用して Web サービスを使用しています。データを返す Web サービス ほぼ 30 ~ 40 秒の .
この読み込み時間中に、Web サービスからデータを完全に受信した後、読み込み中の GIF 画像を使用する必要があります。読み込み中の画像は非表示にする必要があります。
HTML、JAVASCRIPT、CSS、J クエリのみを使用しています。
アイデアやサンプルが必要です。
次のコードを使用しています
$(document).ready(function () {
document.write('<img src="http://www.esta.org.uk/spinner.gif">');
});
$( window ).load(function() {
//This following Function Related To My Design
jQuery(".chosen").data("placeholder", "Select Frameworks...").chosen();
var config = {
'.chosen-select': {},
'.chosen-select-deselect': { allow_single_deselect: true },
'.chosen-select-no-single': { disable_search_threshold: 10 },
'.chosen-select-no-results': { no_results_text: 'Oops, nothing found!' },
'.chosen-select-width': { width: "95%" }
}
for (var selector in config) {
$(selector).chosen(config[selector]);
}
});
上記のコードでは、私の問題はページ読み込みGif画像表示にありますが、Gif画像のみを表示するだけではありません。