JavaScript Auto Tab (attn: Cyanide_7)

by "Shull, Conrad" <cshull(at)shscares.org>

 Date:  Thu, 6 Jul 2000 11:59:37 -0400
 To:  "'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
I would like to use Cyanide_7's code for JavaScript autotab I found on
Javascript Source.  Works great, but how can I also make it jive with a
"tabindex" attribute? Here's my original code followed by the new code with
the autotab added (this is part of VBScript ASP, so that's why the single
quotes instead of double).

<input type='text' size='2' name='timeih" & i & "' value='" & timeinh(i) &
"' tabindex = '" & tab+1 & "'>

<input type='text' onKeyUp='return autoTab(this, 2, event);' size='2'
maxlength='2' name='timeih" & i & "' value='" & timeinh(i) & "' tabindex =
'" & tab+1 & "'>

In the later example, the autotab doesn't go to the next tabindexed
designated form field (tab+2), but rather simply the next field in the order
written.

Thanks, Conrad Shull

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.