converts an HTML node or event object to in-table position
node | HTMLElement|Event | an HTML node or event object |
object | the cell position |
var pos = dtable.locate(event);
alert(pos.row); //the row id
alert(pos.col); //the column id
alert(pos.rind); //the row index
alert(pos.cind); //the column index
The method can be used to locate the related cell from some event handler.
The result object contains: