sencha-touch

Adding a 'Controller' class to my MVC based Sencha Touch project

*爱你&永不变心* 提交于 2019-12-11 08:19:16
问题 I have created a MVC SenchaTouch project. I have created a sample application where the user will enter the username and password and send it to the web service. The username, and password fields are suppose to be in the 'VIEW', and the 'sending it to the web service' functionality should be in the 'CONTROLLER'. In my program, the sending to the web service part is also there in the 'VIEW', so can someone please help me edit my code, so that i could have the 'send to the web service'

insert in sencha touch data store

雨燕双飞 提交于 2019-12-11 08:04:34
问题 Could someone please explain how the insert works to add a record in a datastore with tha fields: "title", "info" and "price"? because i tried some things and none of them work. and the sencha website doesnt make it very clear. 回答1: Adding a new item to an existing Store isn't that hard actually. First of you will need to configure your model and store. In your question you name the fields 'title, 'info' and 'price'. Model: Ext.regModel('myModel', { fields: [ {name: 'id', type: 'int' }, {name

Animated (slide) transition in sencha touch

非 Y 不嫁゛ 提交于 2019-12-11 07:45:36
问题 I have a panel in a sencha app swich contains a login form. The think is that I wanna load new content when the form is submited. I wanna that the new content is loaded after an slide animation. I tried to use mainPanel.setCard({type:'slide'}) but it I don't know how to put the new content. Any idea? Ext.setup({ icon: 'icon.png', tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', glossOnIcon: false, onReady: function() { var mainPanel = new Ext.Panel({ id:

PhoneGap 0.9.6 (Blackberry) + Sencha Touch 1.1.0: deviceready does not fire

谁都会走 提交于 2019-12-11 07:39:54
问题 I'm trying to build an app that uses PhoneGap 0.9.6 and Sencha Touch 1.1.0 for Blackberry. (The app is already running fine on iOS and Android). Unfortunately the crucial deviceready event does not fire anymore once I include the Sencha Touch files. This is how I tested: Build the PhoneGap example app as described on http://www.phonegap.com/start#blackberry using the BlackBerry WebWorks Packager 2.0.0 Edit index.html so it's shorter and add alerts in init() and deviceInfo() and run the

How to run a sencha touch project in Xcode emulator

冷暖自知 提交于 2019-12-11 07:38:26
问题 Am creating a App using sencha touch. Am testing the app using chrome, its working fine. Now am moving to Mac OS so i have to run the same app in Xcode to test . Dont know how to run the sencha project in xcode. Please direct me in right direction. Your help is much appreciate. Thanks in advance.. 回答1: You need to use PhoneGap to host it. Have a look at PHONEGAP + XCODE4 Basically, create a PhoneGap project and put you sencha touch stuff in www folder. Here is another article, which uses

Does Android support click events in its WebView?

给你一囗甜甜゛ 提交于 2019-12-11 07:32:50
问题 I'm using PhoneGap and Sencha Touch to display a form. I'm using an image as the button to submit it: <img id='submit' src='button.png' /> I'd like to then listen to it be clicked and validate the form. If I try the following it never seems to fire: Ext.get('submit').on('click', validateFn); Am I missing something obvious? Should I use <input type="image" ... /> ? Update: For future viewers of this question it is worth noting that inconsistent click handling seems to be a bug or series of

How to reverse an Axis in Sencha ExtJS Charts?

╄→гoц情女王★ 提交于 2019-12-11 07:28:49
问题 I have a line chart with x Axis being numeric and y axis being numeric as well. I want the y axis to be reversed so that higher values are at the bottom of the axis and lower values at the top. I looked at the API Docu and didnt find a config to reverse the axis or so. Any clues? 回答1: In ExtJS 3 there was a reverse config option to get this going. With ExtJS 4 you have to use workarounds. For reverting the x axis values you could use the sorters property of the store connected to the chart.

How do I build a sencha app to target production in a specific folder?

人走茶凉 提交于 2019-12-11 07:15:52
问题 Using the latest Sencha Cmd tool v4.0.2, how do I build an app for production mode into a specific folder not into its default build folder within the app folder. I am trying to do this from the command line but not succeeding at all. Tried this according to their help on command line but had no success with it for several weeks now: Sencha Cmd broken: Why does 'app build' ignore any command line parameters? No-one seems to know what the issue is. Am I the only person in the world who is

Sencha Touch XML Reader Problem

ぃ、小莉子 提交于 2019-12-11 07:06:52
问题 I am student and cannot afford the premium support, so my question here: I have quite a simple XML and it gives me the following Error: http://img33.imageshack.us/i/screenprn.png/ Ext.regModel('User', { fields: ['id', 'name', 'email'] }); var store = new Ext.data.Store({ model: 'User', autoLoad:true, proxy: { type: 'ajax', url : 'ajax/user.xml', reader: { type : 'xml', model: 'User', record: 'user' } } }); 回答1: To begin with, your XML sould be like this : <?xml version="1.0" encoding="UTF-8"?

Data view in Sencha touch

橙三吉。 提交于 2019-12-11 06:23:30
问题 I am new in sench-touch. I am trying to show JSON data using data Store. Here is my code "gridView2.js" code: Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady: function() { Ext.regModel('Product', { fields: [ {name: 'name', type: 'string'}, {name: 'description', type: 'string'}, {name: 'price', type: 'float'}, {name: 'image_url', type: 'string'}, {name: 'in_stock', type: 'boolean'} ] }); Ext.regModel(