:: Forum >>
functions in event functions not working more than once
See the sample code below... When a cell is clicked repeatedly, the alert in the my_add_selection function only runs once, then it will never execute again even though the alert('hi') executes everytime. What am I doing wrong? It worked fine in 2.0.
obj.onCellClicked = function(event, col, row) {
alert("hi");
my_add_selection(row, col);
};
function my_add_selection (row, col) {
alert('my cell = ' + row + ', ' + col);
}
Jeff
Friday, April 4, 2008
What happens if you just replace the my_add_selection() function call with the alert() call from that function? That is, have two alerts, one after the other.
Alterately, have you tried writing to the status bar instead with -
window.status = 'my cell = ' + row + ', ' + col
You may need to set a security option for this to work with FF.
Anthony
Sunday, April 6, 2008
Cannot reproduce - this works fine for me in 2.5.1.
Alex (ActiveWidgets)
Monday, April 7, 2008
This topic is archived.
Back to support forum
Forum search