-
3 Nov 2009 12:44 AM #41
Hi,
License changed. View first post.
Greetings,
-
21 Jan 2010 4:49 AM #42
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
-
22 Feb 2010 2:30 PM #43
I can get rid of the error.
I can add the following:
But the task continues to run. Any ideas on how to stop it?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) }
Marty
-
22 Feb 2010 3:17 PM #44
I also added this in the init function
AndCode:pagingToolbar.on('destroy', this.onDestroyView, this);
It works now.Code:onDestroyView: function(pagingToolbar){ this.fireEvent('destroyed', this); this.store.stopAutoRefresh(); },
-
8 Apr 2011 9:22 AM #45
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
to fix this replacesetInterval() 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.
withHTML Code:this.autoRefreshProcId = setInterval(this.reload.createDelegate(this), interval*1000);
HTML Code:this.autoRefreshProcId = setInterval(this.reload.createDelegate(this,[null]), interval*1000);


Reply With Quote