Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dynamic TabIndex

    Okay, I guess I either wasn't clear enough or phrased this badly. Sorry. <wince> I'll try again. Here's the url. Feel free to submit it if you need to. I have the strings that do the actual update to the database commented out. http://menu-manager.com/testbed/TestRecipe.php

    I have a form to which three fields are added as many times as necessary by the user. I want the user to be able to tab through the fields without having to resort to using the mouse (speeds entry). There are 9 fields before the dynamic section of the form and a good half-dozen after. It's like this:

    Field1
    ...
    Field9

    Then the user can add additional AddFields

    AddedField1a
    AddedField2a
    AddedField3a
    AddedField1b
    AddedField2b
    AddedField3b, etc.

    TextAreaField1
    TextAreaField2

    Because the form uses an editor (tinyMCE) directly after the section of added fields, and because the editor has icons in its header which can have focus, when the user hits tab and jumps the focus from the last AddedField into the textarea controlled by the editor, it ends up focusing to the first of the icons of the editor instead of jumping into the textarea. Because the editor script works for a number of different things setting the tabindex for the editor buttons isn't really an option.

    If I set a variable which I increment with each form field, that should work . . . ? Can I instead set a variable which I increment each time a row of fields is added and just use that to get past the icons and into the text field?

    Feedback? Ideas? Help?

    I think I'd be more comfortable if I knew how to insert a value into html from javascript. I just don't know enough . . . I'll keep pecking away at this.

    Thanks.

    HeadElf
    Last edited by HeadElf; 06-29-2006 at 02:59 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •