Simple Modal Dialog Example This page demonstrates how to display a simple modal dialog. The button below will invoke blockUI with a custom message. Depending upon the user response (yes or no) an ajax call will be made while keeping the UI blocked.…
Options BlockUI's default options look (exactly) like this: // override these in your code to change the default behavior and style $.blockUI.defaults = { // message displayed when blocking (use null for no message) message: '<h1>Please wait...</…
This page demonstrates several ways to block the page. Each button below activates blockUI and then makes a remote call to the server. The following code is used on this page: <script type="text/javascript"> // unblock when ajax activity s…
Element Blocking Examples This page demonstrates how to block selected elements on the page rather than the entire page. The buttons below will block/unblock access to the bordered area beneath them. <input id="blockButton" type="submit&…
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 element…
1.Login Form $(document).ready(function() { $('#demo1').click(function() { $.blockUI({ message: $('#loginForm') }); setTimeout($.unblockUI, 2000); }); }); 2.iPhoto (ish) $(document).ready(function() { $('#demo2').click(function() { $.blockUI({ css: {…
原文:jquery.ui.accordion的修改(支持展开多个) 背景:原jquery.ui.accordion插件,最多只能展开一个,不能展开多个,后来在网上找到了一个基于它的一个修改版(https://code.google.com/p/jquery-multi-open-accordion/),但使用后发现它给Array加了一个方法(Array.prototype.hasObject),这样就导致了一个问题:在其它页面使用js遍历一个数组的时候,发现此数组多了一个hasObject值.故…
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Jquery实现数据双向绑定(赋值和取值)</title> <link href="~/Css/css.css" rel="stylesheet" /> <s…
最近天气变化无常,身为程序猿的寡人!~终究难耐天气的挑战,病倒了,果然,程序猿还需多保养自己的身体,有句话这么说:一生只有两件事能报复你:不够努力的辜负和过度消耗身体的后患.话不多说,开始吧. 一.什么是简单工厂模式 简单工厂 (Simple Factory)又称静态工厂方法模式(Static Factory Method Pattern) 使用的频率也是非常高,它的官方解释为:定义一个用于创建对象的接口,让子类决定实例化哪一个类.工厂模式使一个类的实例化延迟到其子类. 这个模式本身很简单而且使…
1.针对浏览器整个窗口滚动 主要代码: <script type="text/javascript"> ; function GetProductListPageFun() { //请求获取数据 } $(window).scroll(function () { //分页 if ($(window).scrollTop() + $(window).height() == $(document).height()) { //滚动到底部时 pageNum += ; GetProd…