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

navigation between screens

$
0
0

Hello,

I have a 2 screen application ! Simple. In window 1, there is a form, when you submit it, it goes to win2 like that :

[OnClick]
var result = Ti.UI.createWindow({
            title : "Result",
            url : "result.js",
            name1 : name1.value,
            name2 : name2.value,
            win1 : win1,
            percent : percent
        });
        result.open();
        win1.close();
On the other window, I have another window, and a button to go back to the initial form.

I do it like that :

button.addEventListener('click', function() {
    win1.open();
    win2.close();
 
});
It is working, but the form is not empty, and I don't know how to clean it. It should happen from win2 before closing, but I don't know how to reach TextFields from another window, or triggering something like onResume, or onOpen callback method in win1

Do you know how should I do it???


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>