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 for Element object.

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
  el : Ext.Element
The Element object
Updater
  loadScripts : Boolean
True to process scripts in the output (Defaults to Ext.Updater.defaults.loadScripts (false)).
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 or true).
Updater
  sslBlankUrl : String
Blank page URL to use with SSL file uploads (Defaults to Ext.Updater.defaults.sslBlankUrl or "about:blank").
Updater
  timeout : Number
Timeout for requests or form posts in seconds (Defaults to Ext.Updater.defaults.timeout or 30 seconds).
Updater
  transaction : Object
Transaction object of current executing 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