Asp.net 在inframe中加载内容时显示加载指示器
在inframe中加载内容时显示加载指示器的代码Asp.net 在inframe中加载内容时显示加载指示器,asp.net,javascript,jquery,html,Asp.net,Javascript,Jquery,Html,在inframe中加载内容时显示加载指示器的代码 1) 当在iframe内部的表单中进行回发/提交时,您可以绑定到ajaxStart和ajaxStop,如下所示: $("#loading").bind("ajaxStart", function(){ $(this).fadeIn("slow"); }).bind("ajaxStop", function(){ $(this).fadeOut("slow"); }); 假设load是加载指示器div/span的ID 如果你想要一
1) 当在iframe内部的表单中进行回发/提交时,您可以绑定到
ajaxStart
和ajaxStop
,如下所示:
$("#loading").bind("ajaxStart", function(){
$(this).fadeIn("slow");
}).bind("ajaxStop", function(){
$(this).fadeOut("slow");
});
假设load
是加载指示器div/span的ID
如果你想要一个更漂亮的解决方案,看看这个很棒的插件。使用blockUI实现上述功能的等效功能:
$().ajaxStart($.blockUI)
.ajaxStop($.unblockUI);