Overview

The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAXwithout locking the browser[1]. When activated, it will prevent user activity with the page (or part of the page) until it is deactivated. BlockUI adds elements to the DOM to give it both the appearance and behavior of blocking user interaction.

//Usage is very simple; to block user activity for the page:
$.blockUI(); //Blocking with a custom message:
$.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' }); //Blocking with custom style:
$.blockUI({ css: { backgroundColor: '#f00', color: '#fff'} }); //To unblock the page:
$.unblockUI(); //If you want to use the default settings and have the UI blocked for all ajax requests, it's as easy as this:
$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);

参考:http://malsup.com/jquery/block/#overview

最新文章

  1. SQL Server 事务隔离级别详解
  2. Node.js入门:前后端模块的异同
  3. [codeforces 55]D. Beautiful numbers
  4. DownloadManager补漏
  5. Device.js – 快速检测平台、操作系统和方向信息
  6. KMP,模式匹配算法
  7. 关于mysql存储过程的definer的问题
  8. java 网络API访问 web 站点
  9. table强制不换行
  10. JS中的Math.ceil和Math.floor函数的用法
  11. 设计模式(三)-- 适配器模式(Adapter)
  12. 在TextView中加入图片
  13. Angular开发者指南(一)入门介绍
  14. Java基础——抽象类和接口
  15. head first python菜鸟学习笔记(第三章)
  16. C语言嵌套循环
  17. express 内存溢出问题分析定位
  18. maven下载及安装
  19. python输出有色记录
  20. Fiddler过滤

热门文章

  1. python - scrapy 爬虫框架 ( redis去重 )
  2. 01_Request和Response
  3. CSS 布局和 BFC
  4. P/NP问题
  5. Jetbrain全栈最新激活方法(2019年及之前所有新老版本)
  6. Java学习日记——基础篇(二)基本语法
  7. dubbo+zookeeper示例记录
  8. Tkinter 之Menu菜单标签
  9. BZOJ1856[Scoi2010]字符串——组合数学+容斥
  10. Tecplot如何提取三维图中某条线的数据【转载】