sencha-touch

How to use input type file in phonegap?

南楼画角 提交于 2019-11-29 06:45:32
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 server only through url.But is it possible in normal way like : <input type=file /><button>upload</button> input type="file" accept="image/*" doesn't work in phone gap? i looked at this link but that says only for images . But how to upload the text files ? Any help?? Can anybody answer this? You can't use input file on Phonegap. It's not supported.

Sencha Touch Vs JQTouch

。_饼干妹妹 提交于 2019-11-28 15:58:00
My startup and I are deciding which mobile touch framework to use to build our mobile web application. I'm having trouble figuring out the difference between Sencha Touch and JQTouch. I understand that both products licensed by Sencha and that Sencha Touch requires a paid license to use it commercially. Besides legal and financial issues, what are the differences, pros and cons between both frameworks. Thanks. Kris Erickson Sencha touch is a little more complicated for those used to web design to use, in that it is almost a purely programmatic model (you don't design pages in html, you

Need Help In Sencah Touch 2 Search List

99封情书 提交于 2019-11-28 11:47:38
i have problem achieving the exact result i want in building a sencha Search List, i managed to build just a list but the actual result i want is just something like this http://docs.sencha.com/touch/2-0/#!/example/search-list i have followed the example to build something similar, but my serach is not working, hope somebody can give me a detailed answer on how to achive this. below are my codes from my controller to the last. this is my controller Ext.define('List.controller.Main', { extend: 'Ext.app.Controller', config: { refs: { main: 'mainpanel' }, control: { 'presidentlist': { disclose:

How to make for loop wait until Async call was successful before to continue

痴心易碎 提交于 2019-11-28 11:41:06
Hi i am creating a batch update for my local store using for loop and async ajax call. My problem is that my loop continues even though my ajax call still not yet successfully finished. How can we manage to make for loop wait unit the response of the ajax response before continuing the loop? Any help is appreciated. Thanks!!! Below is my sample code: var counter =0; var totalRow = 3000; for (var i = 0, l = totalRow; counter <= l; i++) { var defectssurl = 'https://test.com/mywcf.svc/GetListAllPaging?id=' + counter; Ext.Ajax.request({ url: defectssurl, method: "POST", params: '', success:

Can't get jSon dataStore into ExtJS (Sencha Touch) chart: displays error “cannot read property 'length' of undefined”

白昼怎懂夜的黑 提交于 2019-11-28 11:16:29
问题 EDITED I am using Sencha touch charts sample provided for column charts. The code is as below new Ext.chart.Panel({ fullscreen: true, title: 'Column Chart', dockedItems: [{ xtype: 'button', iconCls: 'help', iconMask: true, ui: 'plain', handler: onHelpTap }, { xtype: 'button', iconCls: 'shuffle', iconMask: true, ui: 'plain', handler: onRefreshTap }], items: { cls: 'column1', animate: { easing: 'bounceOut', duration: 750 }, store: window.store1, shadow: false, gradients: [{ 'id': 'v-1', 'angle'

sencha touch textfield clear event

断了今生、忘了曾经 提交于 2019-11-28 08:58:42
问题 I'm trying to implement a list filter in a text field in sencha touch. For example, I'd have a bunch of contacts, and when I typed in the field, it might filter by name. When I click the circular X button to clear the textfield, I'd like to reset the filter to filter none of the contacts. The problem is, I can't seem to figure out a way to detect the click on the clear button. There doesn't appear to be any type of event, and I can't seem to hack in a workaround. If anyone has any idea how to

How Can I Get marker on current location in map in Sencha-Touch2.0

孤者浪人 提交于 2019-11-28 07:44:56
问题 Hey friends i m new to Sencha Touch platform. And I want to find user current location with marker please help me out. i stuck in this condition. Is there any new good tutorial for me then please share with me.. Thanks in Advance for your time. Ravi Patel 回答1: Nice question. I faced a similar problem before. But, later, I figured out the solution. Here's how you can solve it. Either use Phonegap's Geolocation API or .. Use Ext.util.Geolocation from Sencha Touch API Demo with Phonegap's

What is the proper way to load an external javascript in Sencha Touch 2

点点圈 提交于 2019-11-28 07:37:51
In my development I need to include third part javascripts; like money.js (http://josscrowcroft.github.com/money.js/) What is the best 'clean'/'proper' way to achieve it ? Just include it in index.html ? sgokhales No. Don't directly add the additional javascript files in the index.html file. That is not the recommended way ( though it may work ). Instead, do like this, Include the following line in your index.html . microloader is the folder that is shipped with sencha sdk and contains three files mainly, development.js , production.js and testing.js , each one for it's own purpose. < script

PDF.JS in Mobile apps Access-Control-Allow-Origin issue

痞子三分冷 提交于 2019-11-28 01:25:57
问题 I am trying to develop an app for mobile devices using Sencha and Cordova. As PDf support is not available in the browsers of Android I decided to use PDF.JS. It is working fine while loading the local PDf files, but when tring to open remote files it is throwing an error http://<remote server pdf location>. Origin file:// is not allowed by Access-Control-Allow-Origin Please let me know how to fix this issue. Is there any way to fix this in PDF.JS. I need PDF.Js files locally only as the app

Generate a sencha touch app

こ雲淡風輕ζ 提交于 2019-11-27 23:13:01
I am trying to create a new sencha touch app using "sencha generate app MyApp ../MyApp" command on Windows. I have done the following : Downloaded the latest sencha SDK and extracted it in folder "D:\MyProjects\sencha-touch-2.1.0-gpl" folder. Installed the sencha SDK tools in "D:\MyProjects\SenchaSDKTools-2.0.0-beta3" folder. Ensured that the system environment variable "SENCHA_SDK_TOOLS_2_0_0_BETA3" is indeed pointing to "D:\MyProjects\SenchaSDKTools-2.0.0-beta3" As per the sencha documentation I am supposed to run the sencha command in the sencha SDK or application folder. So if I cd to