Re: Bizarre radio button behaviour
- From: Swifty <Steve.J.Swift@xxxxxxxxx>
- Date: Fri, 04 May 2007 14:05:25 +0100
What happens if they avoid the mouse?
E.g. do a Ctrl-f Find for satisfied, press Backtab
then press CursorDown to make the selection.
Then what? Press Enter? Tab to the Record your Satisfaction button?
What happens is very interesting. Thank you for your insight!
The radio buttons cannot be reached.
I think this is because of some strange (to me, even though I coded the page aeons ago) JavaScript.
Each of the radio buttons has associated:
onClick="document.Form.Reason.focus();return true;" onFocus="document.Form.Reason.focus();return true;"
"Reason" is the text input field below the Radio buttons.
The *intention* was to transfer focus to the input field as soon as one of the radio buttons has been selected, thus helping the user avoid the need to click in the "Reasons" box. That javaScript was developed before I had any idea what I was doing (still don't, really, for JavaScript) and was put together by experimenting with fragments found elsewhere.
I'm wondering if the "onFocus" event is stealing focus away from the radio button and preventing its getting selected? If so, then its an obscure timing issue, as I've never seen it causing any problems across years of use and tens of thousands different users/systems/browsers. Until now, that is.
I do recall a problem with being unable to click the radio buttons during development of this page, caused by JavaScript, but until today thought I'd got around it.
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
.
- Follow-Ups:
- Re: Bizarre radio button behaviour
- From: Robert Aldwinckle
- Re: Bizarre radio button behaviour
- References:
- Bizarre radio button behaviour
- From: Swifty
- Re: Bizarre radio button behaviour
- From: Robert Aldwinckle
- Bizarre radio button behaviour
- Prev by Date: Re: Icon in Address Bar
- Next by Date: Re: Export/Import Favorites Problem
- Previous by thread: Re: Bizarre radio button behaviour
- Next by thread: Re: Bizarre radio button behaviour
- Index(es):
Relevant Pages
|