R
R
Folks,
I am working on an intranet based application - end users requirement
is firefox 3 and I am finding a problem whereby as I tab from one
input form field to the next, focus is not always kept. Take the
following HTML code as an example:
<td class="fieldLabelRequired">Firstname</td>
<td><input name="employeeFirstname" type="text"
class="input200" id="employeeFirstname" tabindex="101"
maxlength="20"></td>
<td class="fieldLabelRequired">Lastname</td>
<td><input name="employeeLastname" type="text"
class="input200" id="employeeLastname" tabindex="102" maxlength="20"></
td>
When I tab from the input box known as employeeFirstname, the cursor
and focus is still within firefox but not visable (typing doesn't show
it up anywhere, nor do I get any errors). If I tab again, I find the
focus and blinking cursor in the box marked employeeLastname.
I've had this problem before (firefox 2.x and IE 6 & 7) but never
managed to successfully resolve it - I don't want to create a js
solution to manage the focus as users might want to navigate in
methods that I have not considered - however I would like focus to
follow a set path when the user moves using the tab key.
As a potential solution I thought I could have a script that would
write its current focus location (using getElementID or something and
update window.status) and thus give me an insight as to what is
happening and thus, hopefully, lead to a solution.
Can anyone tell me how I might do this? I have a fair idea on how to
read the x/y co-ordinates but thats not what I want - If the cursor
happens to be elsewhere in the form for some reason, I'd like to know
that its sitting in an address field for example.
Any ideas/suggestions? I'd be most grateful.
Thanks!
I am working on an intranet based application - end users requirement
is firefox 3 and I am finding a problem whereby as I tab from one
input form field to the next, focus is not always kept. Take the
following HTML code as an example:
<td class="fieldLabelRequired">Firstname</td>
<td><input name="employeeFirstname" type="text"
class="input200" id="employeeFirstname" tabindex="101"
maxlength="20"></td>
<td class="fieldLabelRequired">Lastname</td>
<td><input name="employeeLastname" type="text"
class="input200" id="employeeLastname" tabindex="102" maxlength="20"></
td>
When I tab from the input box known as employeeFirstname, the cursor
and focus is still within firefox but not visable (typing doesn't show
it up anywhere, nor do I get any errors). If I tab again, I find the
focus and blinking cursor in the box marked employeeLastname.
I've had this problem before (firefox 2.x and IE 6 & 7) but never
managed to successfully resolve it - I don't want to create a js
solution to manage the focus as users might want to navigate in
methods that I have not considered - however I would like focus to
follow a set path when the user moves using the tab key.
As a potential solution I thought I could have a script that would
write its current focus location (using getElementID or something and
update window.status) and thus give me an insight as to what is
happening and thus, hopefully, lead to a solution.
Can anyone tell me how I might do this? I have a fair idea on how to
read the x/y co-ordinates but thats not what I want - If the cursor
happens to be elsewhere in the form for some reason, I'd like to know
that its sitting in an address field for example.
Any ideas/suggestions? I'd be most grateful.
Thanks!