if you're modifying the innerHTML to add in rows of textboxes, can't you
just include the tabindex in whatever HTML code you've got in there?  If
you're deleting rows, I don't think that would be a problem, as it should
just jump to the next highest tabindex.  ie. if you delete rows 3 - 5, it
should go from tabindex 2 to tabindex 6, afaik.

if you're inserting form elements in the middle of items, you could perhaps
do this:

[static form elements, tabindex 1... N]

[dynamic form elements, tabindex not known yet]

[static form elements, tabindex 200 ... N]

the dynamic stuff, either start their tabindex at N+1 from the static ones
above, or start it at a suitably high number that it won't clash, e.g. 100.
Then any static ones below that, start those at a suitably high number that
it won't matter what the dynamic elements are using.  so your tabindexes
might be a bit funny (1,2,3,100,101,102,200,201, etc), but it should work.




                                                                                       
                            
                    "Barry L                                                           
                            
                    Beattie"             To:     [EMAIL PROTECTED]                     
                  
                    <[EMAIL PROTECTED]        cc:                                      
                                 
                    om>                  Subject:     [ cf-dev ] (sort of OT) dynamic 
tabindex                     
                                                                                       
                            
                    26/05/2004                                                         
                            
                    15:14                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



hi all


my very fussy boss is obsessed with tabindexes, especially on a dynamic
form which has new form elements comming in from all over. I've got it
mostly right but there are some nasties when new form elements are added.


It's a typical looking master/detail order form but not only do the  number
of CF-generated master form controls vary depending on database settings,
but the detail section works by adding and deleting rows of textboxes and
modifying the innerHTML of a div with javascript.


is there a neato way doing tabindexes dynamically with JS, a bit like
runtime control arrays in, say, VB windows apps?


any suggestions are most welcome


cheers
barry beattie



--


__________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup


-- These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/ Archive:
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper
Sponsors and contributors:- *Hosting and support provided by
CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums
provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To
unsubscribe, e-mail: [EMAIL PROTECTED]








-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to