Questions tagged [sencha-touch-2]

JavaScript framework for mobile devices, UI interface, DataAccess and encapsulation.

Sencha Touch 2 is the second version of Sencha Touch, developed by Sencha.

It is a Javascript framework based on well-known Ext JS library and used to create cross-platform mobile devices webapps (Android 2.3+, Blackberry, Windows Phone 8 and iOS 4+).

With this new version, it is possible to package applications as native.

Official documentation and description can be found at: http://docs.sencha.com/touch/

3849 questions
8
votes
1 answer

Difference on image rendering over different android version

í'm trying to build a image gallery using Sencha Touch. I create a container object with hbox layout and width equal to window.innerWidth. Then, i add three containers inside it. Each one using vbox layout and with width equal to window.innerWidth /…
Pedro Alves
  • 1,667
  • 4
  • 17
  • 37
8
votes
4 answers

Cordova install on Linux

How can I install Cordova on Ubuntu/xUbuntu? My attempts at executing npm install cordova as directed from the link and other sources didn't work. I get the following long error message: root@li141-82:/var/www/mysite# npm install cordova npm http…
sisko
  • 9,604
  • 20
  • 67
  • 139
8
votes
4 answers

WARN The current working directory is not a recognized Sencha SDK or application folder

I'm using mac, I just downloaded the SDK and ruined the app. Installation was successful, but when using sencha from the terminal $ cd /Applications/SenchaSDKTools-2.0.0-beta3 $ sencha I receive this error [WARN] The current working directory…
GibboK
  • 71,848
  • 143
  • 435
  • 658
8
votes
3 answers

Sencha touch 2 native build not loading

After generating the default app with: sencha generate app Sencha ../Sencha I decided to test the app on the iOS simulator cd ../Sencha/ sencha app build native It loads the app but gets stuck on the loading icon: Below is the code for the main…
evolutionxbox
  • 3,932
  • 6
  • 34
  • 51
8
votes
3 answers

Device check in sencha touch 2

I'm sure I'm just overlooking this question but I cant seem to find how to check the device. I want to check whether the device is either a phone, a tablet in landscape mode, a tablet in portrait mode or a other device (computer). What I have is…
Rick Hoving
  • 3,585
  • 3
  • 29
  • 49
8
votes
6 answers

Sencha Touch IDE or Editor

Is there any Sencha Touch 2 IDE or Editor? I know about Sencha Architect 2. But it is too costly. If anyone using Sencha Touch IDE, so we can give only CTRL+SPACE, and it will give me the all methods?
Arindam Mukherjee
  • 2,255
  • 11
  • 48
  • 83
8
votes
1 answer

In Sencha touch2 How to enable browser's scrollbar

For some reason, I like to use browser's native scrollbar instead of sencha's. I already set overflow to auto to body, but still don't see scrollbar until I set a fixed height to "ext-viewport" manually in chrome toolbar say 2000px. it looks like…
Rick Li
  • 1,457
  • 2
  • 14
  • 19
8
votes
3 answers

How do I store dates in Sencha Touch 2 Models

In sencha touch 2, it appears there are only string, int, float, boolean data types. How then do I store a datetimes? UPDATE OK, I found I can use convert() to convert values: http://docs.sencha.com/touch/2-0/#!/api/Ext.data.Types convert :…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
7
votes
1 answer

sencha touch 2 list 100% height

2 panels: Ext.create('Ext.Container', { fullscreen: true, layout: 'hbox', items: [ { xtype: 'panel', html: 'message list', flex: 1, items: [ { …
dima.h
  • 860
  • 2
  • 10
  • 14
7
votes
2 answers

Trying out a simple List example on Sencha Touch 2, I get "Uncaught TypeError"

I'm trying out Sencha 2, I can get a nested list to display correctly taking an example from the tutorials, but as soon as I try a simple list variant I get the following error: Uncaught TypeError: Expecting a function in instanceof check, but got…
kaore
  • 1,288
  • 9
  • 14
7
votes
4 answers

Email validation sencha

How to check validation for email field in sencha touch?Here my code in application,Please help me to solve this { xtype: 'fieldset', items:[{ xtype: 'emailfield', inputType:'email', labelWidth: '33%', …
Fazil
  • 1,390
  • 2
  • 13
  • 26
7
votes
2 answers

Passing data to another view from controller and set a label's value in sencha touch

I have a controller, and I want to pass a simple string value to the next View. For that, I am creating the View like this. var nextView = Ext.create('MyApp.view.NextView', { content:…
Kumar Bibek
  • 9,016
  • 2
  • 39
  • 68
7
votes
1 answer

Which one is better to use Sencha Touch or phonegap for android?

I have searched many articles on Sencha Touch and Phonegap but i was unable to judge which framework is the better to integrate while developing my Android App. and even i got many stuffs on difference between Sencha Touch and Phonegap but it was…
Aadi
  • 1,131
  • 2
  • 16
  • 32
7
votes
1 answer

Handle swipe events in Sencha Touch 2

I use a carousel in Sencha Touch 2. How I can handle swipe-left and swipe-right events ?
Dragan Menoski
  • 1,092
  • 14
  • 33
7
votes
1 answer

Sencha Touch 2 - prevent a-href events (a-href event handling)

In my Sencha Touch 2 application I need to handle redirection events on my own. By this I mean I need to be able to handle a href events and do the redirection myself. I'm using the following code: Ext.Viewport.element.addListener("tap", function(e)…
Pavel Stupka
  • 213
  • 2
  • 14