1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    18
    Answers
    1
    Vote Rating
    0
    siggi is on a distinguished road

      0  

    Default Unanswered: wrapping all functions beforehand

    Unanswered: wrapping all functions beforehand


    Hi, everyone,

    is there a possibility to wrap all created functions globally,i.e.

    put sth like

    Code:
    var myMask = new Ext.LoadMask(Ext.ComponentQuery.query('toptabbar')[0].getActiveTab(), {            msg:"Bitte warten, Daten werden geladen"
            });
            myMask.show();
            Ext.Function.defer(function(){
    
    //every function call
    },1);
    into app.js?

    Thank you in advance for your help.

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    Are you saying that you want a single, central object to act as a home for all of your global functions?

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    18
    Answers
    1
    Vote Rating
    0
    siggi is on a distinguished road

      0  

    Default


    ideally, I want to wrap a loadMask around any function.

  4. #4
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    Can you give me a rough idea of what kind of functions you're talking about and more information on what you're trying to accomplish?

    I ask because most of the Ajax driven components in the ExtJs framework already support a native masking feature.

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    18
    Answers
    1
    Vote Rating
    0
    siggi is on a distinguished road

      0  

    Default


    The problem with loading masks ( at least my ones... ) is, that they are displaying fine in FF and Opera, but in Chrome and IE they are shown right before they are hidden (which means, they are not visible to the user - this is a browser related "problem", I think).

    So I wanted to wrap my function calls (i.e. the functions in the Controllers) in a deferred function, because that did the trick to display them in Chrome and IE.

  6. #6
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    Is this problem only happening on the initial load of a page/panel? Or does it occur on pre-existing components that are refreshed/reloaded via an Ajax call?

    Based on the version of ExtJs you're using, their were several bugs across several point releases which caused problems with load masking.

    In particular, I think v4.1.1 still requires me to do a hack/fix to get proper Ajax load masking on a Grid:

    Code:
    Ext.override(Ext.view.AbstractView, {
      onRender: function() {
        var me = this;
        this.callOverridden();
        if (me.mask && Ext.isObject(me.store)) {
            me.setMaskBind(me.store);
        }
      }
    });

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