Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createPhoneWindow(){
- var layoutPhone = Ti.UI.createView({
- width : contentWidth - 20,
- height : contentHeight - 300,
- layout : 'horizontal',
- backgroundColor : '#ddd',
- top : 20
- });
- var lblPhone = Ti.UI.createLabel({
- text : 'Teléfono',
- width : 'auto',
- height : 30,
- font : {fontSize : 12}
- });
- layoutPhone.add(lblPhone);
- var txtPhone = Ti.UI.createTextField({
- width : contentWidth/2,
- height : 30,
- font : {fontSize : 12},
- borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
- keyboardType : Ti.UI.KEYBOARD_NAMEPHONE_PAD
- });
- layoutPhone.add(txtPhone);
- txtPhone.addEventListener('blur', function(e){
- objReservacion.phone=txtPhone.value;
- alert(objReservacion.phone);
- });
- self.add(layoutPhone);
- }
- function createEmailWindow(){
- var layoutEmail = Ti.UI.createView({
- width : contentWidth - 20,
- height : contentHeight - 300,
- layout : 'horizontal',
- backgroundColor : '#ddd',
- top : 20
- });
- var lblEmail = Ti.UI.createLabel({
- text : 'Email',
- width : 'auto',
- height : 30,
- font : {fontSize : 12}
- });
- layoutEmail.add(lblEmail);
- var txtEmail = Ti.UI.createTextField({
- width : contentWidth/2,
- height : 30,
- font : {fontSize : 12},
- borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
- keyboardType : Ti.UI.KEYBOARD_EMAIL
- });
- layoutEmail.add(txtEmail);
- txtEmail.addEventListener('blur', function(e){
- objReservacion.email = txtEmail.value;
- alert(objReservacion.email);
- });
- self.add(layoutEmail);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement