sencha-touch

Phonegap : Camera view with background image

荒凉一梦 提交于 2019-12-01 08:27:29
I am using Phonegap with Sencha Touch to get camera functionality. But instead of the default camera view, I want a picture with transparent background to be overlaid upon the live camera view. Similar to below example where a dinosaur image has been overlaid upon the camera view image. Can you tell me whether this feature can be achieved with Phonegap or in any other way? It can be achieved but it requires a bit of native code and a simple trick. You need to set the phonegap container to transparent, and also add a surface behind your phonegap container. You use native code to initialize the

Accordion in Sencha touch

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 05:38:34
Is there any example with code for Accordion like effect in Sencha touch. I need to implement the same for the iPad . Not sure why this got downvoted but there absolutely is courtesy of a plugin by Mitchell Simoens: https://github.com/mitchellsimoens/Ext.layout.AccordionLayout 来源: https://stackoverflow.com/questions/6471071/accordion-in-sencha-touch

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

可紊 提交于 2019-12-01 03:48:54
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 Ext.define() to create a store and it works. Now, my question is: what are the differences between them and when/how to use either one of them in a right way? Some demo code is highly appreciated Thanks a lot my friends. define is for declaring a class. Ext.define('Foo', { extend: 'Bar' }); // Similar to: public class Foo : Bar { } create is for

ExtJS 4 / Sencha Touch Container, Component, Element and Panel

拥有回忆 提交于 2019-12-01 03:44:55
问题 What are the relations or differences between Container, Component, Element and Panel? Please help. 回答1: If briefly... Element is wrapper for DOM element. Component is basic class for all widgets. Container is subclass of Component. It can have "items" (i.e. Container can contain other components). Panel is subclass of Container. It can have header, footer, toolbars, and other docked items. You can find more info in Layouts & Containers and Components 回答2: For Sencha Touch, Container and

Accordion in Sencha touch

北战南征 提交于 2019-12-01 03:28:56
问题 Is there any example with code for Accordion like effect in Sencha touch. I need to implement the same for the iPad . 回答1: Not sure why this got downvoted but there absolutely is courtesy of a plugin by Mitchell Simoens: https://github.com/mitchellsimoens/Ext.layout.AccordionLayout 来源: https://stackoverflow.com/questions/6471071/accordion-in-sencha-touch

How to cache subcomponents instance inside components

随声附和 提交于 2019-12-01 01:58:47
问题 A lot of Sencha Touch examples I found online, don't really focus on proper view encapsulation. So the Controller listens to every single button's event even if the button is deep nested inside a view. In other words the internals of the view leak through which is never a good thing. I found one good tutorial that encourages you to create meaningful views that listen to local events and raise meaningful business events etc. http://miamicoder.com/2012/how-to-create-a-sencha-touch-2-app-part-2/

install sencha-touch 2.1 on mac

隐身守侯 提交于 2019-12-01 01:51:26
I need to install sencha touch 2.1 on my mac but I can't… i follow this guide http://www.sencha.com/learn/getting-started-with-sencha-touch-2 so i installed sencha cmd and i copy the sencha-sdk folder in the www/ directory of apache.. if i do: localhost/sencha-skd on my browser i see the docs of sencha, so the server works fine.. but from the terminal if I write the command sencha i get -bash: sencha: command not found and this happend in every folder… somebody can help me? thanks a lot Download and install Sencha Cmd : http://www.sencha.com/products/sencha-cmd/download Then ensure that the

Mobile Application Using Sencha Touch - JSON Request Generates Syntax Error

空扰寡人 提交于 2019-12-01 01:10:32
I started playing a bit with Sencha Touch. So I've built a really simple application based on one of the examples just to see how it goes. Basically it creates a JSON Request which executes a Last.FM web service to get music events near the user's location. Here's the JSON code: var makeJSONPRequest = function() { Ext.util.JSONP.request({ url: 'http://ws.audioscrobbler.com/2.0/', params: { method: 'geo.getEvents', location: 'São+Paulo+-+SP', format: 'json', callback: 'callback', api_key: 'b25b959554ed76058ac220b7b2e0a026' }, callback: function(result) { var events = result.data.events; if

How do you remove the Next and Prev buttons from virtual keyboard in Sencha Touch / Phonegap application

北城余情 提交于 2019-11-30 21:11:38
So I have this Phonegap application built using Sencha Touch. I have a textarea control for users to type in some information. When the box gets focus it brings up the virtual keyboard. But the virtual keyboard has next previous and done buttons on it. How to I remove the next and previous buttons? They don't seem to do anything anyway. There is a way!! This guy has done it by making modifications in the AppDelegate.m. You can find description at this link under bonus code section. You can also refer the code for same developed by Kerri Shotts Code Here Now that the done button is gone i am

Sencha sqlite example

限于喜欢 提交于 2019-11-30 20:31:00
I would like to see a decent example of a mobile web app using the Sencha framework with a client side DB accessed with SQLite. I'm currently digesting JqTouch and kinda get the binding method used there from reading Jonathon Stark's "iPhone apps" book, but cant find any examples of accessing Senchas features ie listed elements with SQLite. The DB will be small; 30 records, with about 5 fields, mostly numeric, a few of them calculated. All the math is done in javascript and I have that part working (in dash code). I need to add, delete, and edit the records. Any pointers or examples would be