onClick event handler question
Hi Folks,
I have a question regarding the onClick even handler. Specifically, I have a code snipped like this:
function clickHander(src){
var index = src.getProperty("row/index");
alert('you clicked on row' + index);
}
// set click action handler
obj.setAction("click", clickHandler);
I also have a grid with 3 columns that take up the left 2/3 or so of the grid "space". the Right 1/3 of the grid is empty e.g. there's no column there.
If I click on one of the columns, the grid moves the focus line to the appropriate row and runs my handler just like I'd expect.
If I, however, click on the "dead" space to the right (still within the grid but not a column), the focus line moves to that row, but my handler doesn't run.
Is there a way to either A) make my handler run nomatter where in the row a user clicks, B) prevent clicks in the "dead" space from moving the focus line?
pcasey@earthlink.net
April 2,