sencha-touch-2

How to get Indian postal pincode using google map's lat & long? [closed]

五迷三道 提交于 2019-11-30 07:34:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am making an app which will take user's current location or his customized map marker to find out lat & long and then using those values I would like to know pincode(zipcode) of that area so that I can tell user whether goods can be delivered in that area or not. I have tried this : http://www.geonames.org

Sencha Touch 2 MVC - how to switch views with button

江枫思渺然 提交于 2019-11-30 05:07:24
I have this controller: Ext.define('MyApp.controller.Test', { extend: 'Ext.app.Controller', config: { }, refs: [ { ref: 'first', selector: '#first' }, { ref: 'second', selector: '#second' } ], views : [ 'TestMain', 'TestSecond' ], init: function() { this.getTestMainView().create(); this.control({ '#first': { tap: function() { //how do I go to second view here? } }, '#second': { tap: function() { } } }); } }); and these 2 views: Ext.define('MyApp.view.TestMain', { extend: 'Ext.Container', xtype: 'testmain', config: { fullscreen: true, layout: 'vbox', scrollable: true, items: [ { xtype: 'button'

Adding a click event to an element?

一个人想着一个人 提交于 2019-11-30 01:27:43
How can one assign a click event to an arbitrary span ( eg. <span id="foo">foo</span> ) in an ST2 app? I have a trivial example that illustrates the idea of what I'd like to do. In the example, I write the letters A,B,C and I'd like to tell the user which letter they clicked. Here's an image: CODE SNIPPET Ext.application({ launch: function() { var view = Ext.create('Ext.Container', { layout: { type: 'vbox' }, items: [{ html: '<span id="let_a">A</span> <span id="let_b">B</span> <span style="float:right" id="let_c">C</span>', style: 'background-color: #c9c9c9;font-size: 48px;', flex: 1 }] });

how to handle device back button on sencha touch application

為{幸葍}努か 提交于 2019-11-29 22:40:23
In Sencha touch if I use navigation view i can get back button. This is pretty fine. But what if user hit device backbutton? it is direct exiting the applicaiton. In my requirement it should not exit the application it has to go back to previous screen.How can i do this?. You can handle hardware back button like this: if (Ext.os.is('Android')) { document.addEventListener("backbutton", Ext.bind(onBackKeyDown, this), false); function onBackKeyDown(eve) { eve.preventDefault(); //do something alert('back button pressed'); } } I didn't find the instructions on the history support page that useful

A solid tutorial for Sencha Touch V2 [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 19:53:07
I found a great tutorial on creating an MVC App from Scratch using Sencha Touch V1.1 but unfortunately it isn't all that applicable to Sencha Touch V2. I want to learn the new/right way to build an MVC app moving forward with their latest framework. Any good tutorial for building an MVC App using Sencha Touch V2? Here's a list of places I've already looked. Official Docs Videos are outdated Examples don't show source snippets, you have to "View Source" and try to wade through the compressed/minified versions of the library. Documentation doesn't describe MVC at all (just try searching for "mvc

Difference of Native packaging between Sencha touch2 and PhoneGap

試著忘記壹切 提交于 2019-11-29 17:21:56
问题 What is the difference of native packaging between Sencha touch2 and PhoneGap? Many people use PhoneGap to natively package app based on Sencha touch, but I find that Sencha touch 2 has a new feature of native packaging. So which type of native package is better in Performance, scalability, functionality, maturity, etc. ? How do you choose? 回答1: PhoneGap is a middle-platform which is able to access some native APIs on many platforms and its interface language is Javascript. This means that

How to alert the user when there's no internet connection

人盡茶涼 提交于 2019-11-29 15:15:12
问题 I need to alert the user with the following conditions; Request timed out No internet connection Unable to reach the server Here's the code; How to capture the following conditions when occurred and alert the user ? failure: function (response) { var text = response.responseText; console.log("FAILED"); },success: function (response) { var text = response.responseText; console.log("SUCCESS"); } I tried the following code to check if the internet is reachable, but it didn't work var

GXT 3 mobile support

百般思念 提交于 2019-11-29 13:02:01
Support GXT 3 responsitive design out of the box or is there another way to get a good mobile application with GXT running. I know about Sencha Touch but I don't want to develop two standalone apps.. Regards, Markus 2015-01-22 update without mentioning a date, but looks promising: sencha.com: Taking a Look at Sencha GXT and GWT it seems in summer 2014 (around now :-)) we should get this natively with GXT 4.0 from Sencha: http://www.sencha.com/blog/gxt-roadmap-update/ full tablet support (touch gestures, smooth scrolling, drag and drop, and more...) But it seems with touch4j ( http://emitrom

What is the expected collaboration workflow with Sencha Architect?

房东的猫 提交于 2019-11-29 12:36:34
问题 I started a trial of Sencha Architect, and the more I use it more questions come to my mind for its actual feasibility usage in a development environment, one of the bigger questions I have is In an environment that you can't edit the individual files in different editors, how can multiple people collaborate in developing different parts of a site, for example app/models|components|views/Model1.js <- In charge of developer one app/models|components|views/Model2.js <- In charge of developer

Sencha Touch 2.3 / Cordova : Build run directly on device

亡梦爱人 提交于 2019-11-29 12:23:46
I created an app for android with Sencha Touch 2.3 and Cordova. I used the following command to build and run the apk: sencha app build -run native However, this runs the app on the emulator but I would like to directly run it on the usb connected android device. Is it possible? I already tried commands like these but it didn't work. sencha app build -device native or sencha app build -run -device native It is possible. There is a difference between Sencha and Cordova commands and both are for different purpose. Once you want to make apk for your android device. Just go through the steps here