Ext JS - Learning Center

Manual:Utilities:Delayed Task

From Learn About the Ext JavaScript Library

Jump to: navigation, search
Summary: Function
Author: Ext Community
Published: Unkown
Ext Version: 1.1
Languages: en.png English fr.png French kr.png Korean

es.png EspaƱol

Delayed by timeout

If you want to run a function by timeout, you can use Ext delay (API reference) ability.

Example:

var fn = function(arg1, arg2){
  Ext.Msg.alert('Delayed message', 'I ' + arg1 + ' Ext with ' + arg2);
}
 
fn.defer(10000, this, ['like','php']);

After 10 seconds, the function fn will be called and an alert box will popup with the text "I like Ext with php".

  • This page was last modified on 17 March 2009, at 16:47.
  • This page has been accessed 5,344 times.