Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Search
| Go
Wiki
>
System
>
JQueryPlugin
>
JQueryBlockUI
---+ %TOPIC% %JQPLUGINS{"blockui" format=" Homepage: $homepage <br /> Author(s): $author <br /> Version: $version " }% %STARTSECTION{"summary"}% The jQuery !BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser. 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. %ENDSECTION{"summary"}% ---++ Demo %JQREQUIRE{"blockui"}% <a href="#" id="demo1">Click here</a> %CLEAR% <div id="loginForm" style="display:none; text-align:left;"> <h2 >Hey there ... </h2> <input type="text" name="username" class="foswikiInputField" size="20" placeholder="username" /> <input type="password" name="password" class="foswikiInputField" size="20" placeholder="password" /> %BUTTON{"Sign in" icon="tick" id="signin" class="center"}% %CLEAR% </div> <literal> <script> jQuery(function($) { $('#demo1').click(function() { $.blockUI({ message: $('#loginForm'), css: { width:'auto' }, //timeout: 20000, focusInput: false, onBlock: function() { //alert('Page is now blocked.'); } }); $('.blockOverlay').click(function() { $.unblockUI({ onUnblock: function(){ alert('Aborted.'); } }); return false; }); return false; }); $("#signin").click(function() { $.unblockUI({ onUnblock: function() { alert('Welcome to Foswiki.'); } }); }); }); </script> <style> .blockUI { background:#fff; font-size:110%; } .blockUI h2 { color:#9C3063; margin-top:0; } </style> </literal>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
r1 - 08 Sep 2011 - 11:00:54 -
ProjectContributor
Parents:
JQueryPlugin
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Wiki?
Send feedback