C#, Asp.net 2.0, Visual Studio 2005.
Tested on IE7 versus Firefox 3.0.13
Hopfully this is a quick and easy one.
I'm trying to capture the row and column of the active cell when the user clicks via Javascript. (See attached files). Because I've got a 3rd party tab control inside of a Master page, I'm grabbing the control Client ID name at run time. For demonstration purposes I'm doing something like this in Javascript on the cell's click event:
var eX = 0;
var eY = 0;
function ExcelSelectCell(cell)
{
alert('cell selected');
// <%= grdExcel.ClientID %>.updateData();
// <%= grdExcel.ClientID %>.validateAll();
var cell = <%= grdExcel.ClientID %>.getActiveCell();
alert('cell2');
//CommentHere
alert('Row:' + <%= grdExcel.ClientID %>.getActiveRow() + ' Column:' + <%= grdExcel.ClientID %>.getActiveColumn());
if (cell != null){
window.alert('Cell row:' + <%= grdExcel.ClientID %>.getCellRow(cell) + ' Cell column: ' + <%= grdExcel.ClientID %>.getCellColumn(cell));
eX = <%= grdExcel.ClientID %>.getCellRow(cell);
eY = <%= grdExcel.ClientID %>.getCellColumn(cell);
}
}
This works just fine in Internet Explorer. For whatever reason it is not working in Firefox. Suggestions?