View Full Version : Error opening application

8 Oct 2011, 7:32 PM
Good evening, I'm creating an app using Sencha Touch, everything works fineexcept when I open in a browser that supports this, for example chrome, if I open the safari mobile (iphone) it does not work.

The problem is that it loads the data that is in an address, but if you compile theapp using the PhoneGap works normally. Why is this? If anyone can help me I will be grateful.

If you visit here http://www.hivictus.com.br/m (http://www.hivictus.com.br/m/) using a browser that supports it, you'll see that it is non-stop loading and never displays the data.

Thank you!

The code file is as follows:

Ext.regModel('News', {
fields: ['title', 'link']

var stores = new Ext.data.Store({
model : 'News',
autoLoad: true,
proxy: {
method: 'GET',
type: 'ajax',
url: 'http://www.arenageek.com/feed/rss/',
reader: {
type: 'xml',
record: 'item',
root: 'channel',

var list = new Ext.List({
itemTpl : '<div style="font-weight: bold; font-size: 12pt;">{title}</div>',
indexBar: true,
store: stores,
plugins: [{
ptype: 'pullrefresh',
pullRefreshText: 'Puxe para atualizar...',
releaseRefreshText: 'Libere para atualizar...',
loadingText: 'Carregando...',
snappingAnimationDuration: 150,

var listpanel = new Ext.Panel({
layout: 'fit',
items: this.list,

App.views.HomeIndex = Ext.extend(Ext.Panel, {
scroll: 'vertical',
styleHtmlContent: false,
layout: 'card',
dockedItems: [
xtype: 'toolbar',
title: 'Novidades',
items: this.listpanel,

Ext.reg('HomeIndex', App.views.HomeIndex);

10 Oct 2011, 3:07 PM
Problem solved, it was only to use JSON instead of XML!