sencha-touch-2

phonegap geolocation always fail on timeout

拟墨画扇 提交于 2019-12-17 16:19:14
问题 I'm using sencha-touch 2.0 and phonegap 2.0.0 in my app to retrieve user's location. When runing on my locahost, everything works just fine. However, when loading the .apk to my android 15 api's device (using eclipse and the adt plugin), every call to getCurrentLocation or watchPosition never returns... here is my code: geoOn: function(){ var geoReady = navigator.geolocation || undefined; var onSuccess = function(position){ Top5.app.alert('Geolocation success '+String(position.coords.latitude

sencha touch with phonegap (using sencha cmd and phonegap build) causes Error : LocalFileSystem not defined

南笙酒味 提交于 2019-12-17 15:04:20
问题 I followed these sencha cmd guide to produce a phoneGap based sencha touch 2 project: Using Latest Sencha Cmd v4.0.2.67 , Latest sencha touch 2.3.1 , phoneGap ver- 3.1.0 1) Make a sencha touch 2 project by : sencha -sdk /path/to/sencha-touch-sdk generate app MyApp /path/to/www/myapp 2) Add phoneGap to the above project sencha phonegap init 3) configure the phonegap.local.properties phonegap.platform=android phonegap.build.remote=true phonegap.build.remote.username=myUseName phonegap.build

Registry key Error: Java version has value '1.8', but '1.7' is required

久未见 提交于 2019-12-17 08:16:10
问题 While running sencha app build production I am getting the following error: Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required. Error: could not find java.dll Error: Could not find Java SE Runtime Environment. java -version , command is showing following: java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) Not able to find where path is

Sencha Touch 2 set label in Controller

帅比萌擦擦* 提交于 2019-12-14 04:01:00
问题 I'm new to the MVC structure with Sencha Touch 2. In my view, I have a label as follows: { xtype: 'label', itemId: 'title', html: 'title' } In my controller, how do I set the value of this label? Currently my controller (working off a tutorial sample): Ext.define("NotesApp.controller.Notes", { extend: "Ext.app.Controller", config: { refs: { // We're going to lookup our views by xtype. noteView: "noteview", noteEditorView: "noteeditorview", notesList: "#notesList" }, control: { noteView: { //

Ext.Ajax.Request not working in Browser

江枫思渺然 提交于 2019-12-14 03:17:29
问题 Ext.Ajax.Request doesn't seem to work on desktop web browsers for me. It works perfectly fine on devices and on the xcode simulators but on desktop web browsers, it calls on the failure method. Here is the code: // send ajax request Ext.Ajax.request({ url: 'http://testapp.cloudapp.net/index.php/api/accounts/login/', method: 'POST', params: { username: Ext.getCmp('username').getValue(), password: Ext.getCmp('password').getValue() }, dataType: 'json', success : function(response, request) { if

Phonegap Cordova 2.0.0 Android apk Error

荒凉一梦 提交于 2019-12-14 02:14:02
问题 I build a very simple Sencha-Touch-2 app and deployed it to Eclipse. The app work on Chrome, but on the device I'm getting the following error: E/dalvikvm(270): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse I tried to google it but didn't found solution for me. My App is at android 2.3.1 level and my device is 4.1.1 and it doesn't work on both of them. Thanks 回答1: Do you have 'cordova-1.9.0

Scope Problems, Sencha, Getting Data passed to view from controller in items?

蓝咒 提交于 2019-12-14 02:11:55
问题 I am passing a record in from the controller via: showDetail: function (list, record) { this.getMain().push({ xtype: 'leaddetail', data: record.data }); }, My View: Ext.define('ApexChat.view.LeadDetail', { extend: 'Ext.Panel', xtype: 'leaddetail', init: function() { debugger; }, config: { styleHtmlContent: true, scrollable: 'vertical', title: 'Details', frame: true, labelwidth: 75, items: [ { xtype: 'fieldset', columnWidth: 0.5, collapsible: true, title: 'Lead Information', defaultType:

Sencha Touch consecutive listviews double back buttons issue

主宰稳场 提交于 2019-12-13 22:16:25
问题 The image above shows the current structure of my Sencha Touch app. My details pages end up with 2 back buttons because a user goes through 2 listviews to get to the details view. I am looking for a solution which will put a single back button on the details view which goes back to the vacancies list. And the vacancies list will have it's own back button which goes back to the sections list. 回答1: Use an Ext.navigation.View. It will handle all the view transitions and will create a back button

How to select the file depending on the browser language?

心已入冬 提交于 2019-12-13 21:39:10
问题 How to select the file depending on the browser language in sencha touch 2? I have 3 files app_de.js, app_en-US.js and app_es.js under my project. I am finding the browser language and loading the file like this: <script type="text/javascript" id="extlocale"> var browserLang = window.navigator.language; // get the browsers language alert(browserLang); var locale = 'en'; // default locale if(browserLang == 'de' || browserLang == 'de-de') //called when the language is german { locale = 'de'; }

Sencha Touch list doesn't load data in browser

蹲街弑〆低调 提交于 2019-12-13 21:24:31
问题 I have a really simple Sencha Touch 2.0.1 app made with Sencha Architect 2.0.0: a list of items loaded from a json file online (here). If I export it to an APK and install it on my droid, it displays perfectly. However if I try it on Chrome or Safari, they say 'Loading...' then display the word 'empty' where the list should be. I get this error in Firebug: GET http://listtest.webs.com/data.json?_dc=1344620739517&page=1&start=0&limit=25 x 166ms (where that 'x' is circled in red, meaning the