blockui

BlockUI on DOM Ready

大憨熊 提交于 2019-12-06 11:51:53
I'm using the jQuery BlockUI plugin to add a loading splash to a page that takes a few seconds to load due to CAML queries. The problem is, the page loads before then the BlockUI displays for a split second and disappears. It seems like JS is executing these in the wrong order and I cannot figure out why. Is there something I can change in the code or is BlockUI just not intended to be used without Ajax? $(document).ready(function() { $.blockUI(); }); $(window).ready(function() { $.unblockUI(); }); In the html header I call jquery, blockui, and the common.js script that contain the CAML

Unblock (jQuery BlockUI) after file sent to browser through response stream

戏子无情 提交于 2019-12-06 11:17:40
I have an <asp:button /> that generates a PDF report. I want to use jQuery BlockUI to display a message that says: Generating Report.. Using: Response.BinaryWrite I am then sending the file to the user so it appears as a file download in the browser. I cannot get $.unblockUI(); to fire. As soon as the file download begins or has completed or is cancelled I want it to dissappear. Currently it never does.. It's as though the page hasn't been re-loaded, I've hit the server but it comes back with the same page. Things I have tried: Setting a variable in JS to true so on document.ready() it will

Intercept ajax requests with jquery to display BlockUI

自作多情 提交于 2019-12-06 08:41:44
i'm trying to intercept ajax requests with jquery, to display a waiting message like with using plugin BlockUI, but how can i intercept requests sended by the UpdatePanel provided from asp.net framework, is some way to take the trigger? Thanks You can use the beginRequest and endRequest client side events of the PageRequestManager to display a "please wait" UI. Sys.WebForms.PageRequestManager.instance.add_beginRequest(beginRequestHandler) Sys.WebForms.PageRequestManager.instance.add_endRequest(endRequestHandler) See here for more information. There are examples for each event. I don't really

Jquery BlockUI element blocking

独自空忆成欢 提交于 2019-12-06 07:47:20
I am trying to block certain part of the page.I am following the http://jquery.malsup.com/block/#element tutorial, but i am not able to map the element . My js: $('div.repoDisplay').blockUI({ message: '' ,overlayCSS: { backgroundColor: '#fff' }}); My html : <div class="container-sc" style="display: table;"> <div id='repoDisplay' > <div style="display: table-cell;width:150px"> \\\\\\\\\\\ </div> </div> <div style="display: table-cell;padding:10px;width:85%""> {{outlet}} </div> </div> But it is showing uncaught type error:undefined in my js. Thanks for the help $.blockUI() is using to block

jQuery not working in AJAX loaded DIVs

耗尽温柔 提交于 2019-12-06 05:17:16
问题 In the HEAD of my document I load jQuery.js and also the blockUI jQuery plugin. In the PHP I then use regular AJAX to load other PHP content into DIVs. In the original PHP jQuery and blockUI plugin work just fine, but in any of the ajax-loaded divs jQuery and blockUI both do absolutely nothing. No console error, no warning - nothing. I am a jQuery beginner and none of the other articles I found on this subject were able to put me over the edge of solving this, so I'm helping someone else can.

jquery blockUI tell if page or specific element is blocked

廉价感情. 提交于 2019-12-05 13:05:39
问题 Is there a way to tell if $.blockUI(); has been called but $.unblockUI() has not been called? Ideally this should be able to work for both blocking the full page and specific elements. I'd expect it to work something like this > $.blockUI(); > $.isBlockUI?(): >> true > $.unblockUI(); > $.isBlockUI?(); >> false 回答1: Look what I found here $(document).ready(function() { $('#demo14').click(function() { $.blockUI({ fadeIn: 1000, timeout: 2000, onBlock: function() { alert('Page is now blocked;

Begin and end request in UpdatePanel using jQuery

折月煮酒 提交于 2019-12-05 12:13:08
How get Method BeginRequest & EndRequest In UpdatePanel ?(in jquery) function onBeginRequest() { //$.blockui; } function onEndRequest() { //$.unblockui; } ashkufaraz with(Sys.WebForms.PageRequestManager.getInstance() ) { add_beginRequest(onBeginRequest); add_endRequest(onEndRequest); } function onBeginRequest(sender, args) { $.blockUI(); } function onEndRequest(sender, args) { sm.abdullah you can capture these events By Sys.WebForms.PageRequestManager.getInstance() this. Use this code to have no problems with the update panel of your page! $(document).ready(function () { // Put your code here

jquery blockui positioning

喜夏-厌秋 提交于 2019-12-05 08:24:11
I'm using blockui to throw some forms up on my site but for some reason the blockui element is positioned about 20-30 pixels from the bottom of the screen. I tried, per the docs (jquery blockui options for v2) to reposition it using this code: $.blockUI({css: {top : '10px'}}); But that just yawned at me in a universe mocking kind of way and did nothing. The default, again, per the docs, is top : 40%. I don't want to wipe out all the blockui css, just reset the top positioning. I use this and the Load Message is positioned to the top right hand corner. Just play with the css to suit. Hope this

How can I get a DIV to centre on a page using jQuery and blockUI?

一世执手 提交于 2019-12-04 10:22:35
问题 I'm trying to convert Matt Berseth's 'YUI Style Yes/No Confirm Dialog' so I can use it with the jQuery blockUI plugin. I have to admit I'm no CSS guru but I thought this would pretty easy even for me....except 10hrs later I'm at a loss as to why I can't get the blasted thing to work. The problem is that I can't seem to get the 'confirmDialogue' DIV to centre on the page without some artifacts showing above it. Alternatively if I reset blockUI's CSS settings by doing....: $.blockUI.defaults

How to create page overlay while data is loading - asp.net/jquery/blockui

二次信任 提交于 2019-12-04 07:36:56
I'm trying to display an overlay that says "page loading...please wait" while data is being retrived from a sql server. I'm hoping to use the BlockUI plugin for this but anything will do. I have an ASP.NET page using a site.master. The plugin works but no matter what I tried, it only appears AFTER the page was fully loaded. The bulk of the waiting is down to work done in the Global.asax file. In the Session_Start section, I have a function that returns data to populate dropdown menus on my page. This takes about 20 seconds to complete. So, what do I need to do in order to view the overlay