sencha-touch

Sencha Touch Rails 3.1

牧云@^-^@ 提交于 2019-12-11 05:39:08
问题 I'm trying to load a resource with sencha touch on rails but i get the following error: Started OPTIONS "/menu_items.json?_dc=1322512349038&limit=25&sort=%5B%7B%22property%22%3A%22name%22%2C%22direction%22%3A%22ASC%22%7D%5D" for 127.0.0.1 at 2011-11-28 18:32:29 -0200 ActionController::RoutingError (No route matches [OPTIONS] "/menu_items.json"): My store code: new Ext.data.Store({ model: 'MenuItem', sorters: 'name', getGroupString: function(r){ return r.get('name')[0] || ""; }, proxy: { type:

Sencha Touch: how to add a table view as rootView in left side & a view with a button as detailsView in right side of this split view in sencha touch

故事扮演 提交于 2019-12-11 05:08:54
问题 I have implemented an app in iphone using sencha touch & phone gap . Implemented split view using following code in index.js in SRC file with two text messages.. as shown bellow figure Now i need to add a table view on left side root view and a button on right side details view. how? Thanks in advance Ext.ns('sink', 'demos', 'Ext.ux'); Ext.ux.UniversalUI = Ext.extend(Ext.Panel, { fullscreen: true, layout: 'hbox', items: [ //Root view { xtype: 'panel', html: 'TableView/Rootview goes here ...',

Hiding a button on pushed view and showing it when back to list view

China☆狼群 提交于 2019-12-11 04:58:29
问题 When I load my list view it has several blog posts and a refresh button on the top left. If I tap on a list item a view is pushed with the contents of that specific post. When this view is pushed in, the refresh button is hidden. But when I tap 'Back' to the parent list view, I'd like the refresh button to show (un-hide) - but it remains hidden. Any idea how to make this work? This is my View: Ext.require(['Ext.data.Store', 'MyApp.model.StreamModel'], function() { Ext.define('MyApp.view

Sencha Touch store 'aftersync'-like event

喜夏-厌秋 提交于 2019-12-11 03:34:56
问题 I'm using a ListView with a store/ajax-proxy/json-reader/json-writer. I'd like to set the ListView to loading before I call store.sync() , and remove the loading once the response got back from the server. Problem is, I don't know where I could hook in my call to be processed once the request is done, as all I'm doing is calling sync() . Store has a beforesync event, what I'd like is something like aftersync . Any ideas how to accomplish that? 回答1: By reading the Sencha Touch source code, it

sencha touch Sync store Performance issue

谁都会走 提交于 2019-12-11 02:49:32
问题 I am developing application using sencha touch 2. I have one problem using store.sync() its taking too much (about 20 min) time while execution this statement. I have to insert 8500 records into store. Is there any alternative way so that downloading gets done faster. var spareStore = Ext.getStore('Spares'); spareStore.removeAll(); spareStore.add(spareList); spareStore.sync(); spareStore.load(); var spareData = [] spareStore.each(function(rec){ spareData.push(rec.data); }); 回答1: You are

Changing default blue theme to green

≡放荡痞女 提交于 2019-12-11 01:36:43
问题 I want to change the default blue color of my Sencha Touch application to green. The steps I followed are listed below: gem update --system gem install compass compass create myfile Copied a .scss file and pasted it in the touch-2.2.1/resources/sqss/ directory. Pasted the following code in that file and named it happy.css : $base-color: #709e3f; @import 'sencha-touch/default/all'; @include sencha-panel; @include sencha-buttons; @include sencha-sheet; @include sencha-tabs; @include sencha

Changing the view - Sencha

天大地大妈咪最大 提交于 2019-12-11 01:16:09
问题 I want to change view on itemtap and i have done that itemtap : function(list, index, target, record, event) { var id = index + 1; if(id == '1'){ Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true); Ext.Viewport.add([ { xtype: 'publishedword' } ]); } now, I am trying it to apply in view as shown in below pic where 1st view contains an Menu with populated item and now onclick of those item I want to open new view in Homepage replacing HomePage View. How can i achieve this? Container for

Use Sencha Touch in Windows 8 metro app

坚强是说给别人听的谎言 提交于 2019-12-11 01:09:48
问题 I want to know how to use Sencha Touch Frame in windows 8 metro app project with Windows JS project. When i try to add sencha Touch to html page i receive exception Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements

Sencha Touch 2.0 Controller refs attribute not working?

空扰寡人 提交于 2019-12-10 23:38:38
问题 i am wondering about the 'refs' attribute of Sencha Touch class 'Ext.app.Controller'. I saw a video tutorial where a simple contactForm was built. No i've tried to build a contact form for my app and i get an error: 'Uncaught TypeError: Object [object Object] has no method 'getContactForm'' Here's my controller Ext.define('MyFirstApp.controller.Main', { extend: 'Ext.app.Controller', views: ['Viewport', 'Home'], refs: [ { ref: 'contactForm', selector: '#contactForm' } ], init: function() {

Sencha Cmd broken: Why does 'app build' ignore any command line parameters?

不羁岁月 提交于 2019-12-10 22:25:16
问题 I've upgraded Sencha cmd to v4 and I used to be able to build to a specific archive path and destination path. This was crucial as the build server removes the source code folder and archive path for each build. I had the paths output on the IIS server away from the build server, so that they are never lost. However, my build process is failing now as the path parameters supplied to the sencha cmd don't do anything. If I type: Sencha help app build I get the following help: Syntax sencha app