<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using jQuery to enhance ASP.NET AJAX progress indication</title>
	<atom:link href="http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Sun, 14 Mar 2010 18:14:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-38080</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 19 Feb 2010 22:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-38080</guid>
		<description>It&#039;s hard for me to help you debug that, not knowing the specifics (e.g. is validation on the page during every request, which elements trigger UpdatePanel refreshes, etc).  I&#039;d suggest stepping through that in Firebug, inspecting the DOM, and trying to get a sense for what&#039;s going on in your particular situation.</description>
		<content:encoded><![CDATA[<p>It&#8217;s hard for me to help you debug that, not knowing the specifics (e.g. is validation on the page during every request, which elements trigger UpdatePanel refreshes, etc).  I&#8217;d suggest stepping through that in Firebug, inspecting the DOM, and trying to get a sense for what&#8217;s going on in your particular situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-38078</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Fri, 19 Feb 2010 21:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-38078</guid>
		<description>I spoke to soon.  if (Page_IsValid) works for the button that has validatoin setup, but it has stopped BlockUI from firing on [some] other buttons.  I actually have more than one control (buttons, links and linkbuttons) setup to initiate blockUI, some with validation but most without.  Some are now just not firing at all.

e.g.  

 &lt;pre lang=&quot;javascript&quot;&gt;$(document).ready(function() {
    // Allows the div.blockMsg style in CSS to override BlockUI&#039;s defaults.
    $.blockUI.defaults.css = {};

 $(&#039;#button1, #button2, #button3, #button4, #button5, \
#button6, #button7, #button8, #button9, #button10, \
#button11, #button12, #button13, #button14, #button15, \
#lnkbutton16, #lnkbutton17, #lnkbutton18, #lnkbutton19, #lnkbutton20&#039;).live(&quot;click&quot;, function() {
if (Page_IsValid) {
            $.blockUI({ message: &#039; &#039;,
                css: {
                    top: &#039;40%&#039;, //($(window).height()- 100 ) / 2 + &#039;px&#039;,
                    left: ($(window).width() - 392) / 2 + &#039;px&#039;
                }
            });
            var IE = /*@cc_on!@*/false;
            if (IE) {
                eval(this.href);
            }
            setTimeout($.unblockUI, 5000);
}

        });&lt;/pre&gt;

..

Help please?</description>
		<content:encoded><![CDATA[<p>I spoke to soon.  if (Page_IsValid) works for the button that has validatoin setup, but it has stopped BlockUI from firing on [some] other buttons.  I actually have more than one control (buttons, links and linkbuttons) setup to initiate blockUI, some with validation but most without.  Some are now just not firing at all.</p>
<p>e.g.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// Allows the div.blockMsg style in CSS to override BlockUI's defaults.</span>
    $.<span style="color: #660066;">blockUI</span>.<span style="color: #660066;">defaults</span>.<span style="color: #660066;">css</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
 $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#button1, #button2, #button3, #button4, #button5, <span style="color: #000099; font-weight: bold;">\</span>
#button6, #button7, #button8, #button9, #button10, <span style="color: #000099; font-weight: bold;">\</span>
#button11, #button12, #button13, #button14, #button15, <span style="color: #000099; font-weight: bold;">\</span>
#lnkbutton16, #lnkbutton17, #lnkbutton18, #lnkbutton19, #lnkbutton20'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Page_IsValid<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $.<span style="color: #660066;">blockUI</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> message<span style="color: #339933;">:</span> <span style="color: #3366CC;">' '</span><span style="color: #339933;">,</span>
                css<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                    top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'40%'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//($(window).height()- 100 ) / 2 + 'px',</span>
                    left<span style="color: #339933;">:</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">392</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px'</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> IE <span style="color: #339933;">=</span> <span style="color: #006600; font-style: italic;">/*@cc_on!@*/</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>IE<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">href</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            setTimeout<span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">unblockUI</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">5000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>..</p>
<p>Help please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-38077</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Fri, 19 Feb 2010 20:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-38077</guid>
		<description>That easy!  Many thanks!</description>
		<content:encoded><![CDATA[<p>That easy!  Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-38076</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 19 Feb 2010 18:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-38076</guid>
		<description>Just add in a conditional based on that variable, like this:

&lt;pre lang=&quot;javascript&quot;&gt;$(&#039;#lbSubmit, #lbCancel&#039;).live(&quot;click&quot;, function() {
  if (Page_IsValid) {
    // Your BlockUI code here
  }
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Just add in a conditional based on that variable, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#lbSubmit, #lbCancel'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Page_IsValid<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// Your BlockUI code here</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-38072</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Fri, 19 Feb 2010 11:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-38072</guid>
		<description>Hi Dave,

You lost me.  Can you explain it in a bit more detail please?  I haven&#039;t managed to get this to work.  I am still using a timeout and the BlockUI is still firing when the page isn&#039;t valid.

How do I test the Page_IsValid global variable from within my blockUI.js file?  My blockUI.js currently looks like this:

&lt;pre lang=&quot;javascript&quot;&gt;$(document).ready(function() {
    // Allows the div.blockMsg style in CSS to override BlockUI&#039;s defaults.
    $.blockUI.defaults.css = {};

    $(&#039;#lbSubmit, #lbCancel&#039;).live(&quot;click&quot;, function() {
            $.blockUI({ message: &#039; &#039;,
                css: {
                    top: &#039;40%&#039;, //($(window).height()- 100 ) / 2 + &#039;px&#039;,
                    left: ($(window).width() - 392) / 2 + &#039;px&#039;
                }
            });
            var IE = /*@cc_on!@*/false;
            if (IE) {
                eval(this.href);
            }
            setTimeout($.unblockUI, 5000);
        });

    // Get a reference to the PageRequestManager.
    var prm = Sys.WebForms.PageRequestManager.getInstance();

 prm.add_endRequest(function() {        
        // Unblock the form when a partial postback ends.
        $.unblockUI();
    });
    
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>You lost me.  Can you explain it in a bit more detail please?  I haven&#8217;t managed to get this to work.  I am still using a timeout and the BlockUI is still firing when the page isn&#8217;t valid.</p>
<p>How do I test the Page_IsValid global variable from within my blockUI.js file?  My blockUI.js currently looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// Allows the div.blockMsg style in CSS to override BlockUI's defaults.</span>
    $.<span style="color: #660066;">blockUI</span>.<span style="color: #660066;">defaults</span>.<span style="color: #660066;">css</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#lbSubmit, #lbCancel'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;click&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            $.<span style="color: #660066;">blockUI</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> message<span style="color: #339933;">:</span> <span style="color: #3366CC;">' '</span><span style="color: #339933;">,</span>
                css<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
                    top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'40%'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//($(window).height()- 100 ) / 2 + 'px',</span>
                    left<span style="color: #339933;">:</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">392</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'px'</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> IE <span style="color: #339933;">=</span> <span style="color: #006600; font-style: italic;">/*@cc_on!@*/</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>IE<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">href</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            setTimeout<span style="color: #009900;">&#40;</span>$.<span style="color: #660066;">unblockUI</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">5000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// Get a reference to the PageRequestManager.</span>
    <span style="color: #003366; font-weight: bold;">var</span> prm <span style="color: #339933;">=</span> Sys.<span style="color: #660066;">WebForms</span>.<span style="color: #660066;">PageRequestManager</span>.<span style="color: #660066;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 prm.<span style="color: #660066;">add_endRequest</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>        
        <span style="color: #006600; font-style: italic;">// Unblock the form when a partial postback ends.</span>
        $.<span style="color: #660066;">unblockUI</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Ramit</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37294</link>
		<dc:creator>Ramit</dc:creator>
		<pubDate>Thu, 26 Nov 2009 10:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37294</guid>
		<description>Thnx :)</description>
		<content:encoded><![CDATA[<p>Thnx :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37275</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 25 Nov 2009 15:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37275</guid>
		<description>If you want the BlockUI modal to appear when you click a checkbox, you can use something like this to attach handlers to all their click events:

&lt;pre lang=&quot;javascript&quot;&gt;$(document).ready(function() {
  $(&quot;#GridView1 :checkbox&quot;).click(function() {
    // This assumes you set up the progress
    //  bar CSS in the example above.
    $(&#039;#GridView1&#039;).block({ message: null });
  });
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>If you want the BlockUI modal to appear when you click a checkbox, you can use something like this to attach handlers to all their click events:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#GridView1 :checkbox&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// This assumes you set up the progress</span>
    <span style="color: #006600; font-style: italic;">//  bar CSS in the example above.</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#GridView1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">block</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> message<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">null</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37273</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 25 Nov 2009 15:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37273</guid>
		<description>Sorry, I missed this before somehow.

Probably the easiest fix would be testing the Page_IsValid global variable before blocking.  ASP.NET&#039;s client-side validation code maintains that based on the status on the client-side validation.

Depending on your page, the better solution may be to move the BlockUI code from the button&#039;s click event to the PageRequestManager&#039;s BeginRequest event.  That should only fire &lt;em&gt;after&lt;/em&gt; validation has succeeded.  However, since that fires before &lt;em&gt;every&lt;/em&gt; partial postback, you may need to test that the triggering panel is one that you do in fact want to cause a BlockUI modal.</description>
		<content:encoded><![CDATA[<p>Sorry, I missed this before somehow.</p>
<p>Probably the easiest fix would be testing the Page_IsValid global variable before blocking.  ASP.NET&#8217;s client-side validation code maintains that based on the status on the client-side validation.</p>
<p>Depending on your page, the better solution may be to move the BlockUI code from the button&#8217;s click event to the PageRequestManager&#8217;s BeginRequest event.  That should only fire <em>after</em> validation has succeeded.  However, since that fires before <em>every</em> partial postback, you may need to test that the triggering panel is one that you do in fact want to cause a BlockUI modal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37270</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Wed, 25 Nov 2009 14:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37270</guid>
		<description>Any idea how to do this?</description>
		<content:encoded><![CDATA[<p>Any idea how to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramit</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37268</link>
		<dc:creator>Ramit</dc:creator>
		<pubDate>Wed, 25 Nov 2009 11:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37268</guid>
		<description>Hi

Thanks for the excellent demonstration. I was trying to implement your code in one of my projects where I need to refresh the gridview based on the checkbox selection. I tried to hook up the event to selectindexchenged event of checkbox, but the jquery effect didnt work. Can you please suggest me something.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Thanks for the excellent demonstration. I was trying to implement your code in one of my projects where I need to refresh the gridview based on the checkbox selection. I tried to hook up the event to selectindexchenged event of checkbox, but the jquery effect didnt work. Can you please suggest me something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37087</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Tue, 17 Nov 2009 07:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37087</guid>
		<description>I have validation setup on a webform using a combindation of asp:RequiredFieldValidators and asp:RegularExpressionValidators.  I have a BlockUI handler configured for the Submit button, which is working nicely.  However, if validation fails the message box pops up informing the user that validation has failed - when the OK button is clicked BlockUI kicks in and since it won&#039;t cause a postback the UI is never unblocked.  I currently have a timer set, which unlocks the UI, but this is a nasty work around.  Is there a way to bypass BlockUI if validation fails?</description>
		<content:encoded><![CDATA[<p>I have validation setup on a webform using a combindation of asp:RequiredFieldValidators and asp:RegularExpressionValidators.  I have a BlockUI handler configured for the Submit button, which is working nicely.  However, if validation fails the message box pops up informing the user that validation has failed &#8211; when the OK button is clicked BlockUI kicks in and since it won&#8217;t cause a postback the UI is never unblocked.  I currently have a timer set, which unlocks the UI, but this is a nasty work around.  Is there a way to bypass BlockUI if validation fails?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37034</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Sat, 14 Nov 2009 14:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37034</guid>
		<description>Thanks Dave!  Upgrading my jQuery library to 1.3 and using .live(&quot;click&quot;, function() works perfectly.</description>
		<content:encoded><![CDATA[<p>Thanks Dave!  Upgrading my jQuery library to 1.3 and using .live(&#8220;click&#8221;, function() works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37033</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sat, 14 Nov 2009 08:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37033</guid>
		<description>If that refresh is a partial postback &lt;em&gt;and&lt;/em&gt; the refresh replaces the markup for the BlockUI trigger, you&#039;ll need to re-attach the handler after the partial postback (in EndRequest or pageLoad).  Alternatively, you could use jQuery&#039;s live() to wire up the handler instead of click().</description>
		<content:encoded><![CDATA[<p>If that refresh is a partial postback <em>and</em> the refresh replaces the markup for the BlockUI trigger, you&#8217;ll need to re-attach the handler after the partial postback (in EndRequest or pageLoad).  Alternatively, you could use jQuery&#8217;s live() to wire up the handler instead of click().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markis</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37030</link>
		<dc:creator>Markis</dc:creator>
		<pubDate>Fri, 13 Nov 2009 17:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37030</guid>
		<description>Thanks Dave.  That is much neater.  This also seems to have resolved my issue of the BlockUI not detecting the partial postback for the LinkButton.  This is working now too. However, it only works the first time.  

E.g. I have a dropdownlist with a list of Provinces (States), and the click of the link button refreshes the data based on which Province is selected.  The BlockUI kicks on the first click, but subsequent clicks don&#039;t initiate BlockUI.  Any idea why?  (If I force a full postback using Response.Redirect(URL) it works - but that refreshes the page with the default items which is no good.)</description>
		<content:encoded><![CDATA[<p>Thanks Dave.  That is much neater.  This also seems to have resolved my issue of the BlockUI not detecting the partial postback for the LinkButton.  This is working now too. However, it only works the first time.  </p>
<p>E.g. I have a dropdownlist with a list of Provinces (States), and the click of the link button refreshes the data based on which Province is selected.  The BlockUI kicks on the first click, but subsequent clicks don&#8217;t initiate BlockUI.  Any idea why?  (If I force a full postback using Response.Redirect(URL) it works &#8211; but that refreshes the page with the default items which is no good.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/#comment-37029</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 13 Nov 2009 16:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=694#comment-37029</guid>
		<description>By using a single jQuery selector, I mean something like:

&lt;pre lang=&quot;javascript&quot;&gt;$(&#039;#Element1, #Element2, #Element3&#039;).click(function() {
  $.blockUI();
});&lt;/pre&gt;

Or, if you tag all of those server controls with a CSS flag, you could use a single CSS-based jQuery selector.</description>
		<content:encoded><![CDATA[<p>By using a single jQuery selector, I mean something like:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#Element1, #Element2, #Element3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $.<span style="color: #660066;">blockUI</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Or, if you tag all of those server controls with a CSS flag, you could use a single CSS-based jQuery selector.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
