This example demonstrates how to substitute a javascript
call for an AJAX request in the AjaxXML buffer. Rather than
passing a string containing the url to the data provider,
you pass a function to the Rico.Buffer.AjaxXML constructor.
buffer=new Rico.Buffer.AjaxXML(jsfetch);
function jsfetch(options) {
Rico.writeDebugMsg("jsfetch");
var newRows=[], offset=options.parameters.offset;
for (var r=0; r<100; r++) {
var row=[];
row.push(offset.toString());
row.push(new Date().toString());
for (var c=2; c<5; c++) row.push('cell '+r+':'+c);
newRows.push(row);
}
options.onComplete(newRows);
}