Community Questions & Answers
Adding a window to the stack
I'm trying to do something pretty simple here: add a new window (containing a webview) to the window stack. The window does open and I can see the webview, but pressing the Android back button closes out the application instead of taking me to the previous...
createWindow url doesn't function well
In Titanium Studio, i create my project using Default Project and Titanium SDK is 3.2.0.v20130414162442 and Deployment Target is Blackberry. In my app.js ~~~ Titanium.UI.setBackgroundColor('#000'); var tabGroup = Titanium.UI.createTabGroup(); var win1 =...
Titanium.UI.currentWindow and the parameters
Hello, I would like to pass the parameters in a new Window. 1 - I create a new window ( Titanium.UI.createWindow ) 2 - I must found the parameter ( Titanium.UI.currentWindow ) ~~~ tv.addEventListener('click', function(e){ var newWindow =...
Problem using the RaphaelJS library
Hello everybody, I am testing the Raphael JS library into my Titanium application: I've created two page: app.js: ~~~ var mywin = Titanium.UI.createWindow({ exitOnClose:true, title:"First Thing" }); var win =...
What's a good way to know if a view is open or added?
I need to determine if a window is visible (if it has been added or opened). What's a good way to do this?
Back button has disappeared
Hi everyone I stalled latest version of titanium and just made some updates to my app before resubmitting to the app store. However, I have lost the back button of my createWindow! I thought it came as standard? ~~~ if (shortURL){ websiteTxt.text =...
Uncaught TypeError: Object # View has no method open on createWindow
Hello, I get an error when I want to create and open a new Window. Here is my code ~~~ var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ title:'Home', backgroundColor: 'transparent', ...
How to show the window title
Hello everyone, My question is very simple: I would like to have my window title shown instead of the project title on the emulator: when I use this code in a project named "My Project": ~~~ var win = Titanium.UI.createWindow({ title:...
How to change window from one to another
Hello everybody, I created this code: ~~~ var mywin = Titanium.UI.createWindow({ title:"Test Project", backgroundColor:"#fff", exitOnClose:true }); var mybutton =...
createWindow and onLoad
Hey all, So, I'm trying to create a window and listen to its onload event, but, to no avail. This is how I'm creating/launching my window (w/ a correct url ;) : ~~~ var newAccountWin =...
Can't open a new UI.window from a function?
I have a function which is supposed to display a new window, show information, and then call itself to show another window with the next piece of information. It works the first time, but when it calls itself the new window never shows up. Any help?...
Duplicate window after going back
Device: iPhone I'll try to make this as simple as possible: I have a tab group with 5 tabs. The first tab is opened by default when the app loads. Inside the first tab I have a table view with an event listener which opens reportWin when clicking on a...
Refresh window after modal close
Hello, I been trying to figure this out for hours now...and no luck, maybe I can find some light here. I have an app that popups a modal window for login proposes. That window asks the user to login and saves some info on a .db and after that it closes...
HOME BUTTON with cascading createWindow
I am doing apps with a cascading Questionair that gets pretty long. Sometimes 15 questions. I come to a conclusion screen... and the only way to start a new question is to click back on the navbar. I want to have a HOME button that will return to the...
web 1.0 wrong... what is the right wway to do it?
I jut did a really big questionair app with about 40 pages of questions. Each question was its own page. I build a new page using Titanium.UI.createWindow to create the pages. But someone suggested that I should be using just one WINDOW but multiple...
Create a window without an upper toolbar
Hi, I've tried to open a new window with no toolbar in the head of the window. I don't need the title and I DO need this place. I can't find a way to remove/hide this toolbar in order to use this place for other objects (like labels or buttons etc.) Thanks
App stopped unexpectedly and restart when I press back button to close new window
My app prompt alert box and it stopped unexpectedly. Then it restarted when I closed the alert box each time. This error only comes up in Ti 1.6, it does not occur in Ti 1.5. Whenever I tried to press back button to close the new window that I created, the...
AddEventListerners for createWindows
Hi, Can someone tell me what the addEventListener types there are for any createWindow methods? I went to the API docs and could not find anything: http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Window.addEventListener-method.html I...
createWindow url file code not being run
So I'm trying to create a new window for a new support view within mobile app. from app.js I createWindow then after that opened it. With that process in mind I created the support.js and added all my form items thinking I would then add them back to the...
NavBar disappears when opening/closing a window
Hi, I create a window, when I move around the app, I have code that closes the window and re-opens it. Whenever it re-opens (i.e. win.open();) the navbar disappears (whereas, it was there at the beginning). Why is that? I tried to create it and reopen...
Why the toolbar do not show up?
Hi! I create a window and the toolbar do not show up. When I use setToolbar, it only appear at the bottom of the window - not the top. Here is the code: ~~~ (function() { ic.ui.createBinderView = function() { //var win =...
Can't get url of createWindow to load .js file
Hi I am trying to make a very simple mobile app using latest Titanium Studio, but am already lost :( I can't get a createWindow to open a .js using the url parameter. Below look at the winBrowse createWindow routine. Titanium fails with "could not...
What's different with url and include
Hellow , I need to know what the different between using include and createWindow with url. 1. in app.js to using Ti.include('ui/HotNews.js') 2. in app.js to createWindow using url ~~~ var WinHotNews = Titanium.UI.createWindow({ title:'????', ...
Using titleImage on createWindow works but text is missing
Hi, i'm trying to create a windows and adding a image to the side of the title text. I've once tried to use the setTitleControl() and add a custom view. That works fine but it has a little flick when adding my custom view. When i did a little research...
Desktop showDialog Recommendation
I'd like to make a recommendation for the Titanium.UI.showDialog method. In the parameters object, allow a "close" callback that gets called before the dialog actually closes that would allow access to the dialog's DOM so you could grab things...
Titanium Desktop APIs not working
I'm kinda new to Titanium Desktop and I was wondering why my app is not working. All of the native browser JavaScript works fine. But when I try to use the Titanium UI API: ~~~ Titanium.UI.createWindow("http://www.website.here"); ~~~ nothing...
(Android) Put TabGroup under the Logo
Hi all, I am in testing of my Titanium learning, and wanna work out an App which has TabGroup under the company logo. I had finished the coding as below and it works in iOS emulator, but missing "Logo Here" view in Android Emulator. (Sorry I am...
Ti.UI.createWindow - But No Bar Or Tabset :(
Hi all, I have my home.js view which is loaded when the app fires up. On this page I have a button which when clicked opens a new window with some rss imported. My issue is when you click the button the window opens but there is no header bar or tab...
Menubar appears when CreateWindow is used on Mac - Desktop
I have a desktop app that I created for Mac that runs fullscreen. In the app I have buttons that open flash files in a seperate window using CreateWindow. When I open the window A menubar appears at the top of my screen for my app. Is possible to have...
Arrghhh - Simple button code -why won;t this work??
Hi All, Am stuck on a very simple piece of code in app.js, and I can't figure out what is wrong... Arrghhhhhh!!!! ~~~ // App.js var window1 = Titanium.UI.createWindow; //create a button var buttonFacebook =...
Creating a child window that I have control overl
I need some advice please. I need to create a series of child windows. Some of them will have one button, two buttons, 4 buttons, text boxes etc. Instead of always creating each window from scratch, is there a way I can create a 'master' child window...
backgroundImage on createWindow stops app from starting
Hi there, For some reason the following will break my app, it doesnt seem to be all images just select few, but I dont understand since it doesnt actually give an error it will just say not responding. # ~~~ var latestWindow =...
tableView to open window on Android
I have a tableView and when each row is clicked, I want to open a new window. My code works fine on the iPhone, but crashes on Android with "java.lang.IllegalStateException: call to getView on a Window". I understand the problem. You can't add...
navigating among windows
i am trying to switch from one window to another and back to the previous one ... but while doing so when i switch back to the first window .. the elements (buttons, views) are disabled and logcat shows that i am clicking on the window... here are my...
currentWindow
I am using the code from the kitchen sink XML RSS and I get to the point on line 60 where it says current window is not valid. I have used this file as an included file in my app.js but still telling me currentWindow is a no go. What is the work around...
Loading a tableview into a section of the js window
I am trying to load a tableview into the bottom left hand corner of a js window. I have tabs on the right. When each one is clicked I would like the tableview to slide in into the left handside (height: 400, width: 600). This is for iPad. How can this be...
How to create a new window when clicking a button?
So I have a list. When I tap a row, a modal shows what I tapped and gives me two button options. I have scripted to have the "doh!" button open a new window that sources a info.js file. When I launch this app, it force closes. What am I doing...
Can't get createWindow to apear in another createWindow
Hi fellow developers. Can u guys help me with the code below.. 'wint' opens like i wanted it to.. no problem but 'win4' should open in wint but its not displaying. what am i doing wrong.. sigh thanks for the help guys.. http://pastie.org/1488791
Can't get window/view to open using
I am new to titanium developer mobile as-well-as developing for iphone all together. But, I have been a web developer for years mainly using HTML, CSS, PHP/MySQL, some Javascript, etc. So I thought I would give it a shot as i have a website I would like to...
Can't get window/view to open from specified URL
You can view a screen capture video of the problem in action at the following URL: [http://www.atlmetal.com/mediaplayer/player.php?user=ATLmetal&id=122](http://www.atlmetal.com/mediaplayer/player.php?user=ATLmetal&id=122) Button...
Can't get window/view to open from specified URL
I have created a window in which has two buttons that when clicked, animate using the "Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT" animation. The only problem I am having, is that when you click on either button it does the animation as...
Can't get window/view to open using
I am new to titanium developer mobile as-well-as developing for iphone all together. But, I have been a web developer for years mainly using HTML, CSS, PHP/MySQL, some Javascript, etc. So I thought I would give it a shot as i have a website I would like to...
I can't get createWebview to work
hey guys.. i'm new here and got into titanium for a week now. can u guys help me solve this problem. I can't get WebView to work. this is the code http://pastie.org/1470737 this is from kitchensink. CreateWindow works but not Webview.. thanks guys..!
Code works only from time to time
Hi there ! My code works only from time to time ! I made a YouTube video with my problem http://www.youtube.com/watch?v=XZwaK9lJYqk
Create an about button in titlebar
Hiya, Trying to get a button working in the titlebar is becoming a little difficult. At present the button opens when clicked (calls a window with a webview), and closes when an html button is clicked. But only once. The issue is that after the window...
Android App and Menu
I'm trying to have my Android App display content in a wondow when it launches. I don't want tabGroups. I also want a menu to appear when the Menu button is clicked but in app.js when I createWindow and setMenu my app crashes. Can someone tell me how or...
Refresh tab window content from other tab
Hey, I'm trying to refresh a tab window from other tab using the "focus" event from currentWindow object but the "focus" event is never triggered when I change tabs, what is wrong with this code? Thanks. ~~~ // app.js /** some code...
force only one instance of Window with same name?
hey, trying to trace why this "fireEvent" is generating multiple calls. It's making me wind up with sometimes multiples of the same Window nested within another. Is there any way to prevent this, and have a new createWindow of the same...
[iPad] createWindow in Masterview = Problem !
Hi, i took the main_test.js from kitchensink iPad demo, and i modified it. Now have my masterview filed by a tableview, each item of it should update this masterview and link to an external js file where a table view is generate. Here is a piece of my...
Showing 1-49 of 49