sencha-touch-2

how to fullscreen a Sencha Touch 2 page on a WebKit browser?

為{幸葍}努か 提交于 2019-11-28 12:38:46
When I visit http://www.wikpic.com/ on my Android-WebKit-browser the page renders on fullscreen, in other words the navigation bar that shows the URL disappear. How can I do that? I tried this option but it doesn't work: Ext.create('MyApp.view.MyList', {fullscreen: true}); This is my app.js code: Ext.Loader.setConfig({ enabled: true }); Ext.application({ models: [ 'Contacto' ], stores: [ 'Contactos' ], views: [ 'MyList' ], name: 'MyApp', launch: function() { Ext.create('MyApp.view.MyList', {fullscreen: true}); } }); Thanks! You are looking for the autoMaximize configuration for Viewport: Ext

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:

Read nested XML to model with hasMany association, Sencha, ExtJS

丶灬走出姿态 提交于 2019-11-28 10:52:27
问题 I am trying to parse the following xml (after hosting in my local machine) and load it to store. <?xml version="1.0" encoding="UTF-8"?> <users> <user> <id>2</id> <name>shameel</name> <post> <user_id>5</user_id> <title>programmer</title> <body>nothing</body> </post> <post> <user_id>6</user_id> <title>newpost</title> <body>congrats</body> </post> </user> <user> <id>3</id> <name>abdulls</name> <post> <user_id>5</user_id> <title>programmer1</title> <body>nothing1</body> </post> <post> <user_id>6<

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

Nested List, Multiple Layouts

徘徊边缘 提交于 2019-11-28 01:41:11
问题 In Sencha Touch 2.1, I have the following nested list defined: xtype: 'NestedList', docked: 'top', ui: 'light', store: treeStore, detailCard: true, detailContainer: // Reference to a Another Panel I can get the Nested List to appear, but adding items via JSON is proving problematic. Here's a sample of my JSON: [ { "BranchID" : 4, "BranchName" : "Branch Name", "Jobs" : [ { "JobOrderID" : 75, "JobTitle" : "Job Title", "leaf" : true } ] } ] And here is my Tree Store and List Item: // Define a

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

Call controller's function from another controller / Share data between controllers

本秂侑毒 提交于 2019-11-27 22:15:22
问题 For the moment, when I'm in a controller and that I want to call a function from another controller, I do this : App.app.getControllerInstances()['App.controller.OtherController'].do_something(); Is seems a bit heavy to me, is there another (better) way to do this ? Thanks 回答1: I would use the getController method: http://docs.sencha.com/touch/2-0/#!/api/Ext.app.Application-method-getController EG: this.getApplication().getController('ControllerName').doSomething(); 回答2: If you're not in the

phonegap geolocation always fail on timeout

北战南征 提交于 2019-11-27 22:07:31
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) + ' ' + String(position.coords.longitude),'Geolocation'); var scope = Ext.getCmp('nestedList'); scope

ActiveXObject is not defined and can't find variable: ActiveXObject [duplicate]

☆樱花仙子☆ 提交于 2019-11-27 13:15:19
This question already has an answer here: ActiveXObject in Firefox or Chrome (not IE!) 4 answers i want to create text file in local, when i browse in Google chrome click of the button it is showing error like ActiveXObject is not defined and when i browse in safari click of the button it is showing error like can't find variable: ActiveXObject . any one can help me.how can i achieve and create file .Thanq <script> function createFile() { var object = new ActiveXObject("Scripting.FileSystemObject"); var file = object.CreateTextFile("C:\\Hello.txt", true); file.WriteLine('Hello World'); alert(