1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Answers
    2
    Vote Rating
    0
    bee is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Argentina
    Posts
    54
    Answers
    2
    Vote Rating
    2
    ferengidedalo is on a distinguished road

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Answers
    2
    Vote Rating
    0
    bee is on a distinguished road

      0  

    Default


    Hi when I am trying to use below code, I am getting the error.
    Code:
    updateRec = Ext.getCmp('formpanel').getForm().getRecord();
    if(updateRec) {
     		Ext.getCmp('formpanel').getForm().updateRecord(updateRec);
    }
    I am declaring updateRec as variable at the top of file.

  4. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,573
    Answers
    540
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    May 2011
    Location
    Argentina
    Posts
    54
    Answers
    2
    Vote Rating
    2
    ferengidedalo is on a distinguished road

      0  

    Default


    the "chain" of methods make dificult to debug. try to split your code and console.log each "get" to see where it fails

Thread Participants: 2

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