-
17 Oct 2011 2:29 AM #1
Unanswered: Uncaught TypeError: Cannot read property 'parentNode' of undefined
Unanswered: Uncaught TypeError: Cannot read property 'parentNode' of undefined
Hi I am facing this error in extjs formpanel.
Uncaught TypeError: Cannot read property 'parentNode' of undefined
Not able to figure out what is the problem.
-
17 Oct 2011 4:01 AM #2
post some code... guessing, you "think" a variable has an object but it is not there... use console.log of that variable before calling parentNode and you will see it is empty
-
18 Oct 2011 12:54 AM #3
Hi when I am trying to use below code, I am getting the error.
I am declaring updateRec as variable at the top of file.Code:updateRec = Ext.getCmp('formpanel').getForm().getRecord(); if(updateRec) { Ext.getCmp('formpanel').getForm().updateRecord(updateRec); }
-
18 Oct 2011 5:25 AM #4
Please always post the full stacktrace with an error.
My guess would be that the record is backing some sort of view and it's the view that's struggling.
-
21 Oct 2011 3:52 AM #5
the "chain" of methods make dificult to debug. try to split your code and console.log each "get" to see where it fails


Reply With Quote