Results 1 to 3 of 3

Thread: LoadMask Modal

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    32

    Default LoadMask Modal

    Hi, we use the following load mask for any interactions with the server:

    Code:
    var myMask = new Ext.LoadMask(Ext.getBody(), {msg:'Please wait...'});
    Ext.Ajax.on('beforerequest', function(){ myMask.show();});
    Ext.Ajax.on('requestcomplete', myMask.hide, myMask);
    Ext.Ajax.on('requestexception', myMask.hide, myMask);
    However, when the mask shows we would like it to disable all components behind it, is there a way to do this?

    thanks

  2. #2

    Default

    Tell the container that holds your components to .disable()?

    Override Ext.Component to enable/disable on a custom event?
    Wes

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    32

    Default

    Thanks.

    got round it by creating a tiny modal window that sits behind the mask:

    Code:
    var myMask = new Ext.LoadMask(Ext.getBody(), {msg:'Please wait...'});
    var commWindow = new Ext.Window({width: 1,height: 1,modal: true});
    Ext.Ajax.on('beforerequest', function(){ myMask.show();commWindow.show();});
    Ext.Ajax.on('requestcomplete', function(){ myMask.hide();commWindow.hide();});
    Ext.Ajax.on('requestexception', function(){ myMask.hide();commWindow.hide();});

Similar Threads

  1. Replies: 2
    Last Post: 2 Nov 2010, 10:53 AM
  2. [CLOSED] Sample modal window in tutorials is not modal.
    By janusmccarthy in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 19 Apr 2010, 7:46 AM
  3. Replies: 24
    Last Post: 17 Jul 2009, 7:53 AM
  4. [Solved]Message Box (modal) or Modal window - Bound to tabpanel??
    By EXT-Phuket in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 14 Apr 2009, 7:22 PM
  5. [1.0a2 Rev 5] MessageBox opens not modal (modal: true)
    By Arikon in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 27 Feb 2007, 9:52 PM

Posting Permissions

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