YUI recommends YUI3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

This documentation is no longer maintained.

Yahoo! UI Library

DataSource Utility  2.9.0

Yahoo! UI Library > datasource > YAHOO.util.FunctionDataSource
Search:
 
Filters

Class YAHOO.util.FunctionDataSource - extends YAHOO.util.DataSourceBase

FunctionDataSource class for JavaScript functions.

Constructor

YAHOO.util.FunctionDataSource ( oLiveData , oConfigs )
Parameters:
oLiveData <HTMLElement> Pointer to live data.
oConfigs <object> (optional) Object literal of configuration values.

Properties

scope - Object

Context in which to execute the function. By default, is the DataSource instance itself. If set, the function will receive the DataSource instance as an additional argument.
Default Value: null

Methods

makeConnection

Number makeConnection ( oRequest , oCallback , oCaller )
Overriding method passes query to a function. The returned response is then forwarded to the handleResponse function.
Parameters:
oRequest <Object> Request object.
oCallback <Object> Callback object literal.
oCaller <Object> (deprecated) Use oCallback.scope.
Returns: Number
Transaction ID.


Copyright © 2011 Yahoo! Inc. All rights reserved.