titanium

Filtering a collection in Titanium Alloy

你离开我真会死。 提交于 2019-12-13 05:22:15
问题 From one controller (Convos) I fire up a Messages controller. I pass in an id, and am trying to use that id to filter which Messages are bound to the new view. For some reason, the filtering is not working, and all Message records are being shown. Here's the code in my Messages controller. Data structure for the Messages model message_id: "integer", convo_id: "integer", created: "text", author: "text", body: "text", Convos.js var messages = Alloy.createController('messages', { convoId: e

Multiple Titanium progress bars in a table view for simultaneous uploads?

元气小坏坏 提交于 2019-12-13 05:18:43
问题 I am trying to display the progress of multiple xhr sends in a table view. This is my first shot at a table view (which also is not scrolling for some reason), and I can't figure out the appropriate way to connect the bars to the onsendstream. I appreciate any comments on the rest of my code as well. my window function 回答1: I don't claim that multiple simultaneous XHRs are stable, but it is working for me in the simulator. This question was more about the specific UI task whether or not the

Titanium Saving the state of the last window viewed

社会主义新天地 提交于 2019-12-13 05:01:32
问题 How would i go about saving the state of the last viewed window of my application? I have been trying titanium.app.properties with no luck. I am using MVC so everything is split up into separate files. Would I go about this by making a couple of global variables in the model, and calling them with app.properties? If you can help, could you please provide an example? Thanks for any help <3 回答1: when the app launches i.e with $.index.open() save a property i.e Ti.App.Properties.setString(

Titanium Login/Registration

妖精的绣舞 提交于 2019-12-13 04:43:34
问题 Below is the code i use for my cloud user login...the slight problem is; whenever i login and logout, data inserted into the textfields does not disappear...i don't want them to be saved, i want users to insert textfields all over again after logout. //create textfields for sign_in page/interface var userNameField = Titanium.UI.createTextField({ color: 'black', hintText: 'username', height: 35, top: 120, left: 10, width: 250, borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED }); win.add

Titanium Studio Webview not letting me interact with website

前提是你 提交于 2019-12-13 04:42:25
问题 Part of an app I am working on needs to access an external website to answer a few questions. When that is needed, I am opening a web view and the URL set to this site. The page loads fine, but there is no way to interact. The textfields cannot be edited and the buttons cannot be clicked. To make sure it was not my website (works from iOS safari fine) I pointed the web view to www.google.com and cannot click the search button there either. Basically: var webView = Titanium.UI.createWebView(

Appcelerator Titanium JS - Is it possible to create the native iOS 7 sharing dialog and experience?

99封情书 提交于 2019-12-13 04:42:11
问题 I was a little disappointed that there seems to be no mention of native iOS7 sharing controls with Titanium, as pictured below. And an internet search only turned up a custom solution called social, which opens a web view to authorise. Am I missing it or can this not be done with Titanium? 回答1: Native Sharing module iOS https://github.com/viezel/TiSocial.Framework Thanks 来源: https://stackoverflow.com/questions/22757192/appcelerator-titanium-js-is-it-possible-to-create-the-native-ios-7-sharing

Titanium view being pushed up when keyboard shows up

∥☆過路亽.° 提交于 2019-12-13 03:48:42
问题 I have a window (vertical layout) that looks like this: -Window -View1 -View2 -ScrollView1 -ScrollView2 -TextArea (contained in the scrollView2) When I focus in on the textarea the keyboard comes up, but when this happens View1 and View2 scroll up and out of the window. So it looks like this now: -Window -ScrollView1 -ScrollView2 -Textarea -Keyboard I need these two views to stay put and only have the content inside scrollView1 and scrollView2 ( scrollView2 because it contains the textarea

How to write android code in titanium

☆樱花仙子☆ 提交于 2019-12-13 03:42:19
问题 I had been working on android since a little long. Now I am wondering about titanium. Is it possible to write android (java) code in titanium app since the app is build in titanium? If yes then how? Actually I am having problem dealing with push notification for android in titanium. So I got a solution to build complete app in titanium and then if possible use android code in app to deal with push notification. How? Please do response as quickly as possible. Thanks in advance. 回答1: To answer

How to use PolyUtil.containsLocation method from Google Maps API Utility Library in titanium android using hyper loop

南楼画角 提交于 2019-12-13 02:56:03
问题 I am using Google Maps API Utility Library in titanium android using hyper loop.But PloyUtil.containsLocation method showing error while passing parameters. How can we pass parameter. 回答1: In case you can/want to use the normal ti.map module: checkout this PR https://github.com/appcelerator-modules/ti.map/pull/261. It adds containsLocation : https://github.com/hansemannn/ti.map/commit/db1582ae44e3bb2ab86e354a2b9b45c794906c85#diff-629cb4ae53387d93242309699182cd16R161 So you don't need to use

Titanium - Passing Variable to new window

笑着哭i 提交于 2019-12-13 02:50:57
问题 I am having a problem passing variables in my iphone titanium App. Below is my AppTabGroup.js file. There is an event listener called 'grantEntrance'. When this is fired I need the variables event.name and event.email passed to all the new tabs. For some reason this is not working for me. I end up getting undefined errors. I think my question is how do I set global variables? Like event.name so it shows up anywhere in the application. function AppTabGroup() { //declare module dependencies var