sencha-touch

Sencha Mysql Queries

只愿长相守 提交于 2019-12-02 09:01:49
I'm about to port an Android-Travellog App to other Plattforms using Sencha Touch. The Problem is, that Sencha only has a Store System to store Data, but doesnt appear to have a possibilty to acctually make MySql queries. And since most of the Mysql code in my previous app is already there, id would be quite a pain to redo everything with Senchas new System. Is there a possibilty to use mysql (or any other sql) queries with Sencha to Store Data on the Phone? Sencha stores and proxies abstract away the need to write raw query code. A store can use one of a number of different proxies for

getting index value 0 from dataview any list itemtap from sencha touch

 ̄綄美尐妖づ 提交于 2019-12-02 05:40:01
I am unable to get index value form the dataview: { xtype: 'list', itemId: 'catList', store: 'CategoryStore', scrollable: false, layout: 'fit', itemHeight: 20, itemTpl: [ '<div>', '<tpl for="data">', '<span >{category_name}</span> ', '</tpl>', '</div>'], listeners: { 'itemtap': function(list, index, target, record, e, eOpts){ console.log(record.get('cat_id')); } } } Edited: If i put data static on store it works fine but it does not work while getting data from server: it works like as displayed on list: { xtype: 'list', itemId: 'catList', scrollable: false, data: [ { category_name: 'A', cat

Json Returning [object object] instead of array

白昼怎懂夜的黑 提交于 2019-12-02 05:33:04
问题 I have json data being fed into a Sencha touch app. Here's the json: http://pastie.org/2622260 - (modified for an example, of course) When I return the "images" and console.log it, it returns the following: images: "[object Object],[object Object],[object Object],[object Object],[object Object]" Rather than the URLs. My json encoder looks like this (I'm pulling the data out of a Wordpress site): case 'posts': foreach(get_posts('numberposts=50&category=') as $post) { $count = 0; $imgurl =

Are pure and traditional Ajax Requests possible on native / hybrid mobile apps?

爷,独闯天下 提交于 2019-12-02 02:49:08
I know that using JSONP thechnique http://en.wikipedia.org/wiki/JSONP we can kinda make a cross domain Ajax Request. But for this question that doesn't count as "pure and traditional". I am only wondering if for native / hybrid apps also applies the "Same Origin Policy" http://en.wikipedia.org/wiki/Same-origin_policy There seems to be a lot of confusion in this matter. A friend of mine swears that he connected Sencha Touch 2.3.1 + PhoneGap 3 to his back-end with "Ajax" proxies which I find hard to believe (proxies should be JSONP IMO), or this only requires special server config since Same

FB.getLoginStatus suddenly stopped working on android browser

非 Y 不嫁゛ 提交于 2019-12-01 20:29:09
I used to use this code: FB.getLoginStatus(function(response) { .... } But all of a sudden its not working, The callback doesn't fire. Oddly though, only with the android native browser (tested 4.0, 4.1). It works on iPhone, iPad, Chrome & Safari, including Chrome for android. I can't figure out why but its not restricted to my app. For instance I this app built by Sencha is no longer working either (I used it to base my code off): http://www.sencha.com/apps/jog-with-friends actual app url (Sencha Jog with friends): http://j.mp/senchajwf I have gone through a lot of posts on this issue and

sencha touch messagebox unclickable

牧云@^-^@ 提交于 2019-12-01 19:26:21
In sencha touch we have a little problem with a messagebox. It looks that it's something with android 4.3. On the most devices it's works perfect, but on a device with android 4.3, when the user press the button, the messagebox will not disappear. Ext.define('TestBuild.view.MyPanel', { extend: 'Ext.Panel', config: { items: [ { xtype: 'button', itemId: 'mybutton', text: 'MyButton' } ], listeners: [ { fn: 'onMybuttonTap', event: 'tap', delegate: '#mybutton' } ] }, onMybuttonTap: function(button, e, eOpts) { console.log("Test"); Ext.Msg.alert("TEST"); } }); I found the solution: Add Following

Deploy Sencha touch app on Windows Phone

半世苍凉 提交于 2019-12-01 13:11:25
I have an existing Sencha touch project which I would like to deploy on a Windows Phone device. So far I have tried to combine Sencha touch with Phonegap to deploy it via Phonegap, but I did not succeed in doing so. Since Sencha touch 2.2 Windows Phone support is builtin, according to this post . Can someone point me on howto deploy an existing Sencha touch project to Windows Phone using Sencha touch 2.2 with Sencha CMD. Any help would be appreciated. EDIT: For further clarification: By deploying I mean packaging as it is described in the official documentation (there it says that only Android

Unable setting nested json data on localstorage in sencha touch

[亡魂溺海] 提交于 2019-12-01 12:17:21
I have problem to setting nested json data on localstorage in sencha. I have Store class: Ext.define('default.store.Top25Store',{ extend: 'Ext.data.Store', config: { autoLoad:true, model: 'default.model.Top25WordFinal', id:'TodaysWord', proxy: { type: 'ajax', url: 'http://alucio.com.np/trunk/dev/sillydic/admin/api/word/my_favourite_words_with_definition/SDSILLYTOKEN/650773253e7f157a93c53d47a866204dedc7c363', reader: { type:'json', rootProperty:'' } } } }); and model class: Ext.define('default.model.Top25WordFinal', { extend: 'Ext.data.Model', requires: ['default.model.Top25WordRaw'], config: {

Determine if internet connection is available

馋奶兔 提交于 2019-12-01 11:06:37
how do you folks check if the device is connected to the internet in a sencha touch app? There's an attribute called navigator.onLine (general browser support, not specific for Sencha) If I'm in a PhoneGap application (which you often are if you're using Sencha Touch), I'd rather use their network.isReachable function, since I've by experience found it more reliable. There's also something called 'Offline events', John Resig describes them on his blog: http://ejohn.org/blog/offline-events/ . If there is no network connection during an ajax request sencha touch will return a response with a 0

Deploy Sencha touch app on Windows Phone

家住魔仙堡 提交于 2019-12-01 10:09:49
问题 I have an existing Sencha touch project which I would like to deploy on a Windows Phone device. So far I have tried to combine Sencha touch with Phonegap to deploy it via Phonegap, but I did not succeed in doing so. Since Sencha touch 2.2 Windows Phone support is builtin, according to this post. Can someone point me on howto deploy an existing Sencha touch project to Windows Phone using Sencha touch 2.2 with Sencha CMD. Any help would be appreciated. EDIT: For further clarification: By