Hybrid View
-
14 Nov 2012 8:24 AM #1
Unanswered: Ajax Request in pushed Panel
Unanswered: Ajax Request in pushed Panel
Hi,
I am trying to load Data into a Panel which gets pushed on a Navigation.View, but in the Chrome Developer Tools there is no request sent. Is this the default behaviour or is something wrong with my code.
Controllermethod:
Code:showDetails: function(list, index, element, record){ this.getDictionary().push({ xtype: 'detailPanel' }); }
DetailPanel:
Thank youCode:Ext.define('DetailPanel', { extend: 'Ext.Panel', xtype: 'detailPanel', store: { autoLoad: true, model: "User", proxy: { type: 'ajax', url: 'content.json', reader: { type: 'json', rootProperty: 'Content' } } }, html: '<h1>I can see this Message</h1>' });
-
16 Nov 2012 8:59 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,085
- Vote Rating
- 453
- Answers
- 3153
Ext.Panel doesn't have a store config so a store instance won't be created. You are trying to do something outside what the framework does so you will need to handle these sort of uses.
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.


Reply With Quote