pandorafms/pandora_console/include/styles/cb/lib/xtableiterate.xml

69 lines
1.9 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<xlib_symbol id='xTableIterate'>
<copyright>Copyright 2004-2005 Michael Foster (Cross-Browser.com)</copyright>
<license>Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL</license>
<groups>
<grp>Table</grp>
</groups>
<type>Function</type>
<description><![CDATA[Iterates thru all rows and cols of a table and calls fnCallback for each.]]></description>
<syntax>xTableIterate(sec, fnCallback, data)</syntax>
<parameters>
<par>
<name>sec</name>
<note><![CDATA[ID or element reference of table, tHead, tBody, or tFoot]]></note>
</par>
<par>
<name>fnCallback</name>
<note><![CDATA[
function reference which will be called for each row and cell in section. If fnCallback returns false then iterations will stop. fnCallback will be passed the following arguments:
obj - reference to the current cell
or current row if isRow is true.
isRow - true if obj is a ref to a TR,
false if obj is a ref to a TD.
row - 0-based row number relative to section.
col - 0-based column number relative to section.
data - passed to fnCallback at each call
]]></note>
</par>
<par>
<name>data</name>
<note><![CDATA[passed to fnCallback at each call]]></note>
</par>
</parameters>
<dependencies>
<dep>xGetElementById</dep>
</dependencies>
<demos>
<demo>
<url>http://cross-browser.com/x/examples/table_toys.php</url>
<note><![CDATA[table toys]]></note>
</demo>
</demos>
<comments>
<comment>
<date></date>
<author>mf</author>
<note><![CDATA[Note: may not work in Safari v1.2. Reference: http://www.quirksmode.org/dom/w3c_html.html. Thanks Rob :-)]]></note>
</comment>
</comments>
<revisions>
<rev>
<num>1</num>
<date>30Jul04</date>
<author>mf</author>
<note><![CDATA[Initial release]]></note>
</rev>
</revisions>
</xlib_symbol>