[jQuery] Using message in $.blockUI

[jQuery] Using message in $.blockUI


Hi all,
I have some problem with code:
When I try code like this:
$('#showDialog').click(function() {
$('#question').load('wait.php?ID=1&NUMBER=1');
$.blockUI({message: $('#question'), css:{width:'275px'}});
});
I have some error in IE: Unexpected call to method or treatment to the
property.
How I can get content from wait.php and return it to message?
Am trying this:
$('#showDialog').click(function() {
$.blockUI({
message: function() {
$('#question').load('wait.php?ID=1&NUMBER=1');
return $('#question');
},
css:{width:'275px'}});
});
and this:
$('#showDialog').click(function() {
$.blockUI({
message: function() {
$('#question').load('wait.php?ID=1&NUMBER=1');
return $('#question');
},
css:{width:'275px'}});
});
and this:
$('#showDialog').click(function() {
$.blockUI({
message: function() {
$.ajax({url: 'wait.php?ID=374&LOT_NUMBER=1', cache: false, success:
function(msg) {return $('#question').html(msg);}});
return $('#question');
},
css:{width:'275px'}});
});
How I can do it correct? Help me please.
Thanks a lot.