1
如果響應時間超過5秒,如何打開JQuery JDialog窗口。5秒後顯示JQuery JDialog並自動關閉
下面是我的代碼
$("#Dialog").dialog(
{
autoOpen: false,
modal: true,
height: 175,
position: 'center',
bgiframe: true,
display: 'visible',
width: 400
});
我想說明上面的對話框,如果響應時間(AJAX)的時間超過5秒,自動關閉,一旦我得到的迴應(AJAX)。
任何幫助將有所幫助。
感謝
我認爲你需要在JS中設置一個Timer來做到 – 2012-02-28 10:42:02
你是指ajax請求的響應時間? – 2012-02-28 10:43:34
@DidierGhys:是的。阿賈克斯請求的響應時間 – pal 2012-02-28 10:44:53