-
14 Mar 2012 2:59 AM #1
Answered: Multipls feeds in example ' Getting Started with Sencha Touch 2'
Answered: Multipls feeds in example ' Getting Started with Sencha Touch 2'
HI
Working through the getting starting example and wanted to know how can I put more than one feed in.
The example has the SenchaBlog feed in, how would I add another feed to it so both feeds info will show up ?
Thanks
Jim
-
Best Answer Posted by mitchellsimoens
The easiest way would to have a server side script combine. On client you would have to make multiple requests and iterate through them to join into one store.
-
14 Mar 2012 4:16 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
- Answers
- 3102
Currently the Blog tab looks like
So you would have to add another tab and change the tree store to allow to load from another blog.Code:{ xtype: 'nestedlist', title: 'Blog', iconCls: 'star', cls: 'blog', displayField: 'title', store: { type: 'tree', fields: ['title', 'link', 'author', 'contentSnippet', 'content', { name: 'leaf', defaultValue: true }], root: { leaf: false }, proxy: { type: 'jsonp', url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog', reader: { type: 'json', rootProperty: 'responseData.feed.entries' } } }, detailCard: { xtype: 'panel', scrollable: true, styleHtmlContent: true }, listeners: { itemtap: function(nestedList, list, index, element, post) { this.getDetailCard().setHtml(post.get('content')); } } },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.
-
14 Mar 2012 11:08 AM #3
Combine the two feeds?
Combine the two feeds?
Thanks.
Is their a way to combine the two feeds together ? to show on one list.
-
14 Mar 2012 11:11 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
- Answers
- 3102
The easiest way would to have a server side script combine. On client you would have to make multiple requests and iterate through them to join into one store.
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