[jQuery] Block UI plugin not unblocking on xhr.abort() ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>Mike (or
others):</FONT></SPAN></DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>I've
recently upgraded my jQuery core and block UI code to the most recent versions
and have noticed something is not working the way it did before.
</FONT></SPAN></DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>I'm using
the default settings recommended on your web site to block and unblock the
UI:</FONT></SPAN></DIV><SPAN class=406330600-13042007><CODE class=mix><SPAN
class=jquery>
<DIV><BR>$</SPAN>().ajaxStart(<SPAN class=406330600-13042007> </SPAN><SPAN
class=jquery>$</SPAN>.<SPAN class=plugin>blockUI<SPAN class=406330600-13042007>
</SPAN></SPAN>).ajaxStop(<SPAN class=406330600-13042007> </SPAN><SPAN
class=jquery>$</SPAN>.<SPAN class=plugin>unblockUI<SPAN
class=406330600-13042007> </SPAN></SPAN>);</DIV>
<DIV><FONT face="Trebuchet MS" size=2></FONT> </DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>When I make
an ajax call with $.ajax, I assign the XMLHttpRequest object that is returned to
a variable so I can call the abort() method on it if the user clicks "cancel"
within the block UI dialog I use. For example:</FONT></SPAN></DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406330600-13042007><FONT size=2>var xhr = $.ajax( { url:
'/test.htm' } );</FONT></SPAN></DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>While
that's loading, I call xhr.abort() to kill the request. That bit still works,
but the block UI overlay never goes away. Is this a bug, by-design behavior,
something else? I get the same result from Firefox 2.0, IE 6 and IE
7.</FONT></SPAN></DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS" size=2>Thanks for
any help you can provide,</FONT></SPAN></DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=406330600-13042007><FONT face="Trebuchet MS"
size=2>m.</FONT></SPAN></CODE></DIV></SPAN></BODY></HTML>