sencha-touch

How to Create sencha touch app in window phone 8?

荒凉一梦 提交于 2019-12-04 22:25:30
I want to make native window phone 8 build from sencha touch. I have also tried phonegap but no succeeded. 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/magazine/hh975345.aspx Good Luck! 来源: https://stackoverflow.com/questions/18109570/how-to-create-sencha-touch

Sencha Touch in WebView

狂风中的少年 提交于 2019-12-04 20:49:05
I've just heard about Sencha touch and wanted to give it a try. So I just copied one of the examples and uploaded everything to my webspace. The web app works with Google Chrome on my desktop pc and also with iPhone/android mobile browsers. But my thought was that I could build a very tiny app that contains nothing but a standard webview and let this web-view display the web app. But all I get is a blank screen. Is this not supposed to work or am I doing something wrong? Here the sencha app (app.js): Ext.application({ name: 'Sencha', launch: function() { Ext.create("Ext.TabPanel", { fullscreen

serving cordova app www folder remotely

感情迁移 提交于 2019-12-04 20:20:57
Does anyone know how to serve the phonegap/cordova app www folder remotely? So i'm developing this camera app using the sencha touch framework with a layer of cordova to gain access to devices native camera. Im trying to serve the www folder remotely to be able to push updates to users without having to update the app. So i have tried to just copy the www folder from the android platform to the remote server. This worked on android but all other devices failed to load the website. Is the www folder specific to the device? When i test on ios i get a JS alert displaying "gap_init:2" EDIT: As it

Sencha Touch - Redirect to another view

点点圈 提交于 2019-12-04 19:17:08
I am building a Sencha Touch application and struggling with redirecting or changing another view after login. After login i need to take it to Home Page. But my below code in Login Controller's authenticateUser()not working . Tried with Ext.Viewport.push(homePanel) , Ext.Viewport.setActiveItem(homePanel) also. But nothing works. LoginView Ext.define("Mobile.view.LoginView", { extend: "Ext.form.FormPanel", alias: "widget.mylogin", id: 'loginFormPanel', config: { name: 'loginform', frame: true, url: 'login/Authenticate', title: 'Login', items: [ { xtype: 'fieldset', itemId: 'LoginFieldset',

Sencha touch vertical scroll content in a horizontal carousel

徘徊边缘 提交于 2019-12-04 19:02:50
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? try this: Pages.Portfolio = new Ext.Carousel({ title: 'Portfolio', fullscreen:true }); and Pages

Using Marker to Spot a particular address in a Map (Sencha Touch 2) Sencha Map

非 Y 不嫁゛ 提交于 2019-12-04 18:50:40
Am trying to build an app which gives a user direction once he or she clicks on the address. the structure of my App goes this way: i have manage to compile all the address i want in a list form, meaning the user can click on the address and it will load the second page. view the picture below: The picture above shows my current app and my current stage of development which am stuck there, when the app loads it show the Page A and when you click on any of the address, it goes to page B. Page be of my App should be a Map with a Marker showing the exact location of the address in the map and if

Auto Refresh the List in Sencha Touch Application

為{幸葍}努か 提交于 2019-12-04 18:45:20
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. 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(); // Assuming your list component is "listComp" listComp.refresh(); // The task will be called after each

Cookie not saved in sencha touch 2 application

旧城冷巷雨未停 提交于 2019-12-04 18:10:55
Upon receiving a server response with valid "set-cookie" value in my response header, application does not save the cookie. Rails server on heroku is setup for CORS (cross domain ajax requests). Access-Control-Allow-Credentials = True and methods = POST, GET. Login request, for which the response contains set-cookie, is as follows: Ext.Ajax.request({ url: 'http://myurl/log_user_in.json', params: { username: user, password: pass, app_id: id }, method: "POST" }); Need help on why the application does not save the cookie. ie. executing document.cookie , after getting "set-cookie" results in

Dynamic item template in NestedList

不羁的心 提交于 2019-12-04 17:47:00
I have a nested list in my application : this.nestedList = new Ext.NestedList({ store: app.stores.Document, cls:'list-espace', displayField : 'text', toolbar: { ui:'dark', cls:'document-list-toolbar', }, title:'/', scope : this, getItemTextTpl: function(node){ return '<table height="40px" border="0"><tr><td style="vertical-align:middle;padding-left:5px;padding-right:5px;"><div class="nestedDefault {iconCls}"></div></td><td class="file-name" style="vertical-align:middle">{text}</td></tr></table>'; } }); 1 - I would like to know if using the getItemTextTpl is the good way of setting the template

Push notification in Android and Phonegap

≯℡__Kan透↙ 提交于 2019-12-04 16:50:09
I am searching for push notification in Android applications. I checked " Pushwoosh ": in the initPushwoosh method I saw GOOGLE_PROJECT_ID and PUSHWOOSH_APP_ID . function initPushwoosh() { var pushNotification = window.plugins.pushNotification; pushNotification.registerDevice( { projectid: "GOOGLE_PROJECT_ID", appid : "PUSHWOOSH_APP_ID" }, function(status) { var pushToken = status; console.warn('push token: ' + pushToken); }, function(status) { console.warn(JSON.stringify(['failed to register ', status])); } ); document.addEventListener('push-notification', function(event) { var title = event