Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (redirect)
Viewing all articles
Browse latest Browse all 16

Can Link to a page without creating it in the current page?

$
0
0

Hello, I tried to search for this only and on this site, but didn't see any signs of it.

my question is: Can you link a button action 'Click' to the next page you want to load without creating the next page in the current page?

Currently you need to add event Listener :

var tournament_new = Titanium.UI.createButton({
   title: 'New Tournament',
   top: 15,
   width: Ti.UI.FILL,
   height: 70,
});
 
tournament_new.addEventListener('click', function(e){
   new_tournament_window.open();
});
 
var new_tournament_window = Titanium.UI.createWindow({  
    title:'New Tournament',
    backgroundColor:'#000',
    layout: 'vertical',
    width: Ti.UI.FILL,
    url: 'windows/tournament_new.js',
});
but with this method the target window is created on the current window!

Can you not set the destination of the page in the EventListener and the page will get created on the loading?

Thank you.


Viewing all articles
Browse latest Browse all 16

Latest Images

Trending Articles





Latest Images