sencha-touch-2

Push Notification Sencha Touch 2

不羁的心 提交于 2019-12-08 06:56:48
问题 Am Developing an IOS application using sencha touch 2, i have a requirement of sending push notification . I have set apple certificate file, provisional profile also did some server side coding to achieve this. But not sure about is there any push notification service in sencha ? How can i achieve this... Should i use PhoneGap? Please direct me in right direction.. Your help is much appreciated. Thanks in advance 回答1: YES, to make your iOS Sencha-Touch based application support notification,

How to specify rootProperty for nested data if it is one level below?

天涯浪子 提交于 2019-12-08 05:06:16
问题 I am fetching nested data to be shown as nested list but whenever I tap on top level item, it again shows same top level list instead of showing children list and a ajax request is fired to fetch json data again. Here is the store: Ext.define('MyTabApp.store.CategoriesStore',{ extend:'Ext.data.TreeStore', config:{ model : 'MyTabApp.model.Category', autoLoad: false, storeId : 'categoriesStore', proxy: { type: 'ajax', url: 'resources/data/catTree.json', reader: { type: 'json', rootProperty:

how to check which type of wifi connection in ipad using sencha touch2

天涯浪子 提交于 2019-12-08 03:12:19
问题 I have developed contact screen page using sencha touch2. my requirement is, based on type of wifi connection like 2G/3G depends on that. I want to disable some button in ipad. can any one provide the best way how to achieve this one using sencha touch2. 回答1: I have searched in sencha website they given clearly how to get type of internet connection. it is working fine. Here is solution: Determining if the current device is online: alert(Ext.device.Connection.isOnline()); Checking the type of

Set custom attribute on textfield Sencha Touch 2

亡梦爱人 提交于 2019-12-08 02:50:04
问题 I am implementing Stripe in my Sencha Touch 2 application, and they require that I have set a custom data- HTML5 attribute on the respective input fields ala this: <input type="text" size="20" data-stripe="number"/> <input type="text" size="4" data-stripe="cvc"/> <input type="text" size="2" data-stripe="exp-month"/> <input type="text" size="4" data-stripe="exp-year"/> I have defined my input fields in the view like this: { xtype:'textfield', name:'expirationYear', 'data-stripe':'exp-year',

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:

PhoneGap/Cordova 2.3.: how to open all external links in InAppBrowser?

末鹿安然 提交于 2019-12-08 00:13:59
问题 I am developing a mobile app using Sencha Touch 2 and Cordova 2.3.0. I would like to be able to open all external links (from dynamically loaded HTML) into the new InAppBrowser. Is there a way to achieve this without having to modify all external links to contain target="_blank"? I would like to intercept clicks on external links and open them using the window.open API from InAppBrowser. Since I target both iOS and Android, I guess a javascript solution would be better to avoid separate codes

Sencha Touch 2- Unable to get ref view from controller

你说的曾经没有我的故事 提交于 2019-12-07 18:51:39
问题 I'm trying to get view by ref. inside a method defined in controller. I'm getting error which says Object [object Object] has no method 'getUserForm'. Here's my view and controller, I'll be happy if someone can help me.. Thanks in advance. User Form Ext.define(appName + '.view.user.UserForm', { extend : 'Ext.form.FieldSet', alias : 'widget.userform', title : 'User Form', instructions: 'Fill your personel information', iconCls : 'icon-form', fullscreen: true, config : { items : [{ xtype :