sencha-touch

Unable to access global variable entire one controller in sencha

牧云@^-^@ 提交于 2019-12-08 02:43:10
问题 I have been trying to access global value inside one controller, but could not access it. i have been following this How to define global variable in sencha but could not set and access global values. in Controller config: { successMessage:100, control: { 'submitnewword': { activate: 'onActivate', itemtap: 'onItemTap', ConfirmTestCommand:'Confirm' }, ....... }, onSearchKeyUp: function(searchField) { success: function (response) { this.setSuccessMessage(1); } else { this.setSuccessMessage(0);

How do I make a dataview.list visible in Sencha Touch 2?

∥☆過路亽.° 提交于 2019-12-08 02:37:52
问题 A Sencha Touch newbie here. That said, I've been slowly getting my head around it in the last day or so. One thing that has driven me insane is formpanels and lists not showing up for some weird layout reason. I can't work out why. For instance I have the following Search view: Ext.define('NC.view.Search', { extend: 'Ext.dataview.List', xtype: 'searchpage', id: 'search-form', config: { title: 'Search', layout: 'vbox', itemTpl: '<div class="name">{name}</div>', store: 'Recipes', items: [ {

Unable to access NameSpace.app variables with ST2?

烂漫一生 提交于 2019-12-08 02:08:06
问题 I'm using the Sencha Command Line 3 tools with a newly generated Sencha Touch 2 application. Assuming my app.js file looks like this: Ext.application({ name: "CA", event_code: "test123", launch: function() { console.log("application launched!"); } }); My views and object stores depend on generating a URL based on CA.app.event_code equaling "test123"; During development in the browser, everything works fine, CA.app returns the variables I need. When I compile my application with sencha app

Horizontal scrolling list

别等时光非礼了梦想. 提交于 2019-12-08 01:20:25
问题 I would like to have images displayed in a horizontal list. This is what I've done so far : var list = Ext.create('Ext.List',{ store: store, itemTpl: new Ext.XTemplate('<img src="{icon}" />'), inline:true, scrollable: { direction: 'horizontal', directionLock: true } }); My store has 5 items, but the list only display two (because the screen is not large enough to display more than two images). I tried to solve this problem by setting the width of my list to 1000px like so : style:'width:

How to extract the data from data.store to an array?

僤鯓⒐⒋嵵緔 提交于 2019-12-07 21:09:50
问题 here is my xml code: <?xml version="1.0" encoding="UTF-8"?> <root> <investors> <investor name="Active"/> <investor name="Aggressive"/> <investor name="Conservative"/> <investor name="Day Trader"/> <investor name="Very Active"/> </investors> <events> <event period="3 Month Expiry"/> <event period="LEAPS"/> <event period="Monthlies"/> <event period="Monthly Expiries"/> <event period="Weeklies"/> </events> <prices> <price rate="$0.5"/> <price rate="$0.05"/> <price rate="$1"/> <price rate="$22"/>

Sencha-touch : save login / password (save session, multi-tasks)

大兔子大兔子 提交于 2019-12-07 18:45:08
问题 I have a java web application with mobile part developed with Sencha touch. When I launch my sencha touch application, she asks my login/password because the access of the application is restricted, but I want to save login/password for the user . Is it possible with sencha-touch? Scenario: In a iPhone, there is an icon to launch the sencha touch application, she's asks the login/password by a prompt dialog. I entered login/password, I consult the content. I close by the 'home iphone button'.

How to create APK file of Sencha Touch Application?

余生颓废 提交于 2019-12-07 17:42:16
问题 I create Sencha Touch Application i wont create APK file of that Application i download sencha sdk tools and configure now what step need to follow to create APK file using sencha-sdk tool pl help me to create APK file using sencha-sdk tool 回答1: You can use Phonegap and eclipse to create native apk for andriod http://wiki.phonegap.com/w/page/30862722/phonegap-android-eclipse-quickstart 回答2: You can also create the apk without sencha sdk tools as follows Follow the steps 1.- Sign up in https:/

How to reach local files with an ajax call in phonegap?

ε祈祈猫儿з 提交于 2019-12-07 09:11:43
问题 i Have this piece of code for load a json file stored in the same directory of phonegap ( iPhone ) project ( usually in the "www" folder ), how can i reach "routes.json" ?. My project have this tree folder: __www/ _ _ _index.html _ _ _index.json ( where is located this code ) _ _ _routes.json* store: new Ext.data.Store({ model : 'routes', proxy: { type: 'ajax', url : 'file://??????/www/routes.json', reader: { type: 'json' } }, autoLoad: true }) 回答1: I think that this is a bug in the Sencha

sencha touch override ext.ajax

我是研究僧i 提交于 2019-12-07 08:11:26
I'm writing a sencha touch app using sencha architect. Because my app do lot of ajax request, most of it need to send 'token' in request header for authentication. So I think of create child class base on Ext.Ajax which always has 'token' in request header. Then I can use this child class without care of the header. MyApp.override.Ajax.request({ ... }) I try define this in app/override/Ajax.js Ext.define('Myapp.override.Ajax', { override: 'Ext.Ajax', headers: { 'token': 'test' } }); I also set this as 'requires' in Application. But get error when try to call Myapp.override.Ajax.request({ ... }

Button background color in sencha

蓝咒 提交于 2019-12-07 07:02:42
问题 I am new to sencha touch. How do we change the background color of a button to white? I have a button with two images in each corner. I want the button to be plain white. I tried using css like this: .quest { background: url(../images/quest.jpg) no-repeat left, url(../images/rightarrow.jpg) no-repeat right; background-color: white; border: none; border-color:white; padding-left: 50px; text-align: left; } My button is here: { xtype: 'button', text: '<div class="quest">Info</div>', labelWidth: