1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
    gameboy87 is on a distinguished road

      0  

    Default Unanswered: How to Load mask to a window/store before loading ?

    Unanswered: How to Load mask to a window/store before loading ?


    I call upon different functions to load a store and from the the load event of the store's listener, a function is called to load the window and distribute the data to all components in it. So, it takes some 2 seconds for the window to load. Can I use some dummy LoadMask before loading the window so that the user knows something is going to Load ?

    Thanks.

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    Try this:
    var el = window.getEl();

    el.mask('Mask text');
    ...
    el.unmask();

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
    gameboy87 is on a distinguished road

      0  

    Default


    Printing,

    var window= Ext.create('Ext.window.Window',{
    ......
    .....
    });
    console.log(window.getEl());

    shows undefined.....
    Please help....

    Quote Originally Posted by redraid View Post
    Try this:
    var el = window.getEl();

    el.mask('Mask text');
    ...
    el.unmask();

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    probably you have not displayed the window. thats why its undefined. use window.show() before using window.getEl()

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
    gameboy87 is on a distinguished road

      0  

    Default


    Thanks Farish & redraid . ...
    After rendering/showing the window the mask is working. Voila !
    But, I want to display before the window gets displayed on screen. May I know how to do that ?

    Thanks.

    Quote Originally Posted by Farish View Post
    probably you have not displayed the window. thats why its undefined. use window.show() before using window.getEl()

  6. #6
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    You can mask document body:

    Ext.getBody().mask('test')
    ...
    Ext.getBody().unmask();


    //wbr

  7. #7
    Sencha User
    Join Date
    Aug 2011
    Location
    Bangalore,IN
    Posts
    114
    Answers
    6
    Vote Rating
    0
    gameboy87 is on a distinguished road

      0  

    Default


    I was trying the same & got that working. Thanks guys !

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