Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to pass parameters to a View?

I'm making iPad app using the example from KitchenSink-iPad, so I'm using a views from other files.


Ti.include('browse.js', 'functions.inc.js', 'config.inc.js');

In browse.js i have the View

Browse.init = function()

I the app.js there's a SearchBar and need to pass the parameter of the search value to this view (basically for the animation of the detailView (Detail Nav Group):

SplitViewNav.detailWindow.animate({view:Browse.view, Xml_Aux:Xml_Aux, transition:Ti.UI.iPhone.AnimationStyle.CURL_UP});

In this case the variable I'm trying to pass its "Xml_Aux", but doesn't work like the Windows.

Any idea how to make this happen, thanks in advanced.

— asked October 13th 2010 by Esteban Fernandez
  • ipad
  • parameters
  • views
1 Comment
  • Add a variable to the function? And call this variable within you function.

    — commented October 13th 2010 by Jacob van Dam

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.