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 cn.png Chinese fr.png French

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 11:20, 9 April 2008.
  • This page has been accessed 1,538 times.