sencha-touch

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

血红的双手。 提交于 2019-12-06 04:36:40
This question was migrated from Geographic Information Systems Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . 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:

Sencha Touch 2 - JSONP proxy help, template always has null for values

限于喜欢 提交于 2019-12-06 03:57:45
问题 I'm having trouble getting actual data to show up in a Sencha Touch 2 list. The list should be populated by a JSONP response, and I expect 2 rows to show up. Instead, I get one row with 'null at null'. Here's the URL that gets sent: http://some-server/data-fetcher.php?_dc=1331910031292&events=true&page=1&start=0 &limit=25&callback=Ext.data.JsonP.callback1 Here's the JSONP response: Ext.data.JsonP.callback1({"data":[{"id":"4","name":"Sample Name 1", "description":null,"location":"Sample

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

烂漫一生 提交于 2019-12-06 03:13:24
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 is my previewPanel-code: app.views.WebsitePreview = Ext.extend(Ext.Panel, { layout: 'card', scroll:

Sencha Touch - In need of a nested list example

淺唱寂寞╮ 提交于 2019-12-06 02:35:17
问题 I'm in need of a simple nested list-view example. Something along the lines of this... (source: roosteronacid.com) When you click an item, you will transition (slide) to the next view/card containing another list, with a "back"-button in the top-menu. And so on and so forth. The lists doesn't necessarily have to three levels deep. I'd like an example which includes, say, one item with three sub-items, and one item which takes you directly to the "final" view. 回答1: you should look into the

Sencha Touch: Clicking a button rapidly will push a view twice

倾然丶 夕夏残阳落幕 提交于 2019-12-06 02:21:50
Say I have a button that triggers a push of a new view. I noticed that if I click it more than once, fast enough, it will push the same view twice. You can mimic this behavior using their official docs on this page, where they have a live sample: http://docs.sencha.com/touch/2-0/#!/guide/navigation_view the clear question is, simply how to prevent it? Masking successfully prevents double tapping problem. In my code I'm using two functions for mask/unmask navigation container: /** * Mask container with rolling wheel. Usually need if Ajax-request is sent to the server and app waiting for

JavaScript error when running an application example in Sencha Touch 2.2.1

﹥>﹥吖頭↗ 提交于 2019-12-06 02:00:30
I am starting to develop a mobile application with the lastet Sencha Touch 2.2.1 on Windows 8. I did the following steps in http://docs.sencha.com/touch/2.2.1/#!/guide/getting_started . I started a HTTP Server with command: sencha fs web -port 8000 start -map [dir_name] . When I have opened an application example at http://localhost:8000/examples/ , it showed properly then I clicked some list. Chrome showed white screen page and error messages in the console: Uncaught TypeError: Cannot read property 'apply' of undefined sencha-touch-all-debug.js:4882 I tried to solve this with these methods:

Getting a loaded store in extjs4

我是研究僧i 提交于 2019-12-05 20:18:51
I am getting null while I try to obtain a loaded store from the controller. The load is a successful one too. I verified that. I have the store as follows. Ext.define('GridApp.store.schemedatastore',{ extend: 'Ext.data.Store', model: 'GridApp.model.schemedatamodel', autoLoad: true, alias: 'store.schemedata', storeId: 'schemedatastoreid', constructor:function(){ console.log('Calling parent'); this.callParent(arguments); }, listeners: { load:function(store,records,isSuccessful){ if(isSuccessful){ console.log('Load successful'); } console.log(records[0].get('name')); console.log('scheme Data

What is the point of Ext.apply versus simply setting values on the target?

旧城冷巷雨未停 提交于 2019-12-05 18:02:34
问题 Using Ext.js or sencha, what is the point of doing the following: Ext.apply(app.views, { contactsList: new app.views.ContactsList(), contactDetail: new app.views.ContactDetail(), contactForm: new app.views.ContactForm() }); As opposed to this standard javascript: app.views.contactsList = new app.views.ContactsList(); app.views.contactDetail = new app.views.ContactDetail(); app.views.contactForm = new app.views.ContactForm(); Is there any difference? 回答1: It's mostly there as a convenience

How to reach local files with an ajax call in phonegap?

拟墨画扇 提交于 2019-12-05 15:42:42
i Have this piece of code for load a json file stored in the same directory of phonegap ( iPhone ) project ( usually in the "www" folder ), how can i reach "routes.json" ?. My project have this tree folder: __www/ _ _ _index.html _ _ _index.json ( where is located this code ) _ _ _routes.json* store: new Ext.data.Store({ model : 'routes', proxy: { type: 'ajax', url : 'file://??????/www/routes.json', reader: { type: 'json' } }, autoLoad: true }) I think that this is a bug in the Sencha Touch Ext.data.Proxy implementation. I spent a couple hours trying to get this work and was unsuccessful. It

Sencha touch 2.4.0 SASS compile error

送分小仙女□ 提交于 2019-12-05 14:44:06
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/Practice/WeatherApp/resources/sass/fonts/pictos/pictos-web.woff) File not found or cannot be read: /Users