PDA

View Full Version : screen grayed out after submit... hidden waitmsg?



mice-pace
8 Nov 2012, 5:26 PM
I was customising a piece of code someone else wrote, causing the form to basically load the data into another panel and switch to it, and this appears to work fine in every respect except that the screen is grayed out when i finally get there... my guess is that the wait message is still displayed or extant someone, and keeping the screen grayed out.

Has anyone ran into this before, can they confirm it? If it is, what do i run to tell the waitmsg it's job is done? and if it's not what, would you recommend i should check to track this down?


var form = Ext.getCmp('jobFindPanel').getForm();
if(form.isValid())
form.submit({
waitMsg:'Loading...',
url: 'data/searchjobs.php',
success: function(form,action) {
if (action.result.success == "true"){
var data = action.result.data;
var metadata = action.result.rows;
report = Ext.create('MyApp.view.jobReport');
report.displayJobList(data, metadata);
centerRegion = Ext.getCmp('centerPanel');
centerRegion.removeAll();
centerRegion.add(report);
}else{
Ext.MessageBox.alert('Processing Error',action.msg);
}
},
failure: function(form,action){
Ext.MessageBox.alert('Access Error',action.msg);
}
});

PostScript: I'm using ExtJS 4.1... I hope this code is fairly self explanatory, the only thing not quite explaining itself is displayJobList()... You probably don't need to know what it's doing, but it loads the data into that panel before the panel is displayed

sword-it
9 Nov 2012, 2:14 AM
Hi mice-pace,

Read the following thread -

http://www.sencha.com/forum/showthread.php?248514-How-to-handle-device-orientation-in-ST2&p=909629#post909629

http://www.sencha.com/forum/showthread.php?228970-4.1.1-GA-Form-Submit-Problem (http://www.sencha.com/forum/showthread.php?248514-How-to-handle-device-orientation-in-ST2&p=909629#post909629)