PDA

View Full Version : How to Solve - this.up is not a function Error



praveenjavac
16 Dec 2010, 8:55 PM
We are developing a Scheduler Module in ExtJs - 3.3, which uses the calender example of ExtJs 3.3 Example Source code, Which works fine until we add a Sticky modules to that.

*It seems there is a conflict occurring in Sticky and Scheduler Module.

This is the part of code (calender-all-debug.js) which generating the error in runtime...

forceSize: function(){
// The defer call is mainly for good ol' IE, but it doesn't hurt in
// general to make sure that the window resize is good and done first
// so that we can properly calculate sizes.
(function(){
var ct = this.el.up('.x-panel-body'),
hd = this.el.child('.ext-cal-day-header'),
h = ct.getHeight() - hd.getHeight();

this.el.child('.ext-cal-body-ct').setHeight(h);
}).defer(10, this);
},This is the error we getting in Firefox - Debugger

this.up is not a function
chrome://firebug/content/blank.gif var ct = this.up('.x-panel-body'), DayVie....6.0.58 (line 102)


this.scrollTo is not a function
chrome://firebug/content/blank.gif this.scrollTo('top', y); DayBod....6.0.58 (line 105)


this.up is not a function
chrome://firebug/content/blank.gif var ct = this.up('.x-panel-body'), DayVie....6.0.58 (line 102)


onreadystatechange()engine....6.0.58 (line 645)
_stateChange(Object { name="batch"})engine....6.0.58 (line 868)
_eval(Object { name="script"})engine....6.0.58 (line 979)
eval()engine.../seq/15 (line 11)
_remoteHandleCallback(Object { name="batchId"}, Object { name="callId"}, Object { name="reply"})engine....6.0.58 (line 917)
_handleError(Object { name="batch"}, Object { name="ex"})engine....6.0.58 (line 1076)
defaultErrorHandler(Object { name="message"}, Object { name="ex"})engine....6.0.58 (line 164)
_debug(Object { name="message"}, Object { name="stacktrace"})engine....6.0.58 (line 1308)


Error: TypeError, this.getScroll is not a function
this.up is not a function
chrome://firebug/content/blank.gif var ct = this.up('.x-panel-body'), DayVie....6.0.58 (line 102)


Livemark Service: feed processor received an invalid channel for http://fxfeeds.mozilla.com/en-US/firefox/headlines.xml
chrome://firebug/content/blank.gif Components.utils.reportError("Li...id channel for " + channel.URI.spec); nsLive...vice.js (line 985)



How can we solve this issue? Please Help me..

Thanks in Advance.

Animal
16 Dec 2010, 10:31 PM
Obviously it's not that section of code causing the problem is it now? "this.up"

And if you debug properly, by setting a Firebug breakpoint at the error line, you will find the problem yourself. We cannot debug your code, you must do it,