Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Order 1

Status
Not open for further replies.

TulsaJeff

Programmer
Jan 29, 2001
870
US
Look at my code and see if anyone can see why it is not working. I have not used this feature much and it seems there is something wrong with my code.

It will not move at all when I hit the TAB key...


Code:
on (keyPress &quot;<Tab>&quot;) {
    if (Selection.getFocus()==&quot;_root.contact_in.realname&quot;) {
        Selection.setFocus(&quot;_root.contact_in.email&quot;);
    } else if (Selection.getFocus()==&quot;_root.contact_in.email&quot;) {
        Selection.setFocus(&quot;_root.contact_in.email&quot;);
    } else if (Selection.getFocus()==&quot;_root.contact_in.body&quot;) {
        Selection.setFocus(&quot;_root.contact_in.realname&quot;);
    }
}
Ya' Gotta Love It!
sleepyangelsBW.jpg
 
jeff i understand what your trying to do..i don't know why your code is not working..but what i don't understand is, is there a certain reason why..when the page comes up you are trying to set focus which adds the cursor in the appropriate input box..right?.then you are trying to, on tab, get it to tab to the next input box..right?..well wouldn't you only have to set focus on the first input box?.i just created a contact page with three input boxes..all you have to do is hit tab and it does it for you..although i didn't set focus on the first input box(which i will now cause it makes sense)..but then after that all you would have to do is just hit tab..it will tab along to the following input boxes on it's own..even in a flash movie..heck i just found out you can hit tab in a flash movie and it scrolls through all the buttons for you..never knew that..don't no if it's worth anything, but never knew..

anyways am i missing something?

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
amazing bro..you should start your own darn yahoo..oldnewbie's_search_engine.com..that works well for me..will add that from now on..

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
waiting on you!
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top