|
Posted by mrcakey \(The Eclectic Electric\) on 02/05/07 21:13
"sfp" <stevenprevost@gmail.com> wrote in message
news:1170705173.446008.169480@a75g2000cwd.googlegroups.com...
> My table rows are defined as a dynamic array like
>
>
> <tr class="formTr<%=bgcount%>" >
> <td class="formTds" nowrap><%=arrayWeek[i]%></td>
> <td class="formTds" nowrap><%=strToChange(arrayDay[i])%></td>
> <td><input name="AUnit" class="textNoSize" maxlength="4" value="<
> %=strToNull(arrayAUnit[i])%>" onKeypress="return isKeyNumberdot(0)" <
> %=edit_flag%> ></td>
> <td><input name="BUnit" class="textNoSize" maxlength="4" value="<
> %=strToNull(arrayBUnit[i])%>" onKeypress="return isKeyNumberdot(0)" <
> %=edit_flag%> ></td>
> <td><input name="CUnit" class="textNoSize" maxlength="4" value="<
> %=strToNull(arrayCUnit[i])%>" onKeypress="return isKeyNumberdot(0)"
> onkeydown="if(event.keyCode==13){event.keyCode=9;}" <%=edit_flag%> ></
> td>
> <td><input name="TUnit" value="<%=strToNull(arrayTUnit[i])%>"
> class="input-dis" disabled></td>
> </tr>
>
> This essentially puts three columns of data in x rows. When the
> cursor is in, say, column 1, and the TAB key is pressed, I would like
> focus to be set to the cell in the next row immediately below the
> current row. I tried
>
> onkeydown="if(event.keyCode==9){event.keyCode=11;}"
>
> but this puts the cursor in the browser address bar. My app is
> internal use only, only IE supported.
>
> Thanks in advance,
> Steve
>
Add tabindex attributes to your fields. If you're generating the table
dynamically then this will be even easier.
::mrcakey::
Navigation:
[Reply to this message]
|