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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabbing and the URL Address

Status
Not open for further replies.

teblack

Programmer
Apr 30, 2004
45
We have an ASP page that has input boxes for dollar amounts. Each dollar amount has a tabindex defined. The problem we are having is that when the page first display the cursor is located at the first amount box, but when you tab off it sets the cursor into the URL address box, and then when you tab again it goes to the second amount box. Any reason that the tabindex is not working, or why it's tabbing into the URL address box?


Thanks in advance for the help.

TBlack -
 
you can select the each input textbox and right click on it to the set tab order.

-VJ
 
VJ - not sure I understand, where is this available at?

Thanks again in advance for the help.

TBlack -
 
I think VJ is giving you details on how to set the tab index using a third party web "programming" tool (like Dreamweaver or Frontpage). Not really relevant to what you are asking imho.

Could you post a URL we can look at? What browser do you see this happening with? Have you tested it on another browser (Firefox or Opera) to try and isolate the cause?

Jeff
 
Jeff - I can not post this, it's internal and in the development stage. Using IE 6.0, developing in Visual Interdev 6.0. Have not tested on any other browser yet. One thing that is weird about the problem, is that I can use a back button to get to the form and it does not do it. It's only on the very first load of the web page. I'm begining to think something is over riding the tabindex tag on each input box.


Thanks in advance for the help with this.



TBlack -
 
How are you initially setting the cursor into the first input box? I would have thought an onload event that sets the focus(). Is it possible that 2 input boxes have the same name (or ID) - or no name at all? Does the html have a !DOCTYPE declaration?

Just some ideas :)

Jeff
 
Jeff is on the right track. Normally, the tab order follows the way the elements are laid out on the page - normally. You can set the tabindex, as you have stated, as an attribute of the input tag (tabindex="10"). You can also use javascript to place the cursor in whatever textbox you want.

There's always a better way. The fun is trying to find it!
 
Thanks, figured it out. Was not using a .focus() command, was using a .select. Once I changed it over to .focus(), it started working.

Thanks to all whom provided input.



TBlack -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top