sencha-touch-2

How to make button grid resize to fit screen?

久未见 提交于 2020-01-24 21:15:39
问题 I took this code from another question and now I'm trying to get the four buttons to fill the entire window. Nothing that I do seems to have an affect. The fullscreen: true option seems to always be ignored. What's the trick to know you need to adjust the layout so that it takes all the vertical space? Ideally, I'd like this solution to work for a 3x3 button layout too. app.js Ext.application({ launch: function() { var view = Ext.create('Ext.Container', { // fullscreen: true, layout: { type:

Can someone tell me why my background image in Sencha Touch 2 isn't showing?

天大地大妈咪最大 提交于 2020-01-24 20:46:04
问题 Here is my MainView: Ext.define("Test.view.Main", { extend: 'Ext.Panel', config: { cls: 'transp' } }); Here is (the relevant part of) my app.css: /* line 3, ../themes/stylesheets/sencha-touch/default/core/_reset.scss */ body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td { margin: 0; padding: 0; } .transp { background-image: url(http://support.sencha.com/assets/images/logo-sencha.png); background-repeat: no

Sencha Touch Deployment Options?

亡梦爱人 提交于 2020-01-24 20:37:07
问题 I am very new to ExtJS and Sencha Touch. I am trying to learn Sencha Touch, and was able to get a demo version running locally using 'sencha watch'. But I want to deploy this somewhere like Heroku, Azure, AWS or wherever. How do I get this in production? I'd appreciate it, CMazz 回答1: How do I get this in production? Developing your application simply means editing source code and refreshing the browser. All source files are dynamically loaded on demand. There's no building process involved.

Cannot call method 'substring' of undefined app.js:1 sencha nested

帅比萌擦擦* 提交于 2020-01-23 23:29:31
问题 Cannot call method 'substring' of undefined app.js:1 I get this error on the build package version of a sencha touch app that's based on the building your first app tutorial on sencha doc. The regular version runs just fine, but when it is build I Just get a blue screen. The built version runs fine when I comment the proxy related lines for the nestedlist. proxy: { type: 'jsonp', url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog', reader:

Cannot call method 'substring' of undefined app.js:1 sencha nested

半世苍凉 提交于 2020-01-23 23:29:13
问题 Cannot call method 'substring' of undefined app.js:1 I get this error on the build package version of a sencha touch app that's based on the building your first app tutorial on sencha doc. The regular version runs just fine, but when it is build I Just get a blue screen. The built version runs fine when I comment the proxy related lines for the nestedlist. proxy: { type: 'jsonp', url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog', reader:

Old View appears in Background

二次信任 提交于 2020-01-15 12:37:07
问题 Hi All after posting my problem here. code for this is Ext.define('MyPrj.view.Main', { extend: 'Ext.Container', alias: 'widget.mainmenuview', config: { activeItem: 1, width: 710, margin: '10px auto 0', layout: { type: 'hbox' }, items: [ { flex: 1, xtype:'menupage', cls: 'menuPage', }, { flex:2, xtype:'homepage', cls: 'homePage', }, { flex:1, xtype:'categorypage', cls: 'categoryPage', }, ] } }); After itemTap on Menu i get this result![result][3] Code of itemTap if(id == '1'){ console.log(

Building Sencha Touch app for Windows 8 (not windows phone 8) Microsoft Surface

╄→гoц情女王★ 提交于 2020-01-15 04:53:13
问题 I want to build a a simple Sencha Touch-2.3.1 application generated by Sencha CMD to run it on Windows 8.1 Microsoft Surface Simulator. 1-I opened Visual Studio (2013) and created a new JavaScript Windows Store project. 2-Copied the generated Sencha Touch app files to my project. 3-Changed the start page from default.html to index.html. I then ran it on the simulator, but the application hangs at the blue loading screen with white dots. I opened the js console and found nothing in the log. Is

using SenchaTouch 2 keeps showing only the progress bar

坚强是说给别人听的谎言 提交于 2020-01-15 04:40:34
问题 I have just created the default sample app using Sencha Touch 2 by the command sencha app create FirstApp D:/Sencha/MyFirstApp all I tried running the index.html but it keeps showing only the progress bar in my chrome and not the default page. 回答1: I was facing the same problem, and had to do a lot of research before I got to the solution. I'm using sencha touch 2 and running it on IIS server 7. IIS by default does not serve JSON files. So in my Chrome console IIS was returning a file not

deviceready has not fired in phonegap 2.9.0 with sencha touch 2

十年热恋 提交于 2020-01-13 03:40:11
问题 I use PhoneGap 2.9.0 and SenchaTouch to develop my Android application (targetSdkVersion 16). When I start the app in Chrome, I got such logs : Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only. cordova.js:912 deviceready has not fired after 5 seconds. cordova.js:6725 Channel not fired: onCordovaConnectionReady cordova.js:6718 Channel not fired: onCordovaInfoReady cordova.js:6718 When I test it in Samsung tablet (Android 4.1.2), the first

Sencha Touch JSON Format

↘锁芯ラ 提交于 2020-01-11 13:29:09
问题 I'm trying to input a JSON file with the following format: [{"target": "stats.server14", "datapoints": [[0.0, 1340034660], [0.016666666666666666, 1340034720], [0.11666666666666667, 1340034780], [0.18333333333333332, 1340034840], [0.05, 1340034900], [0.0, 1340034960], [0.05, 1340035020],[null, 1340121000]]}] I cannot figure out how to parse this, as it includes metatags and nested data points. Here is what I have so far: Ext.regModel('DataModel', { fields: [ {name: 'target', type: 'string'},