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
1
vote
1 answer

How to build in a redirect if the browser is not mobile

I want to redirect users to another page if they are loading my web app from a standard desktop browser. I've tried detection scripts using php and javascript in the index file which both work fine in the dev environment. The problem is when I use…
LoneWolfPR
  • 3,978
  • 12
  • 48
  • 84
1
vote
0 answers

Control VS Listeners

The Controller class provides two ways of handling events: the listeners and control configs. Why do we need control if the class already implements Observable? Is there a reason to prefer one over the other?
alekop
  • 2,838
  • 2
  • 29
  • 47
1
vote
1 answer

Tab panel default Tab not show after the app is logined again

I am working in the sencha touch 2.0. I am unexpectedly facing a problem in the Tab Panel. At the one of my page I have TabPanel with three tabs (By Name, By Department, By Location).They are working fine but when I active the tab By Department and…
1
vote
2 answers

Sencha Architect xtype change

How can i change a xtype in Sencha Architect? Example: from: xtype: 'list' to xtype: 'RefreshableList'
MattioliSencha
  • 147
  • 1
  • 6
1
vote
1 answer

How to change a Text property for a Button Programmatically?

I'm using Sencha Touch 2, I have a button declaration, at EVENT click I want to change its text property. This my code, does not work.. any idea how to solve it? var accessibilityButton = { id: 'accessibilityButton', xtype:…
GibboK
  • 71,848
  • 143
  • 435
  • 658
1
vote
1 answer

Sencha Touch get draggable element position

Is there any way to get the current vertical position of a panel while dragging it? I have something like this: Ext.define("App.DashboardDrawer", { extend: 'Ext.Panel', xtype: 'dashboarddrawer', config: { cls: 'w-drawer', height:…
eddie.vlagea
  • 667
  • 1
  • 6
  • 18
1
vote
4 answers

Getting json from a php file in Android app

I am building a Sencha touch 2 app. I have a store that gets json data from a local php file. This works fine when I run it on Google chrome (localhost). The List get populate with the correct data. However when i deploy the app to a android…
keshav
  • 866
  • 11
  • 19
1
vote
1 answer

How to search nestedlist

I am trying to add a search bar to a nested list. Searchbar is added and works fine when i try it using console.log It finds me the record i am looking for but I can't figure out how to "refresh" the nestedlist in order to show only the search…
user1265230
  • 61
  • 1
  • 5
1
vote
1 answer

gap_bridge_mode prompt when starting a PhoneGap application

I am building a Sencha Touch application that I then build using PhoneGap. When I installel the application on my android device for testing I got a strange prompt box asking me to provide a gap_bridge_mode?! What is this and how do I get rid of it…
babbata
  • 1,644
  • 3
  • 19
  • 27
1
vote
2 answers

Sencha Touch 2 + Maps Api - fitbounds() doesn't work

im trying to set the center of my google maps to my 2 defined Markes with Google Map Api V3. But it centers just the first marker, the locationmarker. i have this code that renders a map: openShops : function(data) { if…
DenisK
  • 153
  • 1
  • 2
  • 10
1
vote
1 answer

How do I read data in a file in Sencha T2?

Sencha Touch 2 has a sample app called 'Jog With Friends', which is helpful to implement mobile authentication for FB. In auth portions of the sample app, there is reference to the FB appId as follows: ... FB.init({ appId :…
pepe
  • 9,799
  • 25
  • 110
  • 188
1
vote
1 answer

Link tap opens the Android browser and quits the app

I develop an app for Android with Sencha Touch and Phonegap (cordova-2.0.0). I have an Ext.Panel with some HTML in it, For Instance: MyPage My Problem: When I run the app on device and tap the link,…
Walter Fuchs
  • 167
  • 2
  • 11
1
vote
1 answer

How to change the views for different screen resolution?

I am developing one application using sencha touch 2. In the app, i am using some images as button and some default buttons also. Even some other components are also there. The problem is, when i am testing it for different android devices, the UI…
Arindam Mukherjee
  • 2,255
  • 11
  • 48
  • 83
1
vote
1 answer

Nested JSON in dataview with Sencha Architect

I want to display nested JSON data in a dataview in my Sencha Touch 2 project. The JSON contains details of a servicerequest with progress. The JSON: { "success": true, "message": "Request retrieved with id:789", "data": { "id":…
weerd2
  • 690
  • 1
  • 5
  • 18
1
vote
1 answer

Google map insensitive for events in Sencha Touch 2

I have a google map defined in Sencha touch 2. It's showing the map, but it's not responding on touch events. I can't move or pinch it. Ext.define('AddressBook.view.contact.Show', { extend: 'Ext.Panel', xtype: 'contact-show', requires:…
Olivier de Jonge
  • 1,454
  • 2
  • 15
  • 31