Hi All,
I'd like to use the blockUI plugin to block a div while performing an
ajax call. In the call, the div that's being blocked gets reloaded.
Then, before I call unblock, I reattach event handlers (click handlers,
etc) to the controls in the newly loaded div. Well, I try to, at least.
When I try to do that, the event handlers do not work (an attached click
does nothing). I'm guessing that they can't be attached while the div is
being blocked, but am not sure.
Known issue? Workaround? Thoughts?
I would like to reattach the event handlers before removing the block on
the div, so that it's ready when unblock is called.
If it helps, I'm doing this before the ajax call:
$('#ml_shippingAddresses').block('<h1>Saving...</h1>', {
backgroundColor:'white', border: '1px solid silver' });
Then when the ajax call returns I'm repopulating the html inside
ml_shippingAddresses and reattaching event handlers to DOM nodes in it.
Then calling:
$('#ml_shippingAddresses').unblock();
Thanks,
Jack