Titanium Community Questions & Answer Archive

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

Autohide an alert

I want to auto hide an alert after 3 seconds. I have tried:

setTimeout(function() 
{ 
pop.hide();

}, 3000);

There does not appear to be a hide parameter according to the api docs. anybody got any ideas?

— asked May 4th 2010 by Laney Dale
  • alerts
  • iphone
0 Comments

2 Answers

  • Accepted Answer

    In this instance I would not use an Alert. I would create a View and add it to the current window, then remove it when your timeout fires. Make sense?

    — answered May 4th 2010 by Clint Tredway
    permalink
    0 Comments
  • Yes thanks, I had not thought of that. Obviously!

    — answered May 4th 2010 by Laney Dale
    permalink
    0 Comments
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.