[jQuery] unblockUI: problem with Internet Explorer

[jQuery] unblockUI: problem with Internet Explorer


Hi everyone.
I'm using blockUI for a project and can't get it to work properly
under IE 6 and 7 (yeah, I know what you guys thinking, me too).
The problem comes when I try to use the function $.unblockUI() when
certain events trigger, ie:
var cancel =
$("<input type='button' value='cancel' />")
.bind("click", function(){ $.unblockUI(); });
var message =
$("<form>")
.append("<input type='submit' value='Ok' />")
.append(cancel);
// This is where I add functionality.
$(".myAnchor")
.bind(
"click",
$.blockUI(message);
Everything goes swimingly and the modal form appear whenever I click
on "MyAnchor", but when I click on "Cancel" I can't get it to unblock
(it works on Firefox though, of course). I think I've tried
everything, like defining the cancel button through more rustic means
like so (ready to remember the early 2000's?):
var cancel =
$("<input type='button' value='cancel' onclick=' $.unblockUI(); ' /