Hello
I am trying to add block UI or similar window to indicate on going processing with in an Accordion. It's not showing up with Accordion. E.g. on list box (the control is on Accordion) change event, I want to display "Please wait" window. My window never shows up.
Here is my code
var myApp;
myApp = myApp || (function () {
var pleaseWaitDiv = $('<div class="modal hide" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false"><div class="modal-header" style="z-index: -1"><h1>Processing...</h1></div><div class="modal-body"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"></div></div></div></div>');
return {
showPleaseWait: function () {
pleaseWaitDiv.modal();
},
hidePleaseWait: function () {
pleaseWaitDiv.modal('hide');
},
};
})();
$('#lstCustomView').change(function ()
{
myApp.showPleaseWait();
if ($('#lstCustomView').val() != "-1") {
$("#btnEditView").removeAttr("disabled");
$("#btnDeleteView").removeAttr("disabled");
$('#txtViewName').val($('#lstCustomView option:selected').html());
$("#btnEditView").text('Save View');
setGridColumn($(this).val());
bootbox.alert("View Loaded.", function () {
});
}
else
{
//$("#btnEditView").attr('disabled','disabled');
//$("#btnDeleteView").attr('disabled', 'disabled');
//$('#txtViewName').val('');
//$("#btnEditView").text('Edit View');
ResetButton();
}
myApp.hidePleaseWait();
});
Please advise. If you have any other sample, please let me know.
You guys are very helpful.
Thanks a lot.