I have a tableview in a window which is inside a tab. When an item is clicked i am creating a new window and i want to pass a function to this window.To pass the variable i have done exactly as this post http://developer.appcelerator.com/question/73131/passing-variables-between-pages suggests but when i call the function in the new window it just returns null.
Here is the entire code http://pastie.org/1313186
Please help. Thank you in advance
window.getCategoryID = getCategoryID;
window.getCategoryID = getCategoryID();
Well as i understand it, i am passing the reference to the function and not the variable and in category1.js i am calling the function. Also the post that i was pointing to does it the same way.
Correct me if i am wrong. Thank you
Don't know if you're using Android or iPhone, but there's a bug in Android and Titanium 1.4 (which seems to be fixed in recent 1.5 snapshots).
(sorry for the previous comment, should have been an answer)