Results 1 to 3 of 3

Thread: Getting "Uncaught TypeError: Cannot read property 'Panel' of undefined"

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Tomar, Portugal
    Posts
    7
    Vote Rating
    0
      0  

    Exclamation Getting "Uncaught TypeError: Cannot read property 'Panel' of undefined"

    I'm trying to activate sencha charts in an ajax response to a form, getting the graph data from a php file that throws a JSON response
    The response is being thrown correctly, the js identifies the success of the form posting as true, but when it comes to creating the Panel for the graph I get the following error:

    Uncaught TypeError: Cannot read property 'Panel' of undefined
    innerformBase.items.items.handler.innerform.submit.success
    Ext.Ajax.request.callback
    Ext.data.Connection.Ext.extend.onComplete
    Ext.data.Connection.Ext.extend.onStateChange
    (anonymous function)

    Could anyone help me with this situation?
    Thanks in advance.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1390
      0  

    Default

    Can we get some code where you are creating the chart and the response?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    15
    Answers
    3
    Vote Rating
    0
      0  

    Default

    This is just because you are creating a refrence to panel after the ajax call which you need to do before that try if you get success else you need to share some code to us know whats the problem.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •