1. #41

  2. #42
    Sencha User
    Join Date
    Mar 2008
    Posts
    566
    Vote Rating
    0
    moegal is on a distinguished road

      0  

    Default error is close grid after activated with refresher

    error is close grid after activated with refresher


    Hi,

    I am trying your extension and I am getting the following error:

    Ext.getCmp(cycleButton.id) has no properties

    This happens after I open a grid in a tab and then select a refresh time and then I close the tab.

    Line 104

    Thanks, Marty

  3. #43
    Sencha User
    Join Date
    Mar 2008
    Posts
    566
    Vote Rating
    0
    moegal is on a distinguished road

      0  

    Default


    I can get rid of the error.

    I can add the following:

    Code:
    if (Ext.getCmp(cycleButton.id)){
      		Ext.getCmp(cycleButton.id).el.child("td.x-btn-mc " + Ext.getCmp(cycleButton.id).buttonSelector).update(cycleButton.refreshText + hours + ':' + minutes)
       }
    But the task continues to run. Any ideas on how to stop it?


    Marty

  4. #44
    Sencha User
    Join Date
    Mar 2008
    Posts
    566
    Vote Rating
    0
    moegal is on a distinguished road

      0  

    Default


    I also added this in the init function

    Code:
    pagingToolbar.on('destroy', this.onDestroyView, this);
    And

    Code:
    onDestroyView: function(pagingToolbar){
    	this.fireEvent('destroyed', this);
    	this.store.stopAutoRefresh();
    },
    It works now.

  5. #45
    Sencha User
    Join Date
    Oct 2009
    Posts
    5
    Vote Rating
    0
    bcd is on a distinguished road

      0  

    Default firefox error

    firefox error


    Something is going wrong on firefox (at least for the latest version - 4) when you are sending some parameters (baseParams) to the remote server. When the function reload is called with no arguments (i.e.: store.reload() ) it uses the last parameters used but if an argument is set (i.e.: store.reload(something) ) it will use the argument as baseParams. The problem is on firefox's setInterval which calls the given function with an integer argument (seconds since last function run) if you don't set any function argument.

    https://developer.mozilla.org/en/window.setInterval
    setInterval() will pass the number of milliseconds late the callback was called into the callback function, which can confuse it if it expects something else as an argument. To sidestep that problem, use an anonymous function to call your callback.
    to fix this replace

    HTML Code:
    this.autoRefreshProcId = setInterval(this.reload.createDelegate(this), interval*1000);
    with

    HTML Code:
    this.autoRefreshProcId = setInterval(this.reload.createDelegate(this,[null]), interval*1000);

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