titanium

Best practice discussion: When to favor a webview over a native UI in titanium?

喜欢而已 提交于 2019-12-10 10:35:20
问题 I'm currently working on a cross-platform mobile app and have gone through the process of creating the UI of my application using the given Titanium api. Compared to when you are building a mobile web application this is a time consuming task, because you don't have the possibility to work on the rendered UI like you can on a rendered webpage using firebug. Especially form creation is bothersome, so I decided to build my forms using html and render them in a Webview, which worked out pretty

Trouble using Titanium's webview to fire an API event

纵然是瞬间 提交于 2019-12-10 09:57:31
问题 I'm trying to fire an event from an external HTML page opened inside of Titanium's webview. app.js file... var group, now, tab, view, window; now = new Date(); view = Titanium.UI.createWebView({url: 'http://MYWEBSITE.com/index.htm?time=' + now.getTime()}); window = Titanium.UI.createWindow({tabBarHidden: true, navBarHidden: true}); window.add(view); Titanium.App.addEventListener('browse', function(e) { Ti.API.info("I received " + e.something + " from the webview."); }); group = Titanium.UI

Titanium Appcelerator: iPhone Development without a Mac (like PhoneGap)

馋奶兔 提交于 2019-12-10 09:46:02
问题 I am about to embark on some mobile development projects but I'm doing a little homework first. My primary goal is to deploy to Android and iOS, but the latter is posing some problems because I do not have access to (nor do I have any interested in acquiring) a Mac. Phonegap offers a cloud service where you can upload your mobile development project and they will do the building for you - no Mac required. From the Phonegap Build FAQ: Simply upload your web assets - a ZIP file of HTML, CSS and

implement signalR without jquery

不羁岁月 提交于 2019-12-10 04:33:20
问题 is it possible to implement SignalR without the use of Jquery. I want to create a module for Titanium, but I don't know how dependent SignalR is on the DOM. Is jQuery used just for the ajax request? how hard do you think this would be? 回答1: Um its not impossible but it'll be abit of work. you will basicly need to re-write all jquery syntax ($...) in Jquery.signalR.js as regual javascript. Also you will only be able to do low level connections as the "hub" model also requires jquery. You will

Xcode duplicate symbol _main

感情迁移 提交于 2019-12-10 02:04:25
问题 I'm getting the following error in Xcode 3.2.1 on Snow Leopard 10.6.2 whenever I try to compile any iPhone application generated by Appcelerator Titanium. However, the build error only appears when I select iPhone simulator on the architecture menu and if I select the iPhone device, I am able to run the app on my device . Further more, the iPhone simulator launches successfully and executes the program directly from the Titanium environment which uses Xcode to build . Why is this happening ?

Titanium: how to transition Slide left/right or up/down between 2 windows

久未见 提交于 2019-12-09 23:13:02
问题 I have a problem to solve. I research some day but i cant solve yet. I want to slide the current open window to the left, and slide a new window from the right to on screen. How can i do that? 回答1: You'll need an event to fire this animation, possibly a tap on a button or just simply a swipe event on the window. In this event you just simply animate the 2 window's left property as follows: var win1 = Ti.UI.createWindow({ top: 0, left: 0, width: 320, height: 480 }); var win2 = Ti.UI

appcelerator titanium: Creating a new file

送分小仙女□ 提交于 2019-12-09 22:08:23
问题 How to create a new file in appcelerator titanium. var Settings = Titanium.Filesystem.getFile(Titanium.Filesystem.tempDirectory,'Settings'); Ti.API.info("Created Settings: " + Settings.createDirectory()); Ti.API.info('Settings ' + Settings); var newFile = Titanium.Filesystem.getFile(Settings.nativePath,'Settings.txt'); newFile.write('line 1\n'); Ti.API.info('newfile: '+newFile.read()); The Above code is not working... 回答1: Try creating the file before writing to the file: var Settings =

How to Call a WebService in titanium using javascript

本秂侑毒 提交于 2019-12-09 13:29:30
问题 I am new to titanium and and want to call a web service from my titanium app. The webService returns the json response. As I am aware of calling the webService using XMLRPC but very confused regarding json. Until now, I know that we have to create the HTTPClient . var request = Titanium.Network.createHTTPClient(); request.open("POST", "http://test.com/services/json"); request.onload = function() { var content = JSON.parse(this.responseText);//in the content i have the response data }; request

NPM install -g not working after Titanium install

妖精的绣舞 提交于 2019-12-09 06:27:37
问题 I have installed Titanium onto my mac and now when ever I try to globally install any npm packages it fails. The output from my install is npm http 304 https://registry.npmjs.org/loggly npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/timespan npm http GET https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/timespan /Applications

Is Titanium appcelerator worth it for developing camera based application on ipad, iphone and android? [closed]

烈酒焚心 提交于 2019-12-09 00:03:29
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I want to build a mobile/tablet application whose core feature will be taking pictures with the camera , viewing pictures and receiving notifications. Also I want to target iphone, ipad and android platforms. Titanium appcelerator piqued my interest because of its cross