-
14 Nov 2011 4:49 AM #1
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:Could anyone help me with this situation?
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)
Thanks in advance.
-
14 Nov 2011 11:22 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
Can we get some code where you are creating the chart and the response?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost 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.


Reply With Quote