sencha-touch

install sencha-touch 2.1 on mac

霸气de小男生 提交于 2019-12-19 04:56:30
问题 I need to install sencha touch 2.1 on my mac but I can't… i follow this guide http://www.sencha.com/learn/getting-started-with-sencha-touch-2 so i installed sencha cmd and i copy the sencha-sdk folder in the www/ directory of apache.. if i do: localhost/sencha-skd on my browser i see the docs of sencha, so the server works fine.. but from the terminal if I write the command sencha i get -bash: sencha: command not found and this happend in every folder… somebody can help me? thanks a lot 回答1:

Warning saying `Id` exist and should be destroyed

爷,独闯天下 提交于 2019-12-18 17:57:21
问题 Most of the time i see the following Warning, when i click on the same button for more than once (when calling the same function twice or more) [WARN] [WARN][Ext.Component#constructor] Registering a component with a id (`name`) which has already been used. Please ensure the existing component has been destroyed (`Ext.Component#destroy()`. How should i destroy it as the Warning suggest ? or how should i fix this ? UPDATE function onPersonFound(imageData) { var image = Ext.create('Ext.Img', {

Sencha Touch MVC — recommended ways of passing data through the controller?

让人想犯罪 __ 提交于 2019-12-18 15:30:28
问题 I'm using Sencha Touch for a mobile app and am using the MVC functionality in it. I like Sencha quite a bit but I'm having a little trouble when it comes to passing data from one 'screen' to the next using the controller. There's a "record" property associated with a number of the Sencha widgets --indicating the currently selected record in an Ext.list for instance-- and for some reason I can't quite get there as to how to pass something like that from an Ext.Panel to another one. For

Sencha-touch : refresh list : store

女生的网名这么多〃 提交于 2019-12-18 12:36:30
问题 I have a list of news in a Ext.List inside a panel prj.views.NewsList = Ext.extend(Ext.Panel, { layout: 'card', initComponent: function() { this.list = new Ext.List({ itemTpl: '......', loadingText: false, store: new Ext.data.Store({ model: 'News', autoLoad: true, proxy: { type: 'ajax', url: '.....', reader: { type: 'json', //root: '' } }, listeners: { load: { fn: this.initializeData, scope: this } } }) }); this.list.on('render', function(){ this.list.store.load(); this.list.el.mask('<span

Sencha Touch Vs Backbone.js [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-18 12:22:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What are the basic difference Sencha Touch and Backbone.js, actually have built a project in backbone.js but not aware of Sencha Touch

How can I change/add params on a store

浪尽此生 提交于 2019-12-18 11:58:34
问题 On a sencha-touch, here's is my store declaration Ext.regStore('newsStore', { model: 'News', autoLoad: true, proxy: { type: 'ajax', url: '../news/list.form?format=json', reader: { type: 'json', root: '' } }, }); How can I modify params? I tried params:{ format: 'json'} But its doesn't work! 回答1: Store declaration new Ext.data.Store({ model:'prj.models.ContactInfo', storeId:'contactInfoId', proxy:{ type:'ajax', url:'/GetContactInfoByID', reader:{ type:'json' }, extraParams:{ format:'json' },

GXT 3 mobile support

心已入冬 提交于 2019-12-18 07:24:21
问题 Support GXT 3 responsitive design out of the box or is there another way to get a good mobile application with GXT running. I know about Sencha Touch but I don't want to develop two standalone apps.. Regards, Markus 回答1: 2015-01-22 update without mentioning a date, but looks promising: sencha.com: Taking a Look at Sencha GXT and GWT it seems in summer 2014 (around now :-)) we should get this natively with GXT 4.0 from Sencha: http://www.sencha.com/blog/gxt-roadmap-update/ full tablet support

Sencha seems to not like Rails' json

和自甴很熟 提交于 2019-12-18 07:12:59
问题 I've got a Rails controller which is rendering some models to json. @events = Event.all respond_to do |format| format.html # index.html.erb format.xml { render :xml => @events } format.json { render :json => { :results => @events } } end The output looks like this: { "results": [ { "name":"test", "created_at":"2011-03-23T13:32:57Z", "latitude":60.0, "location":null, "updated_at":"2011-04-14T16:38:54Z", "id":1, "longitude":30.0, "takes_place_at":"2011-03-23T13:32:00Z" }, { "name":"x", "created

Registry key Error: Java version has value '1.8', but '1.7' is required

久未见 提交于 2019-12-17 08:16:10
问题 While running sencha app build production I am getting the following error: Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required. Error: could not find java.dll Error: Could not find Java SE Runtime Environment. java -version , command is showing following: java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) Not able to find where path is

Sencha Touch 2 set label in Controller

帅比萌擦擦* 提交于 2019-12-14 04:01:00
问题 I'm new to the MVC structure with Sencha Touch 2. In my view, I have a label as follows: { xtype: 'label', itemId: 'title', html: 'title' } In my controller, how do I set the value of this label? Currently my controller (working off a tutorial sample): Ext.define("NotesApp.controller.Notes", { extend: "Ext.app.Controller", config: { refs: { // We're going to lookup our views by xtype. noteView: "noteview", noteEditorView: "noteeditorview", notesList: "#notesList" }, control: { noteView: { //