Questions tagged [sencha-touch]

Sencha Touch is a multi mobile device JavaScript library based on HTML5 and the Model, View, Controller pattern. It is a product of Sencha Inc.

Sencha Touch is a multi mobile device JavaScript library based on HTML5 and the Model, View, Controller pattern. It is a product of Sencha Inc.

Sencha Touch 1.1.1 supported platforms

  • Apple iOS 3+
  • Android 2.1+
  • RIM Blackberry 6+

Sencha Touch 2.0 supported platforms

  • Android 2.3+, 4.03
  • iOS 4, 5.
  • BlackBerry 6+

Resources

Latest stable release

Licensing

  • Free Commercial License
    • Includes minor updates but excludes major updates and patch releases.
    • According to the FAQ, selling an SDK or application designer based on Sencha Touch requires a paid OEM license.
  • GPL v3
4732 questions
10
votes
4 answers

How to add a custom validation rule to a model in Sencha Touch

This article by Sencha covers how to use the built in validation rules (presence, length, format, inclusion, exclusion) and mentions that adding custom rules is easy, but doesn't ever explain how to do it. I've googled high and low and read the…
micmcg
  • 2,372
  • 18
  • 16
10
votes
3 answers

What is the point of Ext.apply versus simply setting values on the target?

Using Ext.js or sencha, what is the point of doing the following: Ext.apply(app.views, { contactsList: new app.views.ContactsList(), contactDetail: new app.views.ContactDetail(), contactForm: new app.views.ContactForm() …
Chris
  • 39,719
  • 45
  • 189
  • 235
10
votes
4 answers

Sencha Touch MVC -- recommended ways of passing data through the controller?

I'm using Sencha Touch for a mobile app and am using the MVC functionality in it. I like Sencha quite a bit but I'm having a little trouble when it comes to passing data from one 'screen' to the next using the controller. There's a "record"…
larryq
  • 15,713
  • 38
  • 121
  • 190
10
votes
1 answer

Sencha Touch - Map.Geo = null

I am trying to follow this simple tutorial on Sencha Touch http://dev.sencha.com/deploy/touch/getting-started.html I keep getting the JavaScript error: Uncaught TypeError: Cannot call method 'on' of null This relates to the Map.geo property which…
10
votes
2 answers

How can I embed video in my Sencha Touch app?

I'm working on a Sencha Touch ipad app which pulls content from a JSON feed. The JSON contains some images, plus some video URLs from Youtube and Vimeo. Where do I start trying to play embedded video in the app?
strangerpixel
  • 798
  • 1
  • 11
  • 27
10
votes
1 answer

Navigating with a button in sencha touch

I am taking my first steps with Sencha touch. The results are just what I am after, getting there however is a struggle to get how sencha is put together. I am slowly figuring it out but sometimes the way the code works is a bit WTF. I am trying to…
johnwards
  • 1,901
  • 3
  • 18
  • 27
10
votes
2 answers

sencha app build native without minify JS

I want be able to build a native app, but without minifying the JS so I can debug it later confortably. Currently I'm executing: sencha app build native How can I be able to build without minifying JS files? Thanks
mpinvidio
  • 489
  • 6
  • 17
10
votes
2 answers

What are differences between Ext.create() and Ext.define() in SenCha Touch

I have been learning SenCha Touch for awhile and still feel confused when trying to create a store. In the SenCha Documentation, it says to use Ext.create() Example I tried and it simply doesn't work. For the rest of others, I always see people use…
Franva
  • 6,565
  • 23
  • 79
  • 144
10
votes
2 answers

How to use input type file in phonegap?

How to use html file attribute in phonegap ? so that i can browse any .txt file from my android device and upload it to the server?? I read file transfer method in phonegap documentation but according to that it is possible to upload files to the…
SSS
  • 1,380
  • 3
  • 28
  • 48
10
votes
1 answer

Sencha Touch 2 nested models and data stores

I hardly even know how to ask this one, but here goes. I have two models, a Platter which contains many Recipes: Ext.define('NC.model.Platter', { extend: 'Ext.data.Model', config: { fields: [ { name: 'name', type: 'string' }, {…
kmc
  • 660
  • 13
  • 25
9
votes
5 answers

Sencha touch 2- Ext.dispatch replacement?

What is the replacement for sencha touch 1.1 Ext.dispatch method in sencha touch 2? I need replacement for code below listeners:{ itemtap:function(data,index){ var record = data.getStore().getAt(index); // the record that has…
Pravin
  • 6,592
  • 4
  • 42
  • 51
9
votes
2 answers

Sencha Touch unit testing best practice?

I would like to do unit testing on my Sencha Touch application, I have found plenty of information online, but not any promising guide that was worth following. Are there any resources to recommend? I am keen on using QUnit, could you please provide…
nosuic
  • 1,350
  • 3
  • 18
  • 23
9
votes
3 answers

Embed PDF Viewer for PhoneGap application

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.
JohanSJA
  • 705
  • 2
  • 9
  • 21
9
votes
1 answer

Why should I use Ext.dispatch rather than calling controller code directly?

When using the [relatively new] MVC bits in Sencha Touch I find that 90% of my dispatch calls look something like: Ext.dispatch({ controller: "customers", action: 'show', record: record }); That's fine, and I like delegating the flow to…
Chris Farmiloe
  • 13,935
  • 5
  • 48
  • 57
9
votes
3 answers

Sencha Touch: How the heck does this framework work?

I am having an absolute nightmare trying to build anything of value with Sencha Touch. The docs seem to describe everything in bits in pieces without every tying everything together.. One of my key gripes is that I don't understand how anything is…
BingoBoy
  • 185
  • 2
  • 7