Sencha Touch列表未在浏览器中加载数据 [英] Sencha Touch list doesn't load data in browser

查看:119
本文介绍了Sencha Touch列表未在浏览器中加载数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Sencha Architect 2.0.0制作的非常简单的Sencha Touch 2.0.1应用程序:在线从json文件加载的项目列表(

I have a really simple Sencha Touch 2.0.1 app made with Sencha Architect 2.0.0: a list of items loaded from a json file online (here).

如果我将其导出到APK并安装在我的droid上,它会完美显示.但是,如果我在Chrome或Safari上试用过,他们会说正在加载...",然后在列表应显示的位置显示空"字样.

If I export it to an APK and install it on my droid, it displays perfectly. However if I try it on Chrome or Safari, they say 'Loading...' then display the word 'empty' where the list should be.

我在Firebug中收到此错误:GET http://listtest.webs.com/data.json?_dc=1344620739517&page=1&start=0&limit=25 x 166ms(其中'x'用红色圈出,这意味着我认为请求失败).即使这是一个有效的URL,响应"字段仍为空白.

I get this error in Firebug: GET http://listtest.webs.com/data.json?_dc=1344620739517&page=1&start=0&limit=25 x 166ms (where that 'x' is circled in red, meaning the request failed I guess). The Response field is blank, even though that's a valid URL.

这是我完整代码的链接.感谢您的帮助.

Here are links to my full code. Thanks for any help you may have.

.xda存档: http://www.mediafire.com/?11ism2o13gkcz27
.zip文件: http://www.mediafire.com/?f76by4d445vb6zu

.xda archive: http://www.mediafire.com/?11ism2o13gkcz27
.zip file: http://www.mediafire.com/?f76by4d445vb6zu

其他信息:我使用默认配置的WAMPSERVER 2.2,并且我的大多数其他应用程序也遇到了此问题. Sencha的 CityBars教程完全可以在Chrome中运行并加载Safari中的标题栏,但不加载任何要单击的项目.

Extra info: I'm using WAMPSERVER 2.2 with default config, and I've had this problem with most of my other apps as well. The CityBars tutorial from Sencha works completely in Chrome, and loads the title bar in Safari but does not load any items to click on.

即使说该代码对我有用/不适合我"的评论也会很有帮助.

Even a comment that says "that code worked/didn't for me" would be helpful.

推荐答案

我根据它完美地工作.无需特殊配置,只需将URL设置为我的新PHP文件的默认JsonP存储即可.出于某种原因,当我手动加载数据"时什么也没有显示,但是它在浏览器中可以正常工作.

It works perfectly. No special configs needed, just a default JsonP store with URL set to my new PHP file. For some reason nothing displays when I 'load data' manually, but it works in the browser and that's all that matters.

这篇关于Sencha Touch列表未在浏览器中加载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆