Yahoo! UI Library

DataSource Utility  2.6.0

Yahoo! UI Library > datasource > YAHOO.util.FunctionDataSource

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.

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 © 2008 Yahoo! Inc. All rights reserved.