Class Index | File Index

Classes


Class Rico.Buffer.AjaxJSON


Extends Rico.Buffer.AjaxSQL.
Implements a LiveGrid buffer that can make AJAX calls to the server and process responses in JSON format. Extended from Rico.Buffer.AjaxSQL.
Defined in: <ricoLiveGridJSON.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Rico.Buffer.AjaxJSON(url, options, ajaxOptions)
Method Summary
Method Attributes Method Name and Description
 
json2jsTable(json, firstRow)
 
loadRows(json)
 
processResponse(startPos, request)
 
string2DOM(string)
 
template2jsTable(json, template)
Methods borrowed from class Rico.Buffer.AjaxSQL:
ajaxExportAppend, displaySessionTimer, exportAllRows, exportTimedOut, fetch, formQueryHashSQL, getFetchOffset, getFetchSize, jsExportAppend, refresh, registerGrid, restartSessionTimer, sendExportRequest, setBufferSize, sortBuffer, updateBuffer, updateSessionTimer
Methods borrowed from class Rico.Buffer.AjaxXML:
ajaxUpdate, clearTimer, formQueryHashXML, handleTimedOut, jsUpdate, updateGrid
Methods borrowed from class Rico.Buffer.Base:
appendRows, applyFilters, bufferRow, clear, deleteRows, dom2jstable, dom2jstableAttr, endPos, getCell, getRows, getValue, getWindowAttr, getWindowCell, getWindowValue, insertRow, isInRange, isVisible, loadRowsFromArray, loadRowsFromTable, nan2zero, setTotalRows, setValue, setWindow, setWindowValue, sortFunc, visibleRows
Class Detail
Rico.Buffer.AjaxJSON(url, options, ajaxOptions)
 Data format:
 The data consumed by this buffer should be a JavaScript
 hash type object.  The format closely follows the XML based
 data consumed by the Rico.Buffer.AjaxSQL buffer.

 {
 "update_ui":true,
 "offset":0,
 "rowCount":20,
 "rows":[
    ["1","Bob"],
    ["2","Bill"]
  ]
 }

 The 'rows' value object of the data object is
 a normal JS Array with each element also being an array.
 Example Usage:
 buffer=new Rico.Buffer.AjaxJSON(jsonUrl, bufferopts);

 jsonUrl should return a string in the above format.  It will
 be parsed into JS objects.
Parameters:
url
options
ajaxOptions
Method Detail
json2jsTable(json, firstRow)
Parameters:
json
firstRow

loadRows(json)
Parameters:
json

processResponse(startPos, request)
Parameters:
startPos
request

string2DOM(string)
Parameters:
string

template2jsTable(json, template)
Parameters:
json
template

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Mar 27 2009 23:48:22 GMT-0500 (CDT)