You can of course do this many different ways. Some questions can be asked to help find the best solution for you. When do you want the content to load? How often will the content change?
I would generally recommend this be part of an MVC app. In the controller you could listen for an event such as activate on the panel then run the ajax request. In the callback you can use the panel's setHtml method to set the data. Alternately if you specify a template on the panel, you'd use the setData method.
If this doesn't get you on your way, post more details about your app and what you want to accomplish.
You can of course do this many different ways. Some questions can be asked to help find the best solution for you. When do you want the content to load? How often will the content change?
I would generally recommend this be part of an MVC app. In the controller you could listen for an event such as activate on the panel then run the ajax request. In the callback you can use the panel's setHtml method to set the data. Alternately if you specify a template on the panel, you'd use the setData method.
If this doesn't get you on your way, post more details about your app and what you want to accomplish.
Github Projects: Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
I had follow your approach and than use view components. I had use initialize method and than push an ajax request. After getting response i use Ext.ComponentQuery.query('#listdata')[0].setHtml(response.responseText);