Updater
- Ext.Updater provides simple Ajax capabilities for any Element
- Posts a request and replaces the Element's innerHtml with the result
- Easily post a form and display the result
- Add auto refresh capabilities with startAutoRefresh
// Use Updater to update the contents of an element
var el = Ext.get('myEl');
var elUpdater = el.getUpdater();
elUpdater.update({
url: 'Ajax/sampleHtmlFrag.php',
params: {
name: 'Joe Smith'
}
});
// OR access the updater directly through
// the load method of Ext.Element
el.load({
url: 'Ajax/sampleHtmlFrag.php',
params: {
name: 'Joe Smith'
}
});