arahim
04-05-2006, 05:02 PM
Hello,
We are using following JavaScript code to navigate up and down a table using arrow keys.
function changeRow(keypress)
{
if( navigator.appName == "Microsoft Internet Explorer" )
{
if( event.keyCode == 38) { eventName = 'Previous1'; }
if( event.keyCode == 40) { eventName = 'Next1'; }
}
document.form0.event.value = eventName;
document.form0.submit();
<!-- Set focus on the next row's cell. -->
<!-- document.form0.row.elements[6].focus(); -->
document.form0.elements[6].focus();
}
The arrow keys work, but the cursor does not blink on the next row's cell. We have tried both statements above to set the focus on the cell:
Any ideas will be much appeciated!
Thanks, Ali.
We are using following JavaScript code to navigate up and down a table using arrow keys.
function changeRow(keypress)
{
if( navigator.appName == "Microsoft Internet Explorer" )
{
if( event.keyCode == 38) { eventName = 'Previous1'; }
if( event.keyCode == 40) { eventName = 'Next1'; }
}
document.form0.event.value = eventName;
document.form0.submit();
<!-- Set focus on the next row's cell. -->
<!-- document.form0.row.elements[6].focus(); -->
document.form0.elements[6].focus();
}
The arrow keys work, but the cursor does not blink on the next row's cell. We have tried both statements above to set the focus on the cell:
Any ideas will be much appeciated!
Thanks, Ali.