【发布时间】:2011-03-22 15:20:52
【问题描述】:
我只希望在处理 Ajax 时,在 flash/swf 电影顶部显示一条消息“请稍候”,然后在 Ajax 完成时消失。所以在 Ajax 过程中,“wmode”设置为“透明”,当 Ajax 完成时,“wmode”恢复正常,因此鼠标滚轮再次工作。 “请稍候”消息位于绝对高 z-index 位置的 div 标签中。请问有人可以给我建议吗,无论是javascript还是jquery,我都不介意?
代码如下:
var form = document.forms["orderDefinition"];
form.elements["formChangeRequest"].value = "true";
$.ajax({
type: "POST",
url: "ajax/possibleValues.html",
data: $("form#orderDefinition").serialize(),
success: function(response){
$('#usercontent .sleeve .toprow').html(response);
applyValidation();
}
});
// Display a "please wait" message
$("#waitingMsgBox").ajaxStart(function(){
$(this).show();
}).ajaxStop(function(){
$(this).hide();
});
提前致谢。
【问题讨论】:
标签: javascript wmode