jQuery BlockUI Plugin Demo 2
2024-08-27 09:35:29
Overview
The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without 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
最新文章
- SQL Server 事务隔离级别详解
- Node.js入门:前后端模块的异同
- [codeforces 55]D. Beautiful numbers
- DownloadManager补漏
- Device.js – 快速检测平台、操作系统和方向信息
- KMP,模式匹配算法
- 关于mysql存储过程的definer的问题
- java 网络API访问 web 站点
- table强制不换行
- JS中的Math.ceil和Math.floor函数的用法
- 设计模式(三)-- 适配器模式(Adapter)
- 在TextView中加入图片
- Angular开发者指南(一)入门介绍
- Java基础——抽象类和接口
- head first python菜鸟学习笔记(第三章)
- C语言嵌套循环
- express 内存溢出问题分析定位
- maven下载及安装
- python输出有色记录
- Fiddler过滤