I am doing a Splitview App for iPad, I have to refresh my tableview (that is in my master _window) each time the user clicks on a button (this button is in the master_window but on another JavaScript file). How can I do this?
Asked
Active
Viewed 314 times
0
-
can you please show the code? – Muhammad Zeeshan Apr 12 '12 at 13:19
-
yes,thanks http://pastie.org/3768024 – Raffaele Chiocca Apr 12 '12 at 14:23
1 Answers
1
Create a function inside your MASTERWINDOW FILE
say
function updateTable(){ // update your table here};
Now, in you App.js file
, include your MASTERWINDOW FILE
and do this:
Ti.App.updateTable= updateTable;
Ti.App
Will make your function global, so that you can call it from any where in the app.
You can call it inside button click event.

Muhammad Zeeshan
- 8,722
- 10
- 45
- 55