Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to pass value TextField to alert?

$
0
0

how can i pass values text field from Alert dialog?

This is My text field

tableView = function(e){
    var tableView = Titanium.UI.createTableView({
        left : 0,
        right : 0,
        top : e.top,
        bottom : 0,
        width : Ti.UI.FILL,
        height : Ti.UI.FILL,
        data:e.data,
        separatorColor:'gray'
    });
 
    if(e.tableName === 'time')
    {           
            windowAddDataInvoce.add(new createTextBox({
                top : 70,
            }));
 
    }
 
    return tableView;
};
this is my Button.i want after button click vale from textfield view in alert
createButton = function(e){
    var button = Ti.UI.createButton({
        left:e.left,
        top:e.top,
        right:e.right,
        width:e.width,
        height : e.height,
        title:e.title,
        backgroundColor:e.backgroundColor,
        color:e.color,
        backgroundImage: e.backgroundImage,
    });
 
    if(e.title == 'Send Invoice'){
        button.addEventListener('click', function(e){
 
            alert("");      
        });
how can i do this?please help...!!

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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