sencha-touch

How to define global variable in sencha

一笑奈何 提交于 2020-01-05 09:21:57
问题 I am try to global variable in one entire view, could not done it. initialize : function(){ this.callParent(); this.nameValue=0; if(name="ram") this.nameValue=1; console.log("Test 1 -"+this.nameValue); }else { this.nameValue=0; console.log("Test 2 -"+this.nameValue); } } it would be access value form button tap like this: onSubmitButtonTap: function () { console.log("Button Tap Here"); console.log("Test Def-6-"+this.nameValue); } But i could not access it, it display always 0. I have gave

How to open a Sencha Touch View from an Android Activity or Objective C method

删除回忆录丶 提交于 2020-01-05 08:49:19
问题 How to open a Sencha Touch view from an Android Activity? I can define this Activity in the android manifest so when user attempts to open myawesomeapp://doSomethingSpecificToThisDeepLink I can do something, i guess I have to provide a class com.myCompany.AwesomeHandler ... but from there how can I open a Sencha Touch View ? <activity xmlns:android="http://schemas.android.com/apk/res/android" android:name="com.myCompany.AwesomeHandler" android:label="OpenMyTrustfulApp"> <intent-filter>

Sencha Touch 2: Ext.Msg.show and tapping anywhere to hide

江枫思渺然 提交于 2020-01-05 05:48:06
问题 I want to display the popup message without any buttons. The message disappears if you tap on it. The code works fine and was taken from Sencha Touch 2: tapping Ext.Msg.show that have no buttons, thank you Viswa. Ext.Msg.show({ title: 'Title', message: 'Some text goes here...', itemId : 'showMsg', buttons : [], listeners:[ { element: 'element', delegate: '', event: 'tap', fn: function() { this.hide(); } }] }); How to make it disappeared when you tap anywhere on the screen , not on the popup

Jquery library not working with sencha touch?

烈酒焚心 提交于 2020-01-04 18:18:50
问题 I am currently building an mobile application that is based on Sencha Touch 2. At the moment im just trying out some experiments to see what Sencha is capable too. And today I got stuck on a thing that really seems strange - I just wanted to try if I could use the jQuery library for my application and use it's additions. Strangest thing is I can't get any response from when I am making a jquery function. I've included the jquery library and my script in the index.html file in my sencha

Sencha-touch localization. Use a store or a global JSON object?

送分小仙女□ 提交于 2020-01-04 06:45:07
问题 I'm writting an application in Sencha-Touch 1.1 and I want to add localization to strings. I've thought (but not implemented) of two ways. Create seperate JSON files for each language (en-US.json, el-GR.json etc) and use a proxy and a store to load the data, changing each time the proxy url (json file destination). The problem is that I don't know how to extract the data from the store afterwards. Create a global JSON object which then I inflate (parse the json file and turn it into an object

Sencha touch XML response to JSON

南笙酒味 提交于 2020-01-04 06:05:37
问题 I have recently started a project in Sencha touch with existing Web-services. Being very new to the technology, I am facing certain issues in accomplishing some functionality. Problem I have to call login service and the request goes like: http://domain.sub.com/Service.asmx/LoginService?body={"Username":"maj@smaj.com","Password":"p12345","Token":122112321123212123,"Method":"Login","LabId":"(null)","Hash":"fr3f33f3334348u8yy8hfuhdu8bdy7y89u89x8998c89789c87d78r9","DeviceType":"iPhone Simulator"

Sencha image gallery view

为君一笑 提交于 2020-01-03 06:51:05
问题 I am creating a grid(gallery) view to show the images. Application fetch the images from the server and display it in grids. I can create this view using XTemplate and it is giving me appropriate result. My Xtmeplate code is: tpl: Ext.create('Ext.XTemplate', '<div class="gallery" id="photos">', '<tpl for=".">', '<img src="{media:this.getURL}{picname}" width="30" height="30" class="thumbnail" data-fullimage="{media:this.getURL()}{picname}" alt="{description}"/>', '</tpl>', '</div>',{ getURL:

Sencha touch Textfield hightlight behavior in Samsung Galaxy Tab

别等时光非礼了梦想. 提交于 2020-01-03 05:57:18
问题 While editing any textfield/textareafield in Sencha touch, the text field gets highlighted or focussed. This behavior is causing too many issues. The loading indicator and Alert appears behind the highlighted textfield as the text field remains focussed. This behavior is seen only in Samsung Galaxy Tab. The app behaves fine on iPad. Please let me know if it is possible to remove this highlighting effect. 回答1: Solution CSS: input[type="text"], input[type="password"]{ -webkit-user-modify: read

sencha touch 2.0 : How to split a form across tab panels

爱⌒轻易说出口 提交于 2020-01-03 04:26:09
问题 I would like to split a form across several tab panels to avoid a (very) long form (forcing the user to scroll quite a lot to fill every field). For the moment, I use fieldsets to group fields, but I would like to put the respective fields in separate tabs. Is there a way to do that ? Thanks 回答1: Actually, it is simply possible to add a 'tabpanel' inside the 'formpanel', and the fields values will still be accessible (when using getValues() or submit())... Simple enough ;) 回答2: Yes, Create a

Sencha Touch XML Parsing Issue

僤鯓⒐⒋嵵緔 提交于 2020-01-03 02:50:13
问题 I am new to Sencha Touch framework. I tried using the Documentation to make a demo application. I am trying to display records from a XML file and display it in table format. I am not able to understand what I am doing wrong. I am getting the Dock at the top of the screen and a blank page. Below is my code Index.js Ext.setup({ onReady: function(){ Ext.regModel('User', { fields: ['id', 'name', 'email'] }); var store = new Ext.data.Store({ model: 'User', proxy: { type: 'ajax', url : 'users.xml'