JQueryBlockUI
System
---+ %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
Projects
Skin Browser
Need to add skin selector, and then appropriate details
WidgetsSkin
options:
Wide
Wide - Thin
Thin - Wide
Thin - Wide - Thin
Wide - Thin - Thin
Wide - Medium
Medium - Wide
System Changes
WebCreateNewTopicTemplate
WebTemplateTopics
WebSearch
WebHome
WikiWord
WikiSyntax
WikiName
WikiSyntaxSummary
WikiCulture
WelcomeGuest
WebNotifyHelp
WebNotify
WebRssBase
WebRss
WebPreferencesHelp
powered by the community. 28th October 2008.