DonRul
28 Feb 2012, 5:01 PM
I have used Ext.Msg.alert in a number of instances and it consistently disables my UI.
Here is one example:
Ext.Ajax.request({
url: '../Services/PortalApp-Web-Services-PortalDomain.svc/JSON/SubmitChanges',
method: 'POST',
params: JSON.stringify(payload),
headers: {
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Content-Type': 'application/json'
},
scope: this,
success: function (result) {
var response=Ext.JSON.decode(result.responseText);
Ext.Msg.alert('Success', 'Submitted successfully');
var patientOrderStore = Ext.data.StoreManager.lookup('PatientOrderStore');
patientOrderStore.load();
Ext.getCmp('maincarosel').setActiveItem(0);
},
failure: function (result, request) {
Ext.Msg.alert('Failed', 'Submission unsuccessful');
}
});
In all cases the messagebox displays and masks the UI. When you dismiss the messagebox there is a flicker but the mask is not removed from the UI.
This repros on Chrome, Safari, and iPad
Note also when I try to use the callback from the messagebox the callback is never fired.
Ext.Msg.alert('Success', 'Submitted successfully', function (){
var test = "never get here";
});
Here is one example:
Ext.Ajax.request({
url: '../Services/PortalApp-Web-Services-PortalDomain.svc/JSON/SubmitChanges',
method: 'POST',
params: JSON.stringify(payload),
headers: {
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Content-Type': 'application/json'
},
scope: this,
success: function (result) {
var response=Ext.JSON.decode(result.responseText);
Ext.Msg.alert('Success', 'Submitted successfully');
var patientOrderStore = Ext.data.StoreManager.lookup('PatientOrderStore');
patientOrderStore.load();
Ext.getCmp('maincarosel').setActiveItem(0);
},
failure: function (result, request) {
Ext.Msg.alert('Failed', 'Submission unsuccessful');
}
});
In all cases the messagebox displays and masks the UI. When you dismiss the messagebox there is a flicker but the mask is not removed from the UI.
This repros on Chrome, Safari, and iPad
Note also when I try to use the callback from the messagebox the callback is never fired.
Ext.Msg.alert('Success', 'Submitted successfully', function (){
var test = "never get here";
});