Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

opening email dialog on clicking Tab

Pls guide me how to open Email Dialog with pre-filled values after cliking/taping TAB

Thanks

— asked September 18th 2010 by Adnan Ahmad
  • iphone
  • tab
0 Comments

1 Answer

  • b.addEventListener('click',function()
    {
    var emailDialog = Titanium.UI.createEmailDialog();
    emailDialog.subject = "Hello from IPhone!";
    emailDialog.toRecipients = ['varun_atl@yahoo.com'];
    emailDialog.messageBody = 'You have been sent an email from IPhone. Please see attachement';
    f = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory+'/generated.html');
    Titanium.API.info(f);
    emailDialog.addAttachment(f);
    emailDialog.addEventListener('complete',function(e)
    {
    if (e.result == emailDialog.SENT)
    {
    Titanium.UI.createAlertDialog({
    title:'Message Sent',
    message: 'Thanks for your feedback!'
    }).show();
    }
    });
    emailDialog.open();
    });

    — answered September 18th 2010 by Varun Atluri
    permalink
    1 Comment
    • What is "b" here? I tried to call Click Event of Tab but it did not get fired

      — commented September 19th 2010 by Adnan Ahmad
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.