Results 1 to 2 of 2

Thread: screen grayed out after submit... hidden waitmsg?

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    81
    Answers
    3
    Vote Rating
    0
      0  

    Default screen grayed out after submit... hidden waitmsg?

    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?

    Code:
    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

  2. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      0  
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •