Results 1 to 4 of 4

Thread: Disable LoadMask

  1. #1

    Default Disable LoadMask

    I am using 4 Ext.Panel's side by side to display 4 different pieces of information that all update at the same time from a url, the loadmask of course is automatically firing for each one. I am wondering if it is possible to hide or disable each of these loadmasks or have a single loadmask that covers all 4 boxes until they are filled? Total newbie, so I need more than a yes or no.

  2. #2
    Sencha Premium Member rivarecords's Avatar
    Join Date
    Apr 2010
    Location
    Fredrock, MD
    Posts
    24

    Default

    Set loadMask: false on the panels and create a loadMask:
    Code:
    myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
    Before loading your url or store call myMask.show() then when the last store loads, in a callback do myMask.hide().

  3. #3

    Default

    That is very close to what I had thought I was reading. For whatever reason I don't seem to be able to quiet down the automatic loadmask and the new mask is not showing. I'll keep tinkering. Can't imagine what I am doing wrong.

    Edit: I have now succeeded at getting the body mask to work. But puzzled as to why the auto loadMask(s) are not muting.

  4. #4
    Sencha Premium Member rivarecords's Avatar
    Join Date
    Apr 2010
    Location
    Fredrock, MD
    Posts
    24

    Default

    Quote Originally Posted by twright View Post
    Edit: I have now succeeded at getting the body mask to work. But puzzled as to why the auto loadMask(s) are not muting.
    If you are using autoLoad to load from a url then add text: ' '.
    Make sure there is a space or it will default to the 'Loading...' text.

    Code:
    autoLoad: {url:'/somepage.cfm?remoteEvent=dothatthing', 
           params: {
           'cool': 'yes',
           'groove': 'funky,
           'sort': 'name',
           'dir': 'ASC'
           },text: ' '},

Similar Threads

  1. LoadMask
    By ald_2008 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Mar 2009, 1:49 PM
  2. LoadMask
    By ald_2008 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Feb 2009, 3:41 PM
  3. Replies: 6
    Last Post: 5 Jan 2009, 7:10 AM
  4. loadmask
    By sonic64 in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 12 Apr 2007, 4:54 AM

Posting Permissions

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