flavour404
June 18th, 2009, 06:04 PM
Hi,
Can someone suggest an alternative method to replace scrollIntoView() which no longer works in IE 8 - why does ms do that...??? Here is the code:
if (fPub.length > 0) {
for (var tableRowIndex = 0; tableRowIndex < rowCount; tableRowIndex++) {
tableRow = pubListTable.rows[tableRowIndex];
if (tableRow.cells)
if (tableRow.cells[0]) {
if (tableRow.cells[0].childNodes) {
publicationName = tableRow.cells[0].childNodes[2].value;
subStrPubName = publicationName.substr(0, fPub.length);
if (subStrPubName.toLowerCase() == fPub.toLowerCase()) {
changeRowSelectionStatusInPubList(pubListTable.rows[tableRowIndex]);
if (scrollLock == false) {
pubListTable.rows[tableRowIndex].scrollIntoView();
scrollLock = true;
}
}
}
}
}
Can someone suggest an alternative method to replace scrollIntoView() which no longer works in IE 8 - why does ms do that...??? Here is the code:
if (fPub.length > 0) {
for (var tableRowIndex = 0; tableRowIndex < rowCount; tableRowIndex++) {
tableRow = pubListTable.rows[tableRowIndex];
if (tableRow.cells)
if (tableRow.cells[0]) {
if (tableRow.cells[0].childNodes) {
publicationName = tableRow.cells[0].childNodes[2].value;
subStrPubName = publicationName.substr(0, fPub.length);
if (subStrPubName.toLowerCase() == fPub.toLowerCase()) {
changeRowSelectionStatusInPubList(pubListTable.rows[tableRowIndex]);
if (scrollLock == false) {
pubListTable.rows[tableRowIndex].scrollIntoView();
scrollLock = true;
}
}
}
}
}