In-Reply-To: <[EMAIL PROTECTED]>
"Joe R. Jah" <[EMAIL PROTECTED]> wrote:
>
> 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.
Except that - if I remember correctly - at least one version of
IE will mess this up, since it gets its namespaces in a twist.
So: either do extensive checks to see whether I"m talking
cobblers, or give *different* values for id and name :)
Mike
___________________________
Hi Mike,
I've used unique ids anyway to avoid possible clashes with other fields on dynamic pages, so that shouldn't be a problem. I'm using this source:
*str << "<select id=\"htdig_format\" name=\"format\">\n";
*str << "<select id=\"htdig_method\" name=\"method\">\n";
*str << "<select id=\"htdig_sort\" name=\"sort\">\n";
with labels that are explicitly associated:
<label for="">
<label for="">
<label for="" by:</label>
and it's working great in all 4+ browsers, and it's fully accessible :-)
Martin Budden