1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Tomar, Portugal
    Posts
    7
    Vote Rating
    0
    sergio.paulino is on a distinguished road

      0  

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

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,327
    Answers
    3540
    Vote Rating
    851
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Can we get some code where you are creating the chart and the response?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    15
    Answers
    3
    Vote Rating
    0
    sangampandey is on a distinguished road

      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.