sencha-touch-2

Sencha Touch & ExtJS profiles for desktop and mobile in one web project/vhost?

社会主义新天地 提交于 2019-12-21 06:22:24
问题 I'm creating a web application with desktop and mobile versions using ExtJS and Sencha Touch. ExtJS 4 and Sencha Touch 2 use an MVC approach, and Sencha Touch 2 incorporates "profiles" for different devices (iPhone, tablet, etc.). ExtJs 4, however, has no notion of profiles. Is it realistically feasible to for dependencies for desktop, iPhone, and iPad versions of the app to live under one vhost, in the same app directory hierarchy? Or, is it generally more acceptable to use different vhosts

Sencha Touch & ExtJS profiles for desktop and mobile in one web project/vhost?

ぃ、小莉子 提交于 2019-12-21 06:21:57
问题 I'm creating a web application with desktop and mobile versions using ExtJS and Sencha Touch. ExtJS 4 and Sencha Touch 2 use an MVC approach, and Sencha Touch 2 incorporates "profiles" for different devices (iPhone, tablet, etc.). ExtJs 4, however, has no notion of profiles. Is it realistically feasible to for dependencies for desktop, iPhone, and iPad versions of the app to live under one vhost, in the same app directory hierarchy? Or, is it generally more acceptable to use different vhosts

Sencha Touch & ExtJS profiles for desktop and mobile in one web project/vhost?

流过昼夜 提交于 2019-12-21 06:21:28
问题 I'm creating a web application with desktop and mobile versions using ExtJS and Sencha Touch. ExtJS 4 and Sencha Touch 2 use an MVC approach, and Sencha Touch 2 incorporates "profiles" for different devices (iPhone, tablet, etc.). ExtJs 4, however, has no notion of profiles. Is it realistically feasible to for dependencies for desktop, iPhone, and iPad versions of the app to live under one vhost, in the same app directory hierarchy? Or, is it generally more acceptable to use different vhosts

LocalStorage store not persisting on Android phone when app stops using Sencha Touch 2.2 and Phonegap

故事扮演 提交于 2019-12-21 06:08:09
问题 This is working fine in my browser but when I install the app on my phone and use it ... it looks fine UNTIL I force it to stop and reopen the app and then all my records are gone. Im using 2.2 and Phonegap.... any help would be VERY appreciated. Here is my store: Ext.define('MyApp.store.Presentations', { extend: 'Ext.data.Store', config: { model: 'MyApp.model.Presentations', sorter: 'title', grouper: function (record) { var upperCased = record.get('title')[0].toUpperCase(); return upperCased

Inappbrowser callback

自古美人都是妖i 提交于 2019-12-21 05:39:40
问题 I have tried to call back after login in facebook using inappbrowser. But it doesnt work to check the email,name etc.Here my code Inappbrowser calling function onDeviceReady(){ var my_client_id = FBkey, my_redirect_uri = "http://www.fastabuy.com/index.php", my_type = "user_agent", my_display = "touch"; var authorize_url = FBgraphapiurl+"/oauth/authorize?"; authorize_url += "client_id=" + my_client_id; authorize_url += "&redirect_uri=" + my_redirect_uri; authorize_url += "&display=" + my

Sencha Touch 2.1: Form Panel Keyboard hides active Textfield on Android

元气小坏坏 提交于 2019-12-20 09:38:30
问题 When I tap a textfield at the bottom of the screen, the keyboard appears and hides the active element. On iOS, it works perfect. I'm able to scroll the form, so the textfield is in the visible area, but that's not nice at all. Am I doing something wrong or is this a known bug as I have the same behaviour in this example from Sencha Touch itself: docs.sencha.com/touch/2-1/touch-build/examples/forms/ If on this form: I tap in the textfield of "Bio", the keyboard hides the textfield, instead of

how to get the form values and insert that values in the db using sencha touch

孤人 提交于 2019-12-20 07:40:19
问题 I want to store the login form details in the database .for that,i wrote the following code . In my view code Ext.define('SampleForm.view.LoginForm', { extend: 'Ext.form.Panel', //id:'loginform', requires:[ 'Ext.field.Email', 'Ext.field.Password' ], config: { fullscreen: true, layout:{ type:'vbox' }, items: [ { xtype: 'fieldset', title: 'Login', id: 'loginform', items: [ { xtype:'textfield', label:'Name', name:'name' }, { xtype: 'emailfield', name: 'email', label: 'Email' }, { xtype:

Sencha Touch 2: tapping Ext.Msg.show that have no buttons

送分小仙女□ 提交于 2019-12-20 06:13:24
问题 I want to display the popup message without any buttons. Ext.Msg.show({ title: '', message: 'Some text goes here...', buttons : [] }); It works fine. How to make it disappeared when you tap on it? 回答1: I tried for you and i got what you want Ext.Msg.show({ title: 'Title', message: 'Some text goes here...', itemId : 'showMsg', buttons : [], listeners:[ { element: 'element', delegate: '', event: 'tap', fn: function() { this.hide(); } }] }); 来源: https://stackoverflow.com/questions/17596316

Best practices for initializing and deconstructing controllers

∥☆過路亽.° 提交于 2019-12-20 03:17:44
问题 When building an application what is the best way to setup your controllers? I understand that routing, event listeners, and most all interactivity should be managed by the controllers, but my main controller is starting to grow out of control and I'm not sure how to best separate my logic into separate controllers without keeping them all "running" all the time... 回答1: It's okay to have them all loaded at app start-up, even with hundreds thousands of controllers. It's the view rendering that

FB.getLoginStatus suddenly stopped working on android browser

若如初见. 提交于 2019-12-20 02:34:54
问题 I used to use this code: FB.getLoginStatus(function(response) { .... } But all of a sudden its not working, The callback doesn't fire. Oddly though, only with the android native browser (tested 4.0, 4.1). It works on iPhone, iPad, Chrome & Safari, including Chrome for android. I can't figure out why but its not restricted to my app. For instance I this app built by Sencha is no longer working either (I used it to base my code off): http://www.sencha.com/apps/jog-with-friends actual app url