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

Android Back Button Event Mapping with Sencha

Is there any way to map the default back button event in android to sencha touch without using phonegap/cordova???
Ram G Athreya
  • 4,892
  • 6
  • 25
  • 57
1
vote
1 answer

Populating a Sencha Touch 2 form with associated models

I am trying to take advantage of Sencha Touch 2's ability to handle associated models. In my case, suppose I have a Selection and Book: Selection <<--> Book. So, I have a record that could look like this: { id: 123, position: 1, book: { …
spamguy
  • 1,575
  • 2
  • 17
  • 37
1
vote
1 answer

ST2.1 - Uncaught TypeError: Object [object Object] has no method 'link'

I've just tried to upgrade my ST2.0 source files of my application to ST2.1 by copying over all the javascript files in my project in the 'src' folder. When I load the first screen I get the following error: Uncaught TypeError: Object [object…
jaffa
  • 26,770
  • 50
  • 178
  • 289
1
vote
1 answer

Having issues with google maps using sencha touch

I am new to sencha touch but the error I am getting seems to be related to google maps api. I am making a call to google maps api to search for a a specific place in sencha touch. But I am getting below error Here is my code inside store/Places.js…
Om3ga
  • 30,465
  • 43
  • 141
  • 221
1
vote
1 answer

Sencha touch 2 listitem itemtap not working

I use Ext.List and ListItem components for listing. The problem is that, I can not use itemtap event anymore. I found why it would not work. Itemtap event only fires in list-item-body, but when i add some components in listitem structure, they are…
handet87
  • 549
  • 5
  • 22
1
vote
2 answers

How to open web page in browser from android apk?

I created a simple app with Sencha Architect and pack it to .apk. When I test it on my device, i notice that I couldn't switch to browser and open a web page from the app. (e.g. the app show a yes-no dialog, when user press the yes button it should…
Andrew L.
  • 170
  • 2
  • 10
1
vote
1 answer

Sencha touch 2 : Getting XMLHttpRequest cannot load file: data.json.Origin null is not allowed by Access-Control-Allow-Origin

I am trying to load some data from the json file hosted on the local server but I am getting an error "XMLHttpRequest cannot load http://localhost:8080/data.json?_dc=1355779280677&page=1&start=0&limit=25. Origin null is not allowed by…
Gendaful
  • 5,522
  • 11
  • 57
  • 76
1
vote
2 answers

How can I add items to a carousel component from a store load-callback function?

I don't know how to add items in the last two lines of code below. Images from flickr are loading correctly. TR.view.photoset.Carousel.add(items) resulted the error message "Uncaught TypeError: Object function () { return…
Michael
  • 6,823
  • 11
  • 54
  • 84
1
vote
1 answer

how to get the media content attribute value from xml in sencha touch 2

i want to get the media:content attribute -> "url"value which is highlighted in the snapshot in sencha touch 2.. My Sencha Model Code is Ext.define('MyApp.model.Feed', { extend: 'Ext.data.Model', config: { fields: [ { …
Waqas Ghouri
  • 1,079
  • 2
  • 16
  • 36
1
vote
1 answer

AutoCreate in Sencha Touch - why is it required?

I've seen this code in the Sencha Touch documentation. If autoCreate was set false what would happen to the infopanel view? Not sure I understand why autoCreate has to be specified. Could it not do this behind the scenes anyway if the object type…
jaffa
  • 26,770
  • 50
  • 178
  • 289
1
vote
2 answers

Binding a Sencha Touch Model to a fieldset

Is there a way to bind a model to a fieldset so that code like this can be avoided (manually setting each field of a model). var vals = this.getUserDetail().getValues(), rec = this.getUserDetail().getRecord(), errorObject; //…
nsg
  • 10,510
  • 4
  • 21
  • 32
1
vote
0 answers

Writing bas64 Callback response from Sencha to File.writer Phonegap issue

i'm facing a pb about decoding a response.responseText from a Rest service (which job is to send me a cert.p12 file). So i'm able to get my data in var obj = Ext.JSON.decode(response.responseText); then this data is a base64 object i want to…
user1900360
  • 149
  • 1
  • 1
  • 4
1
vote
1 answer

Get an Ext.dataview.List instance to show up inside of an Ext.tab.Panel instance

I cannot figure out how to show my Ext.dataview.List object inside of another object. If I try to show the Ext.dataview.List object in the viewport, by itself, I can see my data. But if I try to include it as a component inside of another component,…
Morris Singer
  • 1,715
  • 2
  • 18
  • 34
1
vote
1 answer

Sencha Touch 2 : List is not displayed inside tab panel

Background: I am developing an application using the senchatouch 2 MVC framework. I am working on a screen which uses a tabpanel with two tabs. Issue: In first tab, I want to display a titleBar and a List. I am able to display the titleBar but not…
Gendaful
  • 5,522
  • 11
  • 57
  • 76
1
vote
1 answer

how to implement image gallery with full screen mode option in sencha

i want to implement some thing similar to the below link http://dimsemenov.com/plugins/royal-slider/gallery/ in sencha touch 2.1 Can anybody give an idea how it can be done or is their any resources out their for the same to implement in sencha…
fuzionpro
  • 601
  • 6
  • 19