blockui

jquery blockUI tell if page or specific element is blocked

主宰稳场 提交于 2019-12-04 00:14:19
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 Look what I found here $(document).ready(function() { $('#demo14').click(function() { $.blockUI({ fadeIn: 1000, timeout: 2000, onBlock: function() { alert('Page is now blocked; fadeIn complete'); } }); }); Evidently there's one for Block and unBlock sorta like a onSuccess function. So on

blockui over jQueryUI modal dialog

扶醉桌前 提交于 2019-12-03 05:35:55
问题 I can't make BlockUI work over a modal dialog. I tried to look after z-index issues, but without success... In my web page, here is the head : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js" ></script> <script type="text/javascript" src="http://jquery.malsup.com/block/jquery.blockUI.js?v2.38" ></script> <link media="all"

jQuery BlockUi Message after another

笑着哭i 提交于 2019-11-30 23:11:59
I'm using jQuery BlockUI plugin, and i have been able to sucessfully show a single message in the page, however... let's say that I want to show 3 messages , one after another. Something like: message: 'hello world!' message: 'hello galaxy!' message: 'hello universe!' how do I do this with jQuery BlockUI? Just create a div in your page like this: <div id="blockMessage"></div> And for the script... $.blockUI({ message: $('#blockMessage') }); $("#blockMessage").html('Hello World!'); $("#blockMessage").html('Hello Galaxy!'); $("#blockMessage").html('Hello Universe!); $.unblockUI(); This goes by

JQuery BlockUI with UpdatePanel Viewstate Issue

人走茶凉 提交于 2019-11-30 15:48:53
问题 I am using BlockUI to show a modal. Within the blocked modal I have an update panel. Within the update panel I have a textbox and a button that submits the content back to the server. Everything works fine up to this point (the blockUI is called, the modal appears, and the button performs the postback). However, when the button's click event is fired the value for the textbox is consistently empty even if text was entered. When the update panel updates the textbox shows up blank. It appears

Chrome / Firefox doesn't display images in objects shown in beforeunload event

点点圈 提交于 2019-11-30 09:53:48
问题 I'm using jQuery blockUI plugin to show some nifty "loader" on each AJAX call and each URL change. Here is full code responsible for that: var rootPath = document.body.getAttribute("data-root"); $.blockUI.defaults.message = '<h3><img style="margin: 0 5px 5px 0" src="' + rootPath + '/images/process.gif" width="48" height="48" />In progress...</h3>'; $.blockUI.defaults.css.top = '45%'; $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI); $(window).on('beforeunload', function(){$.blockUI();})

Are there progress update events in jQuery ajax?

橙三吉。 提交于 2019-11-30 09:20:58
i have long running task that gets called using jquery ajax. i am using the block ui plugin to show "loading". is there anyway i can send progress messages back to the client to show progress and have that updated on the block ui plugin message. So it will show this (as the server does its work) . . "Loading first source . . . " "Loading second source . . . " "Loading third source . . . " "Parsing Results . . . " From what I've seen for the case of uploading stuff - people create a separate gateway and query it for progress info as it's only avaliable on the server side. But I think it's not

Chrome / Firefox doesn't display images in objects shown in beforeunload event

…衆ロ難τιáo~ 提交于 2019-11-29 17:28:03
I'm using jQuery blockUI plugin to show some nifty "loader" on each AJAX call and each URL change. Here is full code responsible for that: var rootPath = document.body.getAttribute("data-root"); $.blockUI.defaults.message = '<h3><img style="margin: 0 5px 5px 0" src="' + rootPath + '/images/process.gif" width="48" height="48" />In progress...</h3>'; $.blockUI.defaults.css.top = '45%'; $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI); $(window).on('beforeunload', function(){$.blockUI();}); Everything is fine during AJAX call, however, I've noticed that Chrome and Firefox does display

How to reference p:commandLink in p:dataTable from p:blockUI trigger?

让人想犯罪 __ 提交于 2019-11-29 10:33:59
This is not working for me: <h:form id="wfMgtForm"> . . . <p:dataTable id="wfTable" ..." var="item"> <p:column> . . . </p:column> <p:column> <p:commandLink id="editWatchfolderButtonId" oncomplete="dlgEditWF.show()" update=":editWFForm" process="@none"> <f:param value="#{item.value.ID}" name="editId"/> <h:graphicImage alt="Edit Image" style="border: none" value="./images/edit.png" /> </p:commandLink> </p:column> . . . <p:blockUI block=":wfMgtForm" trigger="editWatchfolderButtonId"> Loading...<br/> <p:graphicImage alt="Loader Image" value="/images/loader.gif"/> </p:blockUI> </h:form> The error

Primefaces blockUI stops working after ajax update

只谈情不闲聊 提交于 2019-11-28 13:28:38
I am trying to create a datatable that displays a blockUI whenever it is busy, and I have been mostly successful. It now grays out and shows "Loading..." whenever I click either of two commandButtons, sort the datatable by clicking on a header, or page through the datatable. You can see the code for it below. The problem is that after I have used one of the commandButtons (which runs an ajax update on the blocked element), subsequent actions do not trigger the blockUI (until I refresh the page). For example: Load page Click a datatable header - blockUI appears until table is finished sorting

Primefaces blockUI stops working after ajax update

杀马特。学长 韩版系。学妹 提交于 2019-11-27 07:43:22
问题 I am trying to create a datatable that displays a blockUI whenever it is busy, and I have been mostly successful. It now grays out and shows "Loading..." whenever I click either of two commandButtons, sort the datatable by clicking on a header, or page through the datatable. You can see the code for it below. The problem is that after I have used one of the commandButtons (which runs an ajax update on the blocked element), subsequent actions do not trigger the blockUI (until I refresh the