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

Unable to set focus when using IE - works w/ FF 1

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
Check this out


try to set focus on fields under the CNEE Name and Address. Notice that you can only set focus on the first field, every other field does not ...

You can only do so if you set focus on one field where it is possible and then tab your way over ...

In FF I use firebug and have gotten rid of all errors but three of them within the JS section of code (no idea why but that is another subject).

Any idea as to why I'm having this problem? This has been beating my head for weeks and I still cannot solve it.

Thank you all for your assistance!


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
First, you should know that there is a similar tool to Firebug available to IE. It is not as good or as powerful, but it does the job. You can download MS IE Developer Toolbar at Microsoft site.

Now you need to review what you're doing, because you're shooting yourself in the leg with your code (another reason why tables suck :)).

In the row that holds your shipment options and all the address fields, you establish (in the second cell) that the cell will be spanning 12 rows. Meaning, that in the next 12 rows in your table, there will be no second cell (second column) due to this one extending all the way.

However, when you define a cell in the next row, you want it to span two columns. Since your table has only two columns and the second column is already filled by the last row, which was extended past this column, the browsers get confused. IE decides to put the next row completely over the previous one (effectively covering all the inputs except for the first one (which is above the next row).

Removing the colspan in your cell would help solve the problem. Also note that the rowspan="12" is confusing, since you do not have as many as 12 rows that cell could span over.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Perhaps indenting your code nicely would help to spot any JS and/or HTML structure errors - right now, it's so hard to find these.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
@Vragabond:

Thanks for pointing these out ... addressed them and problem was solved.

@BillyRayPreachersSon:

Sorry for not having indented the code - I normally do, I will be more cautious next time.


Thank you guys!


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top