Thanks Joe, that looks perfect.

Martin Budden




"Joe R. Jah" <[EMAIL PROTECTED]>

15/09/2004 13:01

       
        To:        [EMAIL PROTECTED]
        cc:        [EMAIL PROTECTED]
        Subject:        Re: [htdig] field ids to use with labels?



On Tue, 14 Sep 2004 [EMAIL PROTECTED] wrote:

> Date: Tue, 14 Sep 2004 13:31:30 +1000
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [htdig] field ids to use with labels?
>
> Hi, how do I get htdig to add id attributes to all the auto-generated
> fields?
>
> I want to make htdig fully accessible, and therefore I want to use field
> labels with all the fields.  For example, instead of this:
>
> Match: <SELECT name=method> ...etc
>
> I want it to generate fully accessible HTML like this:
>
> <label for="" <SELECT id=method name=method> ...etc
>
> It's easy for me to add the label tags, but how do I get htdig to add id
> attributes to all the auto-generated fields?
>
> Thanks
>
> Martin Budden

Edit the following lines in htsearch/Display.cc and
libhtdig/ResultFetch.cc:

   *str << "<select name=\"format\">\n";
   *str << "<select name=\"method\">\n";
   *str << "<select name=\"sort\">\n";

To:

   *str << "<select id=\"format\" name=\"format\">\n";
   *str << "<select id=\"method\" name=\"method\">\n";
   *str << "<select id=\"sort\" name=\"sort\">\n";

Recompile and install.

Also edit the following lines in common/syntax.html:

Match: $(METHOD)
Format: $(FORMAT)
Sort: $(SORT)

To:

<label for="" $(METHOD)
<label for="" $(FORMAT)
<label for="" $(SORT)

Regards,

Joe
--
    _/   _/_/_/       _/              ____________    __o
    _/   _/   _/      _/         ______________     _-\<,_
_/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
 _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]



Reply via email to