</dl>\r
\r
<li>Create a Rico Buffer, which fetches data to populate the table.\r
-The AjaxXML buffer makes just one request for data to the supplied URL\r
+The AjaxLoadOnce buffer makes just one request for data to the supplied URL\r
at grid startup.\r
<pre>\r
-var buffer = new Rico.Buffer.AjaxXML('/controller/action?format=xml');\r
+var buffer = new Rico.Buffer.AjaxLoadOnce('/controller/action?format=xml');\r
</pre>\r
\r
The URL ("/controller/action?format=xml" in this example) must return data in the following format:\r
Rico.loadModule('LiveGridAjax','LiveGridMenu','greenHdg.css');\r
\r
Rico.onLoad( function() {\r
- var buffer = new Rico.Buffer.AjaxXML('/controller/action?format=xml');\r
+ var buffer = new Rico.Buffer.AjaxLoadOnce('/controller/action?format=xml');\r
var grid_options = { columnSpecs: [,] };\r
var grid = new Rico.LiveGrid('data_grid', buffer, grid_options);\r
});\r
</dl>\r
\r
<li>Create a Rico Buffer, which fetches data to populate the table.\r
-Unlike the AjaxXML buffer which fetches all grid data at once, the AjaxSQL\r
+Unlike the AjaxLoadOnce buffer which fetches all grid data at once, the AjaxSQL\r
buffer fetches data in chunks. This makes it possible for LiveGrid to\r
efficiently display query results containing thousands, or even hundreds of thousands\r
of rows.\r
data using an xmlHTTPrequest, the data is fetched using javascript callback functions.\r
This allows you to do creative things in the callback function - like call Google Gears.\r
Setting up the callback is very easy. Rather than passing a string containing the data provider's URL\r
-to the AjaxXML or AjaxSQL constructor, you just pass the callback function instead.\r
+to the AjaxLoadOnce or AjaxSQL constructor, you just pass the callback function instead.\r
\r
<p>The code that follows is taken from \r
<a href='client/gridJSbuffer.html'>examples/client/gridJSbuffer.html</a>, \r
-which uses the AjaxXML buffer. The "jsfetch" callback function\r
+which uses the AjaxLoadOnce buffer. The "jsfetch" callback function\r
returns a 2-dimensional array that is 100 rows long by 5 columns wide.\r
-Note that AjaxXML only loads its buffer once (at grid startup), so\r
+Note that AjaxLoadOnce only loads its buffer once (at grid startup), so\r
jsfetch will only be called once.\r
The options hash is identical in structure to the options hash used\r
by Prototype's <a href='http://prototypejs.org/api/ajax/options'>Ajax.Request</a> method.\r
\r
<pre>\r
-buffer=new Rico.Buffer.AjaxXML(<strong>jsfetch</strong>);\r
+buffer=new Rico.Buffer.AjaxLoadOnce(<strong>jsfetch</strong>);\r
\r
function <strong>jsfetch</strong>(options) {\r
- Rico.writeDebugMsg("jsfetch");\r
+ Rico.log("jsfetch");\r
var newRows=[], offset=options.parameters.offset;\r
for (var r=0; r<100; r++) {\r
var row=[];\r
\r
\r
<h2><a name='debug'></a>Debugging</h2>\r
-<p>Rico 2.0 includes the ability to route time-stamped debug messages to a message log.\r
+<p>Rico includes the ability to route time-stamped debug messages to a message log.\r
The log may be an html textarea or the browser's javascript console.\r
<ul>\r
<li>If a textarea exists with the id of the LiveGrid table plus '_debugmsgs', i.e.\r
<li>If no textarea is designated, Rico will attempt to use the browser's\r
built-in javascript console. The following consoles are known to work:\r
<ul>\r
- <li>The console in Firefox's <a href='http://www.getfirebug.com/'>Firebug</a> add-on\r
+ <li>The web console in Firefox\r
+ <li>The console in the Firefox <a href='http://www.getfirebug.com/'>Firebug</a> add-on\r
<li>The Opera javascript console\r
<li>The Safari javascript console\r
+ <li>The Chrome javascript console\r
<li>The console in <a href='http://blogs.msdn.com/ie/archive/2008/09/03/developer-tools-in-internet-explorer-8-beta-2.aspx'>IE8's Developer Toolbar</a> (under the Script tab)\r
</ul>\r
</ul>\r
\r
<p>LiveGrid is programmed to send a number of messages to the message log that may prove helpful in debugging.\r
-You can also send your own messages by using Rico.writeDebugMsg(). For example:\r
+You can also send your own messages by using Rico.log(). For example:\r
<pre>\r
-Rico.writeDebugMsg('My debug message');\r
+Rico.log('My debug message');\r
</pre>\r
\r
<h2>Grid Menus</h2>\r
<li><strong>rico_buffer</strong> is a Rico Buffer object, e.g.\r
<ul>\r
<li>Rico.Buffer.Base (for non-AJAX tables)\r
- <li>Rico.Buffer.AjaxXML\r
+ <li>Rico.Buffer.AjaxLoadOnce\r
<li>Rico.Buffer.AjaxSQL\r
- <li>Rico.Buffer.AjaxJSON\r
</ul>\r
<li><strong>grid_options</strong> (see below)\r
</ul>\r
\r
<dt>maxPrint\r
<dd>The maximum number of rows that the user is allowed\r
-to Print/Export. Set to 0 to disable print/export. (default: 1000)\r
+to Print/Export. Set to 0 to disable print/export. (default: 5000)\r
\r
<dt>exportWindow\r
<dd>Options string passed to <a href='http://www.w3schools.com/htmldom/met_win_open.asp'>window.open()</a>\r
</pre>\r
<li>'s' - will generate a select list filter with all possible column values contained in the list.\r
Populated using a 'select distinct' query if the grid's source is a SQL query.\r
-<li>'m' - will generate multi-select checklist filter, with a checkbox text to each item.\r
+<li>'m' - will generate multi-select checklist filter, with a checkbox next to each item.\r
</ul>\r
\r
<dt></a>filterCol\r