You are here:
BACCHUS Wiki
>
System Web
>
JQueryPlugin
>
JQueryBlockUI
(revision 1) (raw view)
---+ %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
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 08 Sep 2011,
ProjectContributor
System
Log In
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Copyright &© by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding BACCHUS Wiki?
Send feedback