sencha-touch

Difference of Native packaging between Sencha touch2 and PhoneGap

試著忘記壹切 提交于 2019-11-29 17:21:56
问题 What is the difference of native packaging between Sencha touch2 and PhoneGap? Many people use PhoneGap to natively package app based on Sencha touch, but I find that Sencha touch 2 has a new feature of native packaging. So which type of native package is better in Performance, scalability, functionality, maturity, etc. ? How do you choose? 回答1: PhoneGap is a middle-platform which is able to access some native APIs on many platforms and its interface language is Javascript. This means that

Can't get jSon dataStore into ExtJS (Sencha Touch) chart: displays error “cannot read property 'length' of undefined”

拈花ヽ惹草 提交于 2019-11-29 16:27:24
EDITED I am using Sencha touch charts sample provided for column charts. The code is as below new Ext.chart.Panel({ fullscreen: true, title: 'Column Chart', dockedItems: [{ xtype: 'button', iconCls: 'help', iconMask: true, ui: 'plain', handler: onHelpTap }, { xtype: 'button', iconCls: 'shuffle', iconMask: true, ui: 'plain', handler: onRefreshTap }], items: { cls: 'column1', animate: { easing: 'bounceOut', duration: 750 }, store: window.store1, shadow: false, gradients: [{ 'id': 'v-1', 'angle': 0, stops: { 0: { color: 'rgb(212, 40, 40)' }, 100: { color: 'rgb(117, 14, 14)' } } }, { 'id': 'v-2',

sencha touch textfield clear event

淺唱寂寞╮ 提交于 2019-11-29 15:49:05
I'm trying to implement a list filter in a text field in sencha touch. For example, I'd have a bunch of contacts, and when I typed in the field, it might filter by name. When I click the circular X button to clear the textfield, I'd like to reset the filter to filter none of the contacts. The problem is, I can't seem to figure out a way to detect the click on the clear button. There doesn't appear to be any type of event, and I can't seem to hack in a workaround. If anyone has any idea how to detect a textfield clearing in sencha touch, I'd be much obliged. I've tried in safari and xcode

How to alert the user when there's no internet connection

人盡茶涼 提交于 2019-11-29 15:15:12
问题 I need to alert the user with the following conditions; Request timed out No internet connection Unable to reach the server Here's the code; How to capture the following conditions when occurred and alert the user ? failure: function (response) { var text = response.responseText; console.log("FAILED"); },success: function (response) { var text = response.responseText; console.log("SUCCESS"); } I tried the following code to check if the internet is reachable, but it didn't work var

GXT 3 mobile support

百般思念 提交于 2019-11-29 13:02:01
Support GXT 3 responsitive design out of the box or is there another way to get a good mobile application with GXT running. I know about Sencha Touch but I don't want to develop two standalone apps.. Regards, Markus 2015-01-22 update without mentioning a date, but looks promising: sencha.com: Taking a Look at Sencha GXT and GWT it seems in summer 2014 (around now :-)) we should get this natively with GXT 4.0 from Sencha: http://www.sencha.com/blog/gxt-roadmap-update/ full tablet support (touch gestures, smooth scrolling, drag and drop, and more...) But it seems with touch4j ( http://emitrom

What is the expected collaboration workflow with Sencha Architect?

房东的猫 提交于 2019-11-29 12:36:34
问题 I started a trial of Sencha Architect, and the more I use it more questions come to my mind for its actual feasibility usage in a development environment, one of the bigger questions I have is In an environment that you can't edit the individual files in different editors, how can multiple people collaborate in developing different parts of a site, for example app/models|components|views/Model1.js <- In charge of developer one app/models|components|views/Model2.js <- In charge of developer

Sencha Touch 2.3 / Cordova : Build run directly on device

亡梦爱人 提交于 2019-11-29 12:23:46
I created an app for android with Sencha Touch 2.3 and Cordova. I used the following command to build and run the apk: sencha app build -run native However, this runs the app on the emulator but I would like to directly run it on the usb connected android device. Is it possible? I already tried commands like these but it didn't work. sencha app build -device native or sencha app build -run -device native It is possible. There is a difference between Sencha and Cordova commands and both are for different purpose. Once you want to make apk for your android device. Just go through the steps here

How to call functions within a XTemplate (itemTpl)

[亡魂溺海] 提交于 2019-11-29 11:58:30
问题 I would like to use Ext's String method on some text that will be output to the view. For example: itemTpl: [ ... '<tpl switch="post_type">', '<tpl case="new_user">', '<p>{post_text_teaser}</p>', '<p>{timestamp}</p>', '<tpl default>', '<p>' + Ext.String.ellipsis( + '{post_text_teaser}' + \, 4) + '</p>', ... ].join(''), but of course the concatenation in line 10 is illegal. Do you know if it's possible or how to do this correctly? 回答1: This should solve your problem: '<tpl switch="post_type">'

Embed PDF Viewer for PhoneGap application

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 09:44:46
问题 How can I embed a PDF viewer for a phonegap application? I have decided to use PhoneGap + Sencha Touch to develop an application for iOS and Android. 回答1: There's not much documentation for mixing PhoneGap and ObjC, but here is some example code that lets you embed PhoneGap with an ObjectiveC-Application. For the PDF viewer, you can either use basic ones like Apple's QuickLook or UIWebView, or more advanced ones like PSPDFKit. For Android, you could simply search for an Intent that is capable

PDF.JS in Mobile apps Access-Control-Allow-Origin issue

£可爱£侵袭症+ 提交于 2019-11-29 07:45:28
I am trying to develop an app for mobile devices using Sencha and Cordova. As PDf support is not available in the browsers of Android I decided to use PDF.JS. It is working fine while loading the local PDf files, but when tring to open remote files it is throwing an error http://<remote server pdf location>. Origin file:// is not allowed by Access-Control-Allow-Origin Please let me know how to fix this issue. Is there any way to fix this in PDF.JS. I need PDF.Js files locally only as the app needs offline capability also. Thanks in advance Ratheesh Rather than calling PDFJS.getDocument with a