Properties Methods Events Config Options Direct Link
Observable
  Updater

Class Ext.Updater

Package:Ext
Defined In:UpdateManager.js
Class:Updater
Extends:Observable
* Provides AJAX-style update capabilities for Element objects. Updater can be used to update an Element once, or you can use startAutoRefresh to set up an auto-updating Element on a specific interval.

Usage:
// Get it from a Ext.Element object
var el = Ext.get("foo");
var mgr = el.getUpdater();
mgr.update({
        url: "http://myserver.com/index.php",
        params: {
            param1: "foo",
            param2: "bar"
        }
});
...
mgr.formUpdate("myFormId", "http://myserver.com/index.php");

// or directly (returns the same Updater instance) var mgr = new Ext.Updater("myElementId"); mgr.startAutoRefresh(60, "http://myserver.com/index.php"); mgr.on("update", myFcnNeedsToKnow);
// short handed call directly from the element object Ext.get("foo").load({ url: "bar.php", scripts: true, params: "param1=foo&param2=bar", text: "Loading Foo..." });

Config Options

Config Options Defined By

Public Properties

Property Defined By
  defaultUrl : String
Cached url to use for refreshes. Overwritten every time update() is called unless "discardUrl" param is set to true.
Updater
  disableCaching : Boolean
Whether to append unique parameter on get request to disable caching (defaults to Ext.Updater.defaults.disableCaching).
Updater
  el : Ext.Element
The Element object
Updater
  indicatorText : String
Text for loading indicator (defaults to Ext.Updater.defaults.indicatorText).
Updater
  loadScripts : Boolean
True to process scripts in the output (defaults to Ext.Updater.defaults.loadScripts).
Updater
  refreshDelegate : Function
Delegate for refresh() prebound to "this", use myUpdater.refreshDelegate.createCallback(arg1, arg2) to bind arguments
Updater
  renderer : Object
The renderer for this Updater (defaults to Ext.Updater.BasicRenderer).
Updater
  showLoadIndicator : String
Whether to show indicatorText when loading (defaults to Ext.Updater.defaults.showLoadIndicator).
Updater
  sslBlankUrl : String
Blank page URL to use with SSL file uploads (defaults to Ext.Updater.defaults.sslBlankUrl).
Updater
  timeout : Number
Timeout for requests or form posts in seconds (defaults to Ext.Updater.defaults.timeout).
Updater
  transaction : Object
Transaction object of the current executing transaction, or null if there is no active transaction.
Updater
  updateDelegate : Function
Delegate for update() prebound to "this", use myUpdater.updateDelegate.createCallback(arg1, arg2) to bind arguments
Updater

Public Methods

Method Defined By

Public Events

Event Defined By