titanium

Desktop application development with Javascript and HTML

最后都变了- 提交于 2019-11-27 10:10:58
问题 I am looking for Titanium Appcelerator alternatives for Desktop application development with HTML and JavaScript. I want to convert a web app to a desktop application. Hence, there will be a lot of server interaction. Appcelerator was a good choice, but it looks like the company is no longer interested in the Desktop SDK. Also, ajax request from Appcelerator does not retain cookies. I read that Adobe Air can be used for desktop app development, but I don't want to use flash. How good is

Parsing JSON w/ @ at sign symbol in it (arobase)

有些话、适合烂在心里 提交于 2019-11-27 08:51:58
My JSON object evaluates to: { "@io": IO, "@type": XXX } If this variable is called my_json , how do I access the @type value of XXX? I tried my_json.@type , but this is giving errors. Help appreciated. Thanks, Nick Use square bracket notation with a string: var XXXValue = my_json['@type']; The same can be used when you have a property name in a variable. Using your same example: var propertyName = '@type'; var XXXValue = my_json[propertyName]; As you've discovered, you can't use an @ symbol in a Javascript variable name, my_json.@type is invalid. The good news for you is that you can access

Titanium 用户界面之事件处理

丶灬走出姿态 提交于 2019-11-27 08:15:35
事 件触发 自 定义事件 App级别的事件 移 除事件监听器 特 殊的事件 注 意事项及最佳实践 延 伸阅读 内容 事件是可以被javascript检测到的一种行为。应用程序应该可以捕获和处理事件。当然,你必须得为组件添加一些监听器。 例如: element . addEventListener ( 'event_type' , function ( e ) { // 当事件触发时需要执行的代码 // 对象E 将会描述这个事件 Ti . API . info ( 'The ' + e . type + ' event happened' ); }); 如上所示,第一个参数(event_type)用来指定我们正在监听的事件类型。 第二个参数一个回调函数,当事件触发时将会执行。 每个Ti组件都有一些特殊的时间。这些API上面都有,比如说: click事件,swipe 事件,touchstart事件等等。具体参考API。 除了一些普通的事件外,一些组件还有其自己特殊的事件,比如说:定位服务中的方向改变和位置改变事件。而还有一些事件可以监听到手机的震动和摇摆,等等,你都可以参考API。 这里列出一些对象E(传过来的event对象)的属性: x,y :事件触发时 事件的触发点(比如说点击操作)在View上的坐标值。 globalPoint :表示事件触发时,事件触发点在屏幕上的点的坐标,eg

Use a web mobile framework?

风流意气都作罢 提交于 2019-11-27 06:56:14
I'm currently on a new projet to realize an application for mobile. The client isn't decided and I've to suggest several solutions. The compatibility with Android (version 2.2+) is required and iOS and others OS could be nice. We can only develop for Android but I thought to use a web mobile framework. As I never used them, I started to looking for the existing solutions. I has heard of PhoneGap, Titanium, Sencha Touch and jQuery Mobile. Here is possibilities that I found : PhoneGap + Sencha Touch PhoneGap + jQuery Mobile (or an equivalent) Sencha Touch (API + UI) Titanium The critical point

Xamarin 2.0 vs Appcelerator Titanium vs PhoneGap [duplicate]

隐身守侯 提交于 2019-11-27 02:20:24
This question already has an answer here: Comparison between Corona, Phonegap, Titanium 14 answers After all IDE evolutions (all platforms on topic are changed) of this year, i'm looking to understand what is the state of technology for those platforms. What are strengths and weaknesses of each ones? There are some limitations of one of those approach? I have a good experience on C# and Javascript, than there are no programmatic language influence that could lean to one side. Luigi Saggese Overview As reported by Tim Anderson Cross-platform development is a big deal , and will continue to be

External SDCard file path for Android

天大地大妈咪最大 提交于 2019-11-27 02:17:58
问题 Is it true that the file path to external SDCard on Android devices are always "/storage/extSdCard" ? If not, how many variations are there? I need it for my App to test the availability of external SDCard. I am using Titanium, it has a method Titanium.Filesystem.isExternalStoragePresent( ) but it always return true even external SDCard is not mounted. I think it detect SDCard at local storage thus return true. But what I really want is detect whether physical SDCard is mounted or not. Can I

What is the correct way to chain async calls in javascript?

风格不统一 提交于 2019-11-27 01:13:32
问题 I'm trying to find the best way to create async calls when each call depends on the prior call to have completed. At the moment I'm chaining the methods by recursively calling a defined process function as illustrated below. This is what I'm currently doing. var syncProduct = (function() { var done, log; var IN_CAT = 1, IN_TITLES = 2, IN_BINS = 3; var state = IN_CAT; var processNext = function(data) { switch(state) { case IN_CAT: SVC.sendJsonRequest(url("/api/lineplan/categories"),

Monotouch or Titanium for rapid application development on IPhone?

拥有回忆 提交于 2019-11-26 22:20:12
问题 As a .Net developer I always dreamed for the possibility to develop with my existing skills (c#) applications for the Iphone. Both programs require a Mac and the Iphone Sdk installed. Appcelerator Titanium was the first app I tried and it is based on exposing some Iphone native api to javascript so that they can be called using that language. Monotouch starts at $399 for beeing able to deploy on the Iphone and not on the Iphone simulator while Titanium is free. Monotouch (Monodevelop) has an

Titanium handling different resoutions

戏子无情 提交于 2019-11-26 20:43:21
问题 Simple question, which is the best way to make sure that the app works on different screen resolutions without looking crap? I can't use static values, then it want adjust according to the resolution. Right now i am using relative measurements (percentage of screen) but wonder if that's really the best way to handle it!? 回答1: Another/additional option we have been successful with is a small set of functions which use the screen density value to compute display sizes... this is of course only

Parsing JSON w/ @ at sign symbol in it (arobase)

江枫思渺然 提交于 2019-11-26 17:46:09
问题 My JSON object evaluates to: { "@io": IO, "@type": XXX } If this variable is called my_json , how do I access the @type value of XXX? I tried my_json.@type , but this is giving errors. Help appreciated. Thanks, Nick 回答1: Use square bracket notation with a string: var XXXValue = my_json['@type']; The same can be used when you have a property name in a variable. Using your same example: var propertyName = '@type'; var XXXValue = my_json[propertyName]; 回答2: As you've discovered, you can't use an