block-ui
v2.70.1
Published
Simulate synchronous ajax by blocking - not locking - the UI. This plugin lets you block user interaction with the page or with a specific element on the page. Also great at displaying modal dialogs.
Downloads
76,433
Maintainers
Readme
BlockUI - Page or element overlay
NOTE: This is a fork from the official version, for publishing on npm. See https://github.com/malsup/blockui/pull/114
Getting Started
Download either the production version or the development version of BlockUI.
In your web page:
<!-- include jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<!-- include BlockUI -->
<script src="http://path/to/your/copy/of/jquery.blockUI.js"></script>
<script>
// invoke blockUI as needed -->
$(document).on('click', '#myButton', function() {
$.blockUI();
});
></script>
</pre>
Documentation, Demos and FAQ
Everything you need to know can be found here: http://jquery.malsup.com/block/
Copyright and License
Copyright © 2007-2013 M. Alsup.
The BlockUI plugin is dual licensed under the MIT and GPL licenses.
You may use either license. The MIT license is recommended for most projects because it is simple and easy to understand and it places almost no restrictions on what you can do with the plugin.
If the GPL suits your project better you are also free to use the plugin under that license.
You do not have to do anything special to choose one license or the other and you don't have to notify anyone which license you are using. You are free to use the BlockUI plugin in commercial projects as long as the copyright header is left intact.