问题标签 [sencha-touch-2.3]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1216 浏览

extjs - 如何在 Sencha Touch 2.3 中为 Ext.data.Store 的 REST 代理设置 HTTP 标头值?

我在按钮点击事件中有此代码:

在此之前,我已经为 sess 设置了一个值。

我不断收到错误消息“未捕获的 typeError:未定义不是函数”。

我怎样才能实现我的目标?变量 sess 是根据来自服务器的响应设置的,因此该值不能被硬编码。

谢谢

0 投票
1 回答
143 浏览

javascript - Sencha touch azure mobile service 自定义登录如何设置用户?

因此,当提供用户名和密码(zumoJwt 令牌、用户 ID 和身份验证身份)时,我可以从服务器获取所有必要的数据,但我仍然无法从服务器端的用户对象获取用户 ID 属性。我正在尝试将用户设置如下:

res.id用户 ID 和res.token服务器生成的zumoJwt令牌在哪里。

所以我的问题如下:如何将这些值正确设置到适当的位置,以便使用我的自定义身份验证服务对服务器进行身份验证?

0 投票
1 回答
1092 浏览

css - How to change the background-color of checkbox field in sencha touch on checked event using only CSS

I have this code that changes the styling of the checkbox "tick" mark on selecting the checkbox,

P.S. The above code is only for the check mark not the whole field.

but I dont know how to change the background color of the checkbox field on selecting it using purely CSS (the whole field)

0 投票
1 回答
475 浏览

javascript - Sencha Touch 2:如何添加 Google+ 登录?

根据https://developers.google.com/+/web/signin/?hl=de#using_the_client-side_flow,我想将 Google+ 登录添加到我的 Sencha Touch 2 网络应用程序。

我已将 google 脚本添加到 app.json (定义为远程脚本)中,它会被加载。我用 html 东西创建了一个容器(由谷歌描述):

但是屏幕保持空白,没有登录按钮:-(

但是,删除上面的这个 html 部分并将其直接添加到 index.html 中是可行的。不幸的是,这是一个非常糟糕的做法......

任何想法如何正确使用 Sencha Touch 2?

0 投票
1 回答
1115 浏览

android - 使用 Cordova 插件获取手机中的所有联系人

我正在开发一个 Sencha Touch + Cordova 应用程序。我需要在 Android 手机中获取所有设备联系人。

根据文档,如果我们把,

它应该返回手机的所有联系人。但它不起作用。如果我将其他字符串作为过滤器,例如,

我根据过滤器得到结果。

有人可以帮我找出我在这里做错了什么吗?

谢谢

0 投票
1 回答
259 浏览

extjs - 当两个 Ajax 请求被并行调用时,我看到多个加载掩码

在我的 sencha touch 应用程序中,每当我调用 Ajax 请求时,我都会在屏幕上设置一个加载掩码,直到一些响应被发回,但假设我同时执行多个 Ajax 请求,我会看到多个加载掩码。我该如何阻止这种情况发生。我试着像

但这似乎不起作用,当请求完成时我这样做

但我的问题是,如果两个请求并行运行,我会看到两个掩码。有没有办法防止这种情况发生。

我正在使用 Sencha touch 2.3.0

0 投票
2 回答
500 浏览

css - Sencha Touch:更改组件的文本颜色

我有一个包含组件的简单视图(容器)。内容被添加到这个组件使用Ext.getCmp('foo').setHtml('bar');

我现在想更改组件“foo”的文本颜色。使用 style-property 可以正常工作,但只要styleHtmlContent设置为false.

如何更改文本颜色但仍设置styleHtmlContenttrue

0 投票
1 回答
932 浏览

extjs - 生成煎茶触控 App 失败

我在生成新的 Sencha Touch 应用程序时遇到问题。我已经下载了 Sencha SDK、Ruby 和 Sencha CMD。当我使用sencha煎茶版本并打印帮助时。

当我使用 ff 命令生成 Sencha Touch 应用程序时,我遇到了 Build Failed:

sencha -sdk [sencha sdk 位置] generate app -name MyApp -path [项目位置]

问题:

我已经 3 天了,不知道我是否错过了什么。

提前致谢!

0 投票
1 回答
290 浏览

datagrid - 是否可以将自定义 ID 设置为煎茶触摸记录

当我在 sencha touch Grid 上加载商店时,记录具有自动生成的 ID,例如“ext-records-5”、“ext-records-6”等,

我从服务器获取的列如下:“eId”、“name”、“number”

在我的 data.Model 中,我设置了 idProperty: 'eId' 假设它将来自服务器的 eId 设置为记录的 ID,但这似乎所做的只是将 internalId 设置为 'eId'

这不是我要找的,有没有人遇到过这样的情况,或者任何人都可以找到一种方法来实现我正在寻找的东西。

任何帮助,将不胜感激。

提前致谢。

0 投票
4 回答
198 浏览

android - Sencha Touch 2.3 with Cordova 3.5 launch time is long

If you create a sample Sencha Touch 2.3 app using sencha app generate... and package it with Cordova, you will see that it takes about 4 seconds to launch the app and show the main view. If this basic skeleton app takes this long, then actual apps that have many more views, controllers, stores etc will take much longer (6-8+ seconds).

Is there any way to speed up the launch? For reference, lets take the example of the sencha started app itself. It takes 4 seconds now. So how do we improve the performance so that it takes 1 or less than 1 second to launch?