Patch to use <label> tags in CGIs

Dan Wallis mrdanwallis at gmail.com
Sun Sep 28 17:52:51 CEST 2008


On 28/09/2008, Andreas Ericsson <ae at op5.se> wrote:
> Dan Wallis wrote:
>  > Anyway, I've added <label> tags to the CGIs, to make them /much/ more
>  > user friendly.
> What do they do? The link you posted didn't quite mention that. At
>  least not with words that I'm capable of groking at 12.30 on a sunday
>  morning.

Ah, sorry about that. Essentially they associate the text around an
input element with said input element. I usually find it easier to
understand things by example, so I've written a quick example and put
it here: http://mrdanwallis.googlepages.com/forms.html

As you can see, clicking on any of the labels in the second fieldset
sends focus to their respective element, whereas in the first the text
has no function and is simply text. This is especially useful with
particularly small elements, like check-boxes and radio-buttons.

>  > I'm attaching the diff to this email. Please can this
>  > be (tested and) committed to cvs, and included in the next release?
> I doubt it will be, as Ethan's working on a new GUI to completely
>  replace the current one. I'll send this off to our webdev fellas
>  here at op5 though. If they say it's a good thing to have, I'll
>  queue it for Ethan to pull later.

Oh cool, I wasn't aware that was going on. Is there anything that needs help?


Dan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/




More information about the Developers mailing list