sencha-touch

How to config WAMP apache server to allow cross domain requests of ajax?

☆樱花仙子☆ 提交于 2019-12-13 16:14:29
问题 I am working on an sencha-touch-2.1.0-based application.The application deals with some cross-domain requests. We wrapped the js files with Android code with PHONEGAP to make the application run in a Android Phone. And i have installed the wamp server whose apache version is 2.4.4. I want to test the UI of the app in a Android Phone browser,so i put the src files of the sencha touch application in the www directory of the apache server of the WAMP. But i have got an request error in the

How to have the slide multiple screens in Sench touch

匆匆过客 提交于 2019-12-13 15:22:37
问题 I am developing an application in which when submit button is clicked in the form, it should go to a different screen. However it is just printing the results outside of the window and not really going to a new screen. I have hardcoded the store to make sure there is data when I start the application and it still prints it outside of the viewable area. Here is my Ext.data.Store: var store = new Ext.data.Store({ model: 'jobSummary', storeId: 'jobStore', data : [{title: 'This is test'}, {title:

Sencha touch make a list inside a container visible

て烟熏妆下的殇ゞ 提交于 2019-12-13 07:58:58
问题 I have a view which contains several items (labels, carousels, container etc.) - Ext.define('MyApp.view.MyView', { extend:'Ext.Panel', alias:'widget.view', requires:['Ext.Panel', 'Ext.carousel.Carousel'], config:{ layout:'vbox', cls: 'detail', scrollable:{ direction:'vertical' } }, initialize:function () { var type = { xtype: 'label', id:'type', html:'Type' }; var socialButton = { xtype:'label', id:'socialButton', html:'<div style="position: absolute; right: 0; top: 0px; background: #efefef;

Sencha list paging plugin doesn´t work properly

本小妞迷上赌 提交于 2019-12-13 07:42:14
问题 I am trying to implement a feature with the "ListPaging" Sencha plugin, and its working correctly but with the next case I am having an exception. Server sents the total count of rows, for example 10, but if I have the pagesize property configurated with 11 rows, plugin doesn´t work. Here a little piece of code with the store implementation: store = Ext.create('Cicero.store.activity.Activities', { storeId: storeId, pageSize: 10, autoLoad: false, clearOnPageLoad: false }); This is the plugin

Update list dom only if list displayed

[亡魂溺海] 提交于 2019-12-13 07:26:29
问题 Sometimes we use one store for few views(list, carousel,dataviews) and when we refresh(load, filter) store data, dom of all view that use this store will be rebuild, but some views is not displayed in this time, and may be will not show with these data. How we can refresh list dom only if it displayed, not every time when it store refresh? Issue examle Ext.define("Test.view.Main", { extend: 'Ext.tab.Panel', config: { tabBarPosition: 'bottom', items: [ ] }, constructor : function(){ this

Android app failing to start missing Chromium WebView

时间秒杀一切 提交于 2019-12-13 07:25:28
问题 I am using sencha touch with phonegap/cordova to build the android app. When my app starts up i get a white screen with something along the lines of 'MyApp, unfortunatly, has stopped.' How and where do i add the Chromium WebView? The logs below says it missing Chromium WebView but i can't seem to figure out where that is or what to add to that. I have found http://docs.phonegap.com/en/3.0.0/guide_platforms_android_webview.md.html but is cordovaWebView the same as Chromium? Also the doc seems

XMLHttpRequest cannot load and Sencha touch

∥☆過路亽.° 提交于 2019-12-13 06:25:53
问题 everybody! I have a problem. When i use Ạjax or getStore, i see a error in console Chrome. XMLHttpRequest cannot load . Origin is not allowed by Access-Control-Allow-Origin. And, My response result is failed. I don't know this problem relate to this result. Help me, If you have a sulutions. :) Thanks. When I use Ạjax or getStore, I see an error in Chrome's console. XMLHttpRequest cannot load. Origin is not allowed by Access-Control-Allow-Origin. And my response result is failed. I don't know

Should I add custom methods to Ext.data.store derived classes

一个人想着一个人 提交于 2019-12-13 06:25:01
问题 I'm totally new to sencha touch and extjs. Here is the scenario: Suppose you have this store that holds the items on a shopping cart: Ext.define('MyApp.store.CardItems', { extend: 'Ext.data.Store', requires: ['MyApp.model.CardItem','Ext.data.proxy.SessionStorage'], config :{ model: 'MyApp.model.QuoteItem', autoLoad: true, autoSync: true, identifer: 'uuid', proxy:{ type:'sessionstorage', id:'card' } } }); I know that in sencha a store is used to bind a list of model items to a grid for example

Ext.getStore() creating error: Uncaught TypeError: undefined is not a function

喜你入骨 提交于 2019-12-13 05:28:26
问题 I am creating a ListView and populating it with some data from a store that I have created. When I am assigning the store to the listview using store : Ext.getStore('Feeds') , I get an error : Uncaught TypeError: undefined is not a function View class: Ext.define('Volt.view.FeedView', { extend: 'Ext.Panel', requires: [ 'Ext.TitleBar', 'Ext.Button', 'Ext.Toolbar' //'Ext.Panel' ], xtype: 'feedViewCard', config: { iconCls: 'action', title: 'FeedView', layout: { type: 'vbox' }, items: [ { xtype:

How can I handle several store instance in the same action using Sencha Touch 2?

拥有回忆 提交于 2019-12-13 05:05:31
问题 I coded a simple application which displays a dataview.List articles in the home page. Here's a view of my home page : I can also open a specific article by clicking on it and have its complete description in an other view. Here's my article view page for a specific article : To do this I apply a filter in my ArticleController class (here I get the matched record). onViewArticle: function(record) { var articleStore = Ext.getStore("ArticleStore"); var selectedArticle = record; articleStore