sencha-touch-2

including sencha touch 2 in eclipse

蹲街弑〆低调 提交于 2019-12-02 10:42:02
i am using sencha touch 2 for first time .i have installed mds applaud plugin with sencha touch support for eclipse i start project by including sencha touch library as shown below. then i add sencha code as follows but when i run the programme in android emulator instead of printing hello world it shows blank white screen as below. can anyone help me how to run this application sucessfully ? Roman Horwarth I'm pretty new to this, but I found that you can test the view in your browser by directing it to the folder that the app is in. For example, I just created an app called "TS2". The app is

Sencha Touch 2: tapping Ext.Msg.show that have no buttons

送分小仙女□ 提交于 2019-12-02 10:16:57
I want to display the popup message without any buttons. Ext.Msg.show({ title: '', message: 'Some text goes here...', buttons : [] }); It works fine. How to make it disappeared when you tap on it? I tried for you and i got what you want Ext.Msg.show({ title: 'Title', message: 'Some text goes here...', itemId : 'showMsg', buttons : [], listeners:[ { element: 'element', delegate: '', event: 'tap', fn: function() { this.hide(); } }] }); 来源: https://stackoverflow.com/questions/17596316/sencha-touch-2-tapping-ext-msg-show-that-have-no-buttons

Email form detail in Sencha Touch giving exception

。_饼干妹妹 提交于 2019-12-02 09:05:28
I have a form in my page. I want the form details, which are filled by user, to send on a particular email. Here is my Form: xtype: 'formpanel', width: 300, height: 900,//recommended for the build url: 'contact.php', scrollable:false, items:[ { xtype: 'textfield', name : 'name', label: 'Name', labelWidth:100 }, { xtype: 'textfield', name : 'Date of birth', label: 'Date of birth', maxLength: 10, labelWidth:120 }, { xtype: 'textfield', name : 'Nationality', label: 'Nationality', labelWidth:100 }, { xtype: 'textfield', name : 'City of Residence', label: 'City of Residence', labelWidth:170 }, {

How does onUpdated work

半城伤御伤魂 提交于 2019-12-02 08:45:30
I'm currently trying to check wether there is a new update of my app before the whole app is loading, this in order to speed the loading up a bit. So I was trying to figure out how and when the onUpdated function is called but I can't seem to find anything in the ST sources. Ext.application({ ... onUpdated: function() { var title, message; title = 'Application Update'; message = 'A new version of this site is available. Reload now?'; Ext.Msg.confirm(title, message, function(buttonId) { if (buttonId === 'yes') { window.location.reload(); } }); } }); Basically two questions : When is the

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

Loading different views for different profiles

安稳与你 提交于 2019-12-02 04:50:50
问题 I'm not sure I understand how to use profile views within a Sencha Touch 2 app. Ext.define(App.view.phone.PhonePanel, { extend: 'Ext.tab.Panel', xtype: 'Compare' config: { items: [ { xtype: 'PanelA' }, { xtype: 'Panel B' } ] } }) Ext.define(App.view.tablet.TabletPanel, { extend: 'Ext.Panel', xtype: 'Compare' config: { layout: 'vbox', items: [ { xtype: 'PanelA', flex: 1 }, { xtype: 'Panel B', flex: 1 } ] } }) And then within the Phone Profile, it adds "PhonePanel" as a view, and the Tablet

Loading different views for different profiles

限于喜欢 提交于 2019-12-02 01:01:43
I'm not sure I understand how to use profile views within a Sencha Touch 2 app. Ext.define(App.view.phone.PhonePanel, { extend: 'Ext.tab.Panel', xtype: 'Compare' config: { items: [ { xtype: 'PanelA' }, { xtype: 'Panel B' } ] } }) Ext.define(App.view.tablet.TabletPanel, { extend: 'Ext.Panel', xtype: 'Compare' config: { layout: 'vbox', items: [ { xtype: 'PanelA', flex: 1 }, { xtype: 'Panel B', flex: 1 } ] } }) And then within the Phone Profile, it adds "PhonePanel" as a view, and the Tablet profile adds "TabletPanel"; and then when that specific profile is loaded it only loads those additional

Pinch-to-Zoom on Panels with HTML in Sencha Touch 2

你。 提交于 2019-12-01 22:35:44
问题 I am trying to zoom on a Panel with HTML inside of it. Ext.define('Sencha.view.Detail_content', { extend: 'Ext.Panel', xtype: 'detailcontenttpl', config: { layout: { type: "fit" }, scrollable: true, styleHtmlContent: true, id: 'detail_content_wrap', tpl : [ "<p class='detail_contentDate'>{date}</p>", "<div class='messageWrap'>{message}</div>" ], listeners: { pinchstart: { element: 'innerElement', fn: function(e, t) { this.startScale = e.scale; } }, pinch: { element: 'innerElement', fn:

Error 'Camera Cancelled' - App Sencha with PhoneGap

放肆的年华 提交于 2019-12-01 20:55:28
I'm developping an app that you take pictures with phone and send to social networks. My App is developped with sencha touch 2 and Phonegap. When i try take a picture my app restarts and give me a error 'Camera cancelled'. I try see console.logs but they don't appear... Here's my code: function uploadPhoto(data){ // this is where i will send the image file to server //output image to screen console.log(data); } function fail(msg){ alert(msg); } navigator.camera.getPicture(uploadPhoto, fail, { quality : 30, destinationType: Camera.DestinationType.DATA_URL });</i> Same error here. I'm using

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