jquery-blockui

Begin and end request in UpdatePanel using jQuery

随声附和 提交于 2019-12-07 11:11:17
问题 How get Method BeginRequest & EndRequest In UpdatePanel ?(in jquery) function onBeginRequest() { //$.blockui; } function onEndRequest() { //$.unblockui; } 回答1: with(Sys.WebForms.PageRequestManager.getInstance() ) { add_beginRequest(onBeginRequest); add_endRequest(onEndRequest); } function onBeginRequest(sender, args) { $.blockUI(); } function onEndRequest(sender, args) { 回答2: you can capture these events By Sys.WebForms.PageRequestManager.getInstance() this. 回答3: Use this code to have no

jquery plugin 'blockUI' doesn't gray out screen in firefox

北城余情 提交于 2019-12-06 15:57:21
I'm attempting to use blockUI to block the interface of my web app while performing an ajax operation, but the screen was refusing to gray out for me in firefox (although the message box does show up). I finally figured out that everything was working except the calls to jquery's fadeIn or show. blockUI starts with elements that have explicitly declared styles of "display: none;" and calls jquery's "fadeIn()" or "show()" functions do display them. Is there anything I'm missing in either jquery or blockUI that would explain this behavior? Edit: I just discovered that the code works find in

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

Creating 300 instances of blockui

故事扮演 提交于 2019-12-04 06:28:52
问题 I am currently trying to create 300 instances of blockui Currently this can only be done by copy and paste: For example: <script type="text/javascript"> $(document).ready(function() { $('#t1').click(function() { $.blockUI({ message: $('#q1'), css: { width: '1024px' } }); }); $('#yes1').click(function() { // update the block message $.blockUI({ message: "<h1>Remote call in progress...</h1>" }); $.ajax({ url: 'wait.php', cache: false, complete: function() { // unblock when remote call returns $

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();})

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

jquery ajax beforesend

夙愿已清 提交于 2019-11-28 06:20:31
I have a simple ajax call that is executing a function on the beforeSend and on complete. They execute fine but the beforeSend is "seemingly" not executed until after the success. On the before send there is a "Please wait" notification. If I put a break after the function in the beforeSend then it will show that notification and then hit the success. Without the break point then it will sit there and think while waiting for the response and then my please wait notification will appear for a fraction of a second after the success is hit. The desired functionality is to have the notification

TypeError: $.browser is undefined

旧时模样 提交于 2019-11-27 11:01:13
I am using msdropdown image combo box to create dropdown select options. when i run this code locally on my PC, everything works great. But when i run it on go daddy servers, the msdropdown becomes disabled. It doesn't work on any browsers. Firebug displays the error as: TypeError: $.browser is undefined Please help me with this. echo <<<_START <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>profile</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <meta name="generator" content="HAPedit 3.1"> <link

jQuery ajax beforeSend

为君一笑 提交于 2019-11-27 01:16:50
问题 I have a simple AJAX call that is executing a function on the beforeSend and on complete . They execute fine but the beforeSend is "seemingly" not executed until after the success. On the beforeSend there is a "Please wait" notification. If I put a break after the function in the beforeSend then it will show that notification and then hit the success. Without the break point then it will sit there and think while waiting for the response and then my please wait notification will appear for a

TypeError: $.browser is undefined

拥有回忆 提交于 2019-11-26 15:23:25
问题 I am using msdropdown image combo box to create dropdown select options. when i run this code locally on my PC, everything works great. But when i run it on go daddy servers, the msdropdown becomes disabled. It doesn't work on any browsers. Firebug displays the error as: TypeError: $.browser is undefined Please help me with this. echo <<<_START <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>profile</title> <meta http-equiv=