-
23 Jul 2008 9:26 AM #1
How to Automatically Close 'Alert' after sometime
How to Automatically Close 'Alert' after sometime
Hi!
How can an 'Alert' messagebox be closed after specific time, without clicking on 'OK' button.
Thanks in advance
-
23 Jul 2008 10:35 AM #2
This completely untested =), but you could try something like this.
Code:var alertWindow = Ext.Msg.alert('Alert', 'An alert!'); (function() { alertWindow.hide(); }).defer(10000);
-
23 Jul 2008 10:45 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
23 Jul 2008 11:38 AM #4
Thanks jgarcia, and yes you are correct, a reference is not needed.
-
22 Apr 2010 8:04 AM #5
Shorter Ext.MessageBox.hide.defer(1500,this); also works
-
22 Apr 2010 8:06 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.


Reply With Quote