1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default Masking

    Masking


    Does anyone know on how to apply a page mask during page loading once a submit button is clicked?

    I have 2 grids on the page and I want to apply page masking until loading of the two tables are completed.

    Thank you.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Ext.getBody().mask('Saving data...', 'x-mask-loading');

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default


    Thanks for your reply.

    What I mean is, if i put this code in the Submit Button handler:

    Ext.getBody().mask('Loading..');
    PopulateGrids();
    Ext.getBody().unmask();

    The loading message doesn't appear because extjs is asynchronous. It executes the unmask() statement even before the PopulateGrids() finished its execution.

    I hope someone can help me with this.

    Thanks again.

  4. #4
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    well, unmask after the stuff is loaded via event handlers or callbacks.

  5. #5
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Look at the docs for the 'load' event of the datastore.

  6. #6
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default


    Thanks again for your reply.

    Yes, I have tried that. But as what I've mentioned before in post, I have two grids. Is there a way where I can check that BOTH grids have completed loading? After the've loaded successfully that's when I'll do the unmasking.

    I really appreciate your continous reply on this.

  7. #7
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    michaeljordan is on a distinguished road

      0  

    Default


    Thanks JGarcia! I'll just put the unmask on one of the datastore for now since both of them almost finished loading at the same time!

    I really appreciate your help!!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi