sencha-touch

How to take a photo using Camera in Sencha App?

只谈情不闲聊 提交于 2019-12-08 08:24:23
问题 I am trying to take a picture using camera in Sencha Touch 2. Here i have one button 'Take a Picture', when i will press it, camera should start. As i am new to this sencha touch 2, i am unable to figure it out, how to do this? For this i used the below code: Sencha Fiddle Link Please help me. I do not want to use Phone gap. 回答1: You have to add device folder of Sencha Library in root directory and add below code in Ext.require('Ext.device.Camera'); and use this code for capture image using

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,

Compass compile error on Sencha Touch 2.2.1, undefined $font-family value and mixin problems

点点圈 提交于 2019-12-08 05:33:58
问题 Using this tutorial with Sencha Touch 2.2.1, I'm not able to compile my project because of an undefined $font-family variable: error application.scss (Line 2 of _Class.scss: Undefined variable: "$font-family".) Sass::SyntaxError on line ["2"] of /Users/mac/Sites/apps/MyApp/touch/resources/themes/stylesheets/sencha- touch/default/src/_Class.scss: Undefined variable: "$font-family". Does anyone have an idea how to solve this? Note: This was a bug in the previous version (Sencha Touch 2.2).

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:

Sencha Touch JSONP Store Data not showing up in Panel

纵然是瞬间 提交于 2019-12-08 04:57:07
问题 I've got my sencha-touch app wired up as I believe it should be, and when I load it into Chrome, the Javascript console doesn't throw any errors. The WebService is finally returning the appropriate data, yet for some reason I can't for the life of me figure out why the panel is blank. Here's the APP URL http://rpcm.infinitas.ws/ Here's the WebService URL http://rpc.infinitas.ws/Vimeo/Read?_dc=1308083451839&limit=25&callback=stcCallback1001 And here is some relevant code. CONTROLLER rpc

JSONP with Sencha Touch not working

廉价感情. 提交于 2019-12-08 04:32:22
问题 I was following this tutorial of Sencha Touch: http://www.vimeo.com/15672696 Perfect tutorial, worked flawless. But when I tried to reuse this code for my own project, I doesn't work. Here is wat I did: In my Sencha touch application I wrote the following function: showContacts = function() { Ext.util.JSONP.request({ url: 'http://www.hotcoffee.be/check-relations/index.php/json/contactpersonen', callbackKey: "callback", params: { unique: Math.random() }, callback: function(data) { var contacts

pass data from controller to existing view in sencha tocuh

梦想与她 提交于 2019-12-08 04:08:48
问题 i am trying to pass a data from controller to existing view , i have tried following but non of them are working , i want to pass a data so that i can show it over an existing panel. from controller 1. Ext.Viewport.setActiveItem('profileinfo'); Ext.Viewport.setData(record.data); 2. Ext.Viewport.setActiveItem('profileinfo').setData(record.data); 3. Ext.Viewport.setActiveItem('profileinfo', {data:record.data}); 4. Ext.Viewport.setActiveItem({ xtype:'profileinfo', data:record.data}); where

JSONP with Sencha Touch not working

拜拜、爱过 提交于 2019-12-08 04:07:27
I was following this tutorial of Sencha Touch: http://www.vimeo.com/15672696 Perfect tutorial, worked flawless. But when I tried to reuse this code for my own project, I doesn't work. Here is wat I did: In my Sencha touch application I wrote the following function: showContacts = function() { Ext.util.JSONP.request({ url: 'http://www.hotcoffee.be/check-relations/index.php/json/contactpersonen', callbackKey: "callback", params: { unique: Math.random() }, callback: function(data) { var contacts = data.results; nameOfPanel.update(contacts); } }); } First, I wrote my own JSON file with PHP

Accessing native API/system from Sencha Touch

拟墨画扇 提交于 2019-12-08 03:12:25
问题 Sencha Touch is quite perfect for my project. But in order to call a driver for an hardware barcode scanner on iOS and Android, it would be necessary to have access to the underlying system. Is that somehow possible with Sencha Touch itself when "transforming" it into a native app (the Sencha SDK allows this)? I know that it is possible with PhoneGap. But I'm afraid using all these technologies together (PhoneGap + Sencha touch) could make the UI less responsive, but that is a decisive factor

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