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="method">Match:</label> <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">Match:</label> $(METHOD)
<label for="Format">Format:</label> $(FORMAT)
<label for="Sort">Sort:</label> $(SORT)

Regards,

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



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to