Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Set tab to skip fields -- or tab down

Reply
Thread Tools

Set tab to skip fields -- or tab down

 
 
sfp
Guest
Posts: n/a
 
      02-05-2007
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

 
Reply With Quote
 
 
 
 
mrcakey \(The Eclectic Electric\)
Guest
Posts: n/a
 
      02-05-2007
"sfp" <> wrote in message
news: oups.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::


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to skip field in tab order =?Utf-8?B?QmlsbCBCb3Jn?= ASP .Net 2 03-25-2010 11:09 AM
- have set to skip XP password, but now another confirmation is comingup. anthonyberet Computer Support 5 09-30-2007 11:46 PM
print struct fields and its member structs' fields recursively, generically call_me_anything C++ 4 09-30-2007 10:12 PM
SELECT drop down list - SKIP magix Javascript 2 03-19-2007 08:28 PM
skip tab, spaces MD XML 0 08-23-2006 12:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57