14 Nov 2011 4:49 AM #1
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:Could anyone help me with this situation?
Uncaught TypeError: Cannot read property 'Panel' of undefined
Thanks in advance.
14 Nov 2011 11:22 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Can we get some code where you are creating the chart and the response?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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.
18 Nov 2011 3:27 AM #3
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.