sencha-touch-2

How can I create a resizeable text area in Sencha Touch?

雨燕双飞 提交于 2019-12-23 03:21:33
问题 I have an application in Sencha Touch where I have a textareafield. In Chrome, this is resizeable, but not when using an iPhone (I haven't tried on an Android device). I need to have a text input area where people can enter text anything from one or two words long to many sentences. So I need this to either automatically resize ; have some way of manually resizing it; or some way of scrolling within it. So far I have been unable to do any of these with Sencha Touch. I would really appreciate

Button click in Android app using Sencha Touch 2 running fine on emulator but not working on Android Device

霸气de小男生 提交于 2019-12-23 02:58:09
问题 Button click in Android app using Sencha Touch 2 running fine on emulator but create problem on Android Device. When I am click on button in emulator it shows correct alert message but when I am clicking on button in Device it shows nothing. It doesn't go inside if case. My code for button is as follows:- { xtype: 'button', text: 'Save', handler: function(){ val3 = Ext.getCmp('na').getValue(); console.log(val3); val = Ext.getCmp('ea').getValue(); console.log(val); val4 = val.indexOf("@");

Sencha Cmd 3.0.0.250 build error

最后都变了- 提交于 2019-12-23 02:04:30
问题 OS: Win7 HTTP Server: Tomcat7 I am new to Sencha. Just installed latest sencha-touch-2.1.0-commercial+Sencha Cmd 3.0.0.250. Could run "sencha" command under SDK dir. Could run "sencha generate app GS ../GS" to generate a sample project. I didn't change anything from the newly generated project GS and tried to build it using command: sencha app build production But I got the following stack trace: C:\ZZ\Others\Startup\Tomcat 7.0\webapps\GS>sencha app build production Sencha Cmd v3.0.0.250 [INF

Tap event for Ext.carousel.Carousel

廉价感情. 提交于 2019-12-23 00:48:56
问题 There seems to be no tap event for Ext.carousel.Carousel. How can I make a carousel respond to tap events? (tap, itemtap etc.) 回答1: Tap events do not work on the components directly. Instead they work fine on component's element. So, for your case you can use it like this: In your controller's "control", control : { // Your carousel reference "carousel" : { initialize : function(carousel){ carousel.element.on('tap', function(e, el){ // Here you will get the target element console.log(e.target

When ever app does ajax request i want to add load mask

醉酒当歌 提交于 2019-12-22 17:29:11
问题 In my sencha application, When ever app does ajax request i want to add load mask and after request complete i need to remove load mask. I tried below code but, its not working for me var mask = new Ext.LoadMask(Ext.getBody(), {msg:"Loading..."}); Ext.Ajax.on('beforerequest', function(){ mask.show(); }); Ext.Ajax.on('requestcomplete', function(){ mask.hide(); }); 回答1: To show load mask you can use: Ext.Viewport.mask({ xtype: 'loadmask' }); And hide the load mask inside the success function of

Sencha Touch: Clicking a button rapidly will push a view twice

旧巷老猫 提交于 2019-12-22 10:55:27
问题 Say I have a button that triggers a push of a new view. I noticed that if I click it more than once, fast enough, it will push the same view twice. You can mimic this behavior using their official docs on this page, where they have a live sample: http://docs.sencha.com/touch/2-0/#!/guide/navigation_view the clear question is, simply how to prevent it? 回答1: Masking successfully prevents double tapping problem. In my code I'm using two functions for mask/unmask navigation container: /** * Mask

How can make a device phone call by android using phoneGap and Sencha Touch 2?

那年仲夏 提交于 2019-12-22 10:33:48
问题 I need to make a call by android phoneGap application with sencha touch button. I have found an iphone plugin to make calls from phoneGap application. I has not found any plugins or anything for android. Please help. thanks in advance 回答1: Use this line to make a phone dialer to display <a href="#" rel="external" id="ext" onclick="document.location='tel:123456'" > </a> 回答2: When I look in my Phonegap 1.5.0 Example index.html for Android I see this code: <html> <head> <meta name="viewport"

Sencha Touch animation options

▼魔方 西西 提交于 2019-12-22 09:27:02
问题 Where can I find a list of the available animation types for Ext.Panel.show()? I've searched the documentation and googled "sencha touch animation options", but can't find anything. 回答1: You can see all the animations here http://dev.sencha.com/deploy/touch/examples/production/kitchensink/ And here's the API http://docs.sencha.com/touch/2-0/#!/api/Ext.anims 回答2: Here is the documentation for the available animation types: http://docs.sencha.com/touch/2-0/#!/api/Ext.anims Some of them don't

Sencha touch 2.4.0 SASS compile error

人盡茶涼 提交于 2019-12-22 08:09:19
问题 Environment: Mac OSX Mavericks 10.9.4 Compass 1.0.1 (Polaris) Compass-blueprint (1.0.0) Sass 3.4.5 (Selective Steve) sencha app build testing command no error When I compile app.scss file in the ./resources/sass/ directory, an error happened. compass compile app.scss error app.scss (Line 209 of /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/touch/resources/themes/stylesheets/sencha-touch/base/src/_Class.scss: File not found or cannot be read: /Users/icese7en/Sites/Demos/Sencha

Sencha Touch 2.2.0 loads very slowly. Is it normal?

浪尽此生 提交于 2019-12-21 20:14:52
问题 I am new to Sencha Touch. I have set up page from the examples. However it loads very slowly. Is it normal? What can be done to decrease the load time? Here is the page http://m.odtu.lu/odtu/ 回答1: As @TDeBailleul said, you need to minify & aggregate project JS files to get it load fast because loading time is directly proportional to number of bytes transferred and number of requests triggered. Sencha Cmd provides the tool to minify & package your app for batter performance using this command