sencha-touch

Sencha Touch: ScriptTagProxy url for create/update functionality

佐手、 提交于 2020-01-03 02:22:17
问题 I've a ScriptTagProxy and I'm able to receive the data, but now I wanted to update a record. I've specified an url but only one url. Do I have to handle all the actions (read, update, create, delete) with this url? If yes: how does the action is applied to the url? If not: how I can specify more urls? Here is the code I have so far: app.stores.entries = new Ext.data.Store({ model: "app.models.Entry", storeId: 'app.stores.entries', proxy: { type: 'scripttag', url: 'http://myurl.de/getEntries

Sencha Touch - How to get list itemtpl to display JSON child objects?

 ̄綄美尐妖づ 提交于 2020-01-03 00:58:52
问题 I am having some problems trying to display child objects using itemtpl property for a list. here is an example of the issue JSON String: {"messages" : [{"body":{"special":"some special format", "plain":"plain format"}}] Model: Ext.regModel('MyFeed', { fields: [ {name: 'body'} ] }); Store: var FeedStore = new Ext.data.Store({ model: 'MyFeed', proxy: { type: 'ajax', url: 'data.json', reader: { type: 'json', root: 'messages' } } }); List: var FeedList = new Ext.List({ itemTpl : '<div>{body}<

How to run Sencha Touch Application in Eclipse

六眼飞鱼酱① 提交于 2020-01-02 04:06:12
问题 i am new to sencha touch & phone gap.i want to run simple hello word app in eclipse.but i dont know how to do it.if any one knows it than let me know fast Thanks in advance Aamirkhan I. UPDATE: Well there is a plugin availble for eclipse in which we can easily create any sencha,jquery mobile,phonegap project's,just need to follow some steps to integrate that plugin..see MY POST for that plugin guide,i updated my answer just to help other's who don't know how to write sample application in

Sencha Touch and ExtJS

余生长醉 提交于 2020-01-02 03:42:10
问题 Sencha Touch looks impressive, and ExtJS looks nice. I am evaluating if I should use ExtJS or SproutCore for an upcoming app. Now that Sencha Touch is in the mix, I wonder if I choose ExtJS, it'd be easier to port/migrate part of the app to mobile world. Is that true? Would I be able to have the same code base for both ExtJS for desktop browsers and Sencha Touch for mobile devices? If not how much different would the code base be? 回答1: Just came from an EXTJS meetup where one presentation was

Different grid layout for portrait and Landscape in bootstrap

你说的曾经没有我的故事 提交于 2020-01-01 15:31:12
问题 I am making an Android app using Sencha. I am using this layout for responsive layout in mobiles and tablets <div class="row"> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-4</div> </div> Now i also want to specify a different grid layout when i switch from portrait to landscape mode .For example,in mobile screen, i want

Combining Sencha Touch with jQuery

懵懂的女人 提交于 2020-01-01 11:15:14
问题 I have been working in Sencha Touch for a few weeks now, and while the framework is very powerful, I still find areas of it difficult to work with, particularly the JSONP data stores for complex nested JSON results. As a result, I decided to combine the useful AJAX and JSON functions of jQuery for adding items to a DataStore already coded in Sencha Touch. I just wondered if anyone else has similar difficulties with the API for Sencha Touch, and has been using jQuery with the framework. What

Sencha touch 2- Ext.dispatch replacement?

别说谁变了你拦得住时间么 提交于 2020-01-01 08:52:26
问题 What is the replacement for sencha touch 1.1 Ext.dispatch method in sencha touch 2? I need replacement for code below listeners:{ itemtap:function(data,index){ var record = data.getStore().getAt(index); // the record that has been clicked. Ext.dispatch({ controller: 'ControllerName' ,action: 'ControllerMethod' ,record: record }); } } 回答1: Method Ext.dispatch still exists in Sencha Touch 2: http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-dispatch But if you just don't like

Sencha touch 2- Ext.dispatch replacement?

拜拜、爱过 提交于 2020-01-01 08:51:46
问题 What is the replacement for sencha touch 1.1 Ext.dispatch method in sencha touch 2? I need replacement for code below listeners:{ itemtap:function(data,index){ var record = data.getStore().getAt(index); // the record that has been clicked. Ext.dispatch({ controller: 'ControllerName' ,action: 'ControllerMethod' ,record: record }); } } 回答1: Method Ext.dispatch still exists in Sencha Touch 2: http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-dispatch But if you just don't like

cordova local notification sound not working in ios and Android

こ雲淡風輕ζ 提交于 2020-01-01 06:30:29
问题 I am using cordova-plugin-local-notifications plugin. Now I have issue to get my sound file in both Android and iOS. window.plugin.notification.local.add({ id: '0001', date: new Date, message: 'hello', title: 'title', badge: 1, sound: 'www/resources/audio/beep.mp3', autoCancel: true, ongoing: true }); What I need to do I need to change in native side my app in sencha touch. 回答1: I think the plugin is updated and the "window.plugin.notification.local.add" method is deprecated now, now it is

Fire 'tel' link from button in Sencha Touch

≯℡__Kan透↙ 提交于 2020-01-01 03:36:29
问题 I have an ActionSheet which is shown when a user taps on a list item. In the ActionSheet are three buttons - one to remove the contact, one to make a call to them and one to dismiss the ActionSheet. My question is, how do I bind the equivalent of a <a href="tel:000000000"></a> to the button? I need to specify the 'tel:' protocol so that iOS and Android will force the Phone application to load with this number? 回答1: It's pretty simple, All you have to do is change the document's location