PDA

View Full Version : Tab and setFocus


PINGELS
06-06-2005, 10:01 PM
I have a page with four input text areas, then three ComboBox components and then another input text field

They are all within a movieClip that gets loaded into yet another movie

I set the focus to the first input text field


Selection.setFocus("textOne")
this.textOne.tabIndex = 1;
this.textTwo.tabIndex = 2;
this.textThree.tabIndex = 3;
this.textFour.tabIndex = 4;
this.month.tabIndex = 5;
this.day.tabIndex = 6;
this.year.tabIndex = 7;
this.myemail.tabIndex = 8;


The problem is it all works until the focus hits the first ComboBox. Then it stops there and does not go on to the next tabIndex.

Any ideas?

Thanks

P.

PINGELS
06-06-2005, 10:08 PM
OK, looks like I found the problem. If you switch on Disable Keyboard Shortcuts in test mode it works.

P.

PINGELS
06-06-2005, 10:43 PM
Now I have another problem

The tabIndex goes through all the steps OK but then jumps from the last Tab Index to the browser Address area. This does not happen in test mode but in the running in the browser

P.