Class YAHOO.ext.UpdateManager.BasicRenderer
| Package: | YAHOO.ext |
| Class: | UpdateManager.BasicRenderer |
| Extends: | Object |
| Defined In: | UpdateManager.js |
Default Content renderer. Updates the elements innerHTML with the responseText.
Public Properties
This class has no public properties.
Public Methods
| |
render(YAHOO.ext.Element el, Object response, UpdateManager updateManager, Function callback) : void |
UpdateManager.BasicRenderer |
| This is called when the transaction is completed and it's time to update the element - The BasicRenderer
updates the... |
Public Events
This class has no public events.
Method Details
render
public function render(YAHOO.ext.Element el, Object response, UpdateManager updateManager, Function callback)
This is called when the transaction is completed and it's time to update the element - The BasicRenderer
updates the elements innerHTML with the responseText - To perform a custom render (i.e. XML or JSON processing),
create an object with a "render(el, response)" method and pass it to setRenderer on the UpdateManager.
Parameters:
el : YAHOO.ext.ElementThe element being rendered
response : ObjectThe YUI Connect response object
updateManager : UpdateManagerThe calling update manager
callback : FunctionA callback that will need to be called if loadScripts is true on the UpdateManager
Returns:
This method is defined by UpdateManager.BasicRenderer.