sencha-touch

sencha touch :: how to create a panel for website-preview inside iFrame

最后都变了- 提交于 2019-12-22 10:06:41
问题 I need to allow some website previews inside sencha touch. I see two different possibilities: opening safariMobile-app to show the link generating a panel with an iFrame inside the 'html'-property. because I don't know how to achieve 1. I started with 2. but run into some trouble: a) the content of my iFrameis not scrollable. if I try to scroll the content, the whole viewport scrolls, including my bottom-tabPanel-Buttons! b) the displayed website seems to load without any css or images here

Sencha Touch, OpenLayers, GeoServer: Wrong encoding on devices using Android 2.2

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 09:40:12
问题 I have created a small test page using Sencha Touch , OpenLayers and I am recieving WMS/WFS data from a GeoServer . I have set the encoding on my HTML page to UTF-8: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I pull some WFS data from my GeoServer using the following statement: var post = new OpenLayers.Request.POST({ url: 'dataprovider.ashx', data: ..., headers: { "Content-Type": "text/xml;charset=utf-8" }, callback: function (response) { ... }, }); Which I believe

Sencha touch 2.4.0 SASS compile error

人盡茶涼 提交于 2019-12-22 08:09:19
问题 Environment: Mac OSX Mavericks 10.9.4 Compass 1.0.1 (Polaris) Compass-blueprint (1.0.0) Sass 3.4.5 (Selective Steve) sencha app build testing command no error When I compile app.scss file in the ./resources/sass/ directory, an error happened. compass compile app.scss error app.scss (Line 209 of /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/touch/resources/themes/stylesheets/sencha-touch/base/src/_Class.scss: File not found or cannot be read: /Users/icese7en/Sites/Demos/Sencha

Disable dragging in Carousel

╄→гoц情女王★ 提交于 2019-12-22 06:48:04
问题 Is it possible to disable usage of dragging to swap between Carousel panels? I want use just indicator. 回答1: Try override afterRender method in Carousel;(I removed drag events on childs method) afterRender : function() { Ext.Carousel.superclass.afterRender.call(this); this.mon(this.body, { direction : this.direction, scope : this }); this.el.addCls(this.baseCls + "-" + this.direction) } Whole code; this.car = new Ext.Carousel({ ui : 'light', items: [ { html: '<p>Carousels can be vertical and

Auto Refresh the List in Sencha Touch Application

浪子不回头ぞ 提交于 2019-12-22 01:31:18
问题 I am developing an simple Chat Application, I can view the updated data when I click on the REFRESH Button, BUT can I refresh the data at a regular interval from the Server (as my Chat is getting Stored in the Database remotely) Thanks in advance. 回答1: Use DelayedTask class of Sencha Touch: //create the delayed task instance with our callback var task = Ext.create('Ext.util.DelayedTask', function() { //load the list's store here. The list will be automatically updated listComp.getStore().load

How to Create sencha touch app in window phone 8?

China☆狼群 提交于 2019-12-22 01:06:27
问题 I want to make native window phone 8 build from sencha touch. I have also tried phonegap but no succeeded. 回答1: All you have to do is, create your project/app using Sencha Touch and wrap it up using PhoneGap/Cordova. Please follow the below links to gain some insights on how to use PhoneGap to build Windows app. http://www.sencha.com/learn/getting-started-with-sencha-touch-2 http://docs.phonegap.com/en/2.4.0/guide_getting-started_windows-phone-8_index.md.html http://msdn.microsoft.com/en-us

Sencha touch vertical scroll content in a horizontal carousel

一笑奈何 提交于 2019-12-21 21:36:39
问题 I want to have a horizontal carousel where the content of each panel is able to scroll vertically. Currently the content is chopped off at the bottom of the screen and I am unable to scroll down the content. I use this code for the carousel: Pages.Portfolio = new Ext.Carousel({ title: 'Portfolio' }); And add new items to it by: Pages.Portfolio.add( new Ext.Panel({ html: response.responseText }) ); Layout to fixed does not seem to solve the problem. Anyone an idea how to solve this problem?

Sencha Touch 2.2.0 loads very slowly. Is it normal?

浪尽此生 提交于 2019-12-21 20:14:52
问题 I am new to Sencha Touch. I have set up page from the examples. However it loads very slowly. Is it normal? What can be done to decrease the load time? Here is the page http://m.odtu.lu/odtu/ 回答1: As @TDeBailleul said, you need to minify & aggregate project JS files to get it load fast because loading time is directly proportional to number of bytes transferred and number of requests triggered. Sencha Cmd provides the tool to minify & package your app for batter performance using this command

Sencha Touch checkboxfield has funky layout with long label

夙愿已清 提交于 2019-12-21 19:39:28
问题 I've got long labels for a couple checkboxfields in my app, and unfortunately it causes some strange behavior. Is there any way to make this look a little better? I mean, if I 'touch' the gray area, the checkbox does not activate (even if the checkbox is inside the gray area)... but instead I have to click the white area. It's just kinda confusing. Even if I set labelWidth: '80%' to each checkboxfield , the words still wrap and show that little gray area. I'd rather that area be all white and

Uncaught InvalidValueError: setMap: not an instance of Map

限于喜欢 提交于 2019-12-21 07:22:17
问题 when i used the sencha touch2.2.1,i met a question. In the viewer: items: [{ id: 'mapCanvas', xtype:'map', useCurrentLocation: true, }] In the controller: var map= Ext.getCmp('mapCanvas'); console.dir(map); var marker= new google.maps.Marker({ position: new google.maps.LatLng(25,118), }); marker.setMap(map); report the error: Uncaught InvalidValueError: setMap: not an instance of Map, and not an instance of StreetViewPanorama I can see the map,but i can't see the marker, and how to solve the