473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

TAB Order not working properly in IE6

Hi All,

I am facing an issue while testing my app for the cross browser compatibility. The scenario is as follows:

I am having a component which is having a radio button against which i am having a label on click of which the radio button is selected. Below this radio button and lable i am having a textbox on click of which also the radio button gets selected.
Below this whole arrangement i am having a label and below this i m having a textarea. Again clicking of this lable or the text area the above mentioned radio button is selected. Now when i try to tab the focus changes well(in top to down order) in Mozilla and IE7 but in IE6 when i try to tab the second label which is above the text area gets selected first and then when i again tab the text box above that gets the focus. I am posting the code snippet below:

<div>
<input type="radio" id="nameLink" name="links" onfocus="checkRadioLinkName();" checked="checked" alt="Link Name" title="Select to enter link name.">
<label for="nameLink" class="crpl4f">Name for link:</label>
<label for="nameLink">(e.g., The Times)</label>
</div>

<div class="paddingLeft22" >
<input type="text" id="linkName" name="linkName" onclick="checkRadioLinkName();" size="41" alt="Name for link (e.g., The Times)" title="Name for link (e.g., The Times)" >
</div>

<div class="paddingLeft22 marginBottom15" style="padding-top:5px;">
<label for="nameLink" class="crpl4f">URL:</label>
<label for="nameLink">(e.g., http://www.timesonline.co.uk/tol/news)</label>
<textarea name="urlLink" rows="2" onclick="checkRadioLinkName();" class="textCRP" id="urlLink" title="URL for link (e.g., http://www.timesonline.co.uk/tol/news/)" alt="URL for link (e.g., http://www.timesonline.co.uk/tol/news/)"></textarea>
</div>
The above code produces a effect something like this:

Radio button Name for link: (e.g., The Times) (label)
Text Box
URL: (e.g., http://www.timesonline.co.uk/tol/news)(Label)
TextArea
Now if i am tabbing somewhere from top of the page the focus change something like this
Radio button or TextBoox
TextArea

its working fine in mozilla but in IE6 its behaving something like this:
first focus goes to the label "URL: (e.g., http://www.timesonline.co.uk/tol/news)" and then to the textbox.

Can anyone please help me.
Mar 11 '08 #1
1 2236
Hi All,

I am facing an issue while testing my app for the cross browser compatibility. The scenario is as follows:

I am having a component which is having a radio button against which i am having a label on click of which the radio button is selected. Below this radio button and lable i am having a textbox on click of which also the radio button gets selected.
Below this whole arrangement i am having a label and below this i m having a textarea. Again clicking of this lable or the text area the above mentioned radio button is selected. Now when i try to tab the focus changes well(in top to down order) in Mozilla and IE7 but in IE6 when i try to tab the second label which is above the text area gets selected first and then when i again tab the text box above that gets the focus. I am posting the code snippet below:

<div>
<input type="radio" id="nameLink" name="links" onfocus="checkRadioLinkName();" checked="checked" alt="Link Name" title="Select to enter link name.">
<label for="nameLink" class="crpl4f">Name for link:</label>
<label for="nameLink">(e.g., The Times)</label>
</div>

<div class="paddingLeft22" >
<input type="text" id="linkName" name="linkName" onclick="checkRadioLinkName();" size="41" alt="Name for link (e.g., The Times)" title="Name for link (e.g., The Times)" >
</div>

<div class="paddingLeft22 marginBottom15" style="padding-top:5px;">
<label for="nameLink" class="crpl4f">URL:</label>
<label for="nameLink">(e.g., http://www.timesonline.co.uk/tol/news)</label>
<textarea name="urlLink" rows="2" onclick="checkRadioLinkName();" class="textCRP" id="urlLink" title="URL for link (e.g., http://www.timesonline.co.uk/tol/news/)" alt="URL for link (e.g., http://www.timesonline.co.uk/tol/news/)"></textarea>
</div>
The above code produces a effect something like this:

Radio button Name for link: (e.g., The Times) (label)
Text Box
URL: (e.g., http://www.timesonline.co.uk/tol/news)(Label)
TextArea
Now if i am tabbing somewhere from top of the page the focus change something like this
Radio button or TextBoox
TextArea

its working fine in mozilla but in IE6 its behaving something like this:
first focus goes to the label "URL: (e.g., http://www.timesonline.co.uk/tol/news)" and then to the textbox.

Can anyone please help me.
Hi Frens,

PLease dont break your head against this issue as i have got where the problem was. Actually i was using the for attribute wrongly.
Thanks
Mar 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
10
by: Chris Gordon-Smith | last post by:
I am currently revisiting the code of a C++ application and restructuring the code where appropriate to make it consistent with the overall logical design. As part of this, I am looking at the...
4
by: igor | last post by:
Hi, Help me pls a little with locals in postgres 7.3.4 why "order by" and "like" doesnt work in 7.3.4 properly? - im working with ALT server local settings. in 7.2.xx all this things...
8
by: Frank van Vugt | last post by:
Hi, If during a transaction a number of deferred triggers are fired, what will be their execution order upon the commit? Will they be executed in order of firing or alfabetically or...
23
by: roman | last post by:
Hi, I would like to have two actions for one event. But I want the second action to trigger when the first one action completes. Is it possible to do this in javascript? I'm using the onclick...
4
by: qbproger | last post by:
I'm developing a plugin for some software. The previous version of the software didn't require a start in directory to be set. This allowed me to leave the working directory to the default in the...
104
by: Beowulf | last post by:
I have the view below and if I use vwRouteReference as the rowsource for a combo box in an MS Access form or run "SELECT * FROM vwRouteReference" in SQL Query Analyzer, the rows don't come through...
3
by: RobertS | last post by:
I'm trying to figure out what I need to do to configure IIS 5.1 on XP Pro to work when referencing WebResources.axd. For example, I have an aspx script that works fine when run from Visual Web...
6
by: traineeirishprogrammer | last post by:
I am currently working on a project where I need to sort my MYSQL query results by different categories. How ever the code does not seem to be working properly and I spend too much time on it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.