Subject: [htdig] problems with build_select_lists
From: Daniel Lang (email@example.com)
Date: Mon Oct 02 2000 - 06:29:09 PDT
I am experiencing some difficulties while trying
to use build_select_lists.
One problem is, that it seems that htsearch cannot detect
it right if the current value of a parameter is part of the
list. Although this is the case, the additional default parameter
(label the last element of the build_select_list octuple) is
created and selected. No matter which of the values the parameter
The second problem might be, that I'm missing something, but
in this particular case, a select list variable doesn't get expanded.
I will again double check my form-templates and the configs, but
I already did that. So the best is probably I send the files to
anyone willing to have a look and suggest what I am doing wrong.
I will now give a short example for the first problem, and quoting
the relevant sections of my htdig.conf.
build_select_lists: EXCLUDE_LIST exclude exclude_pattern_list 2 1 2 \
I use tabs, maybe this can cause the problem ?
Just comes to my mind ....
exclude_pattern_list: "linux" "Linux" \
"BSD" "BSD" \
"ports" "Ports" \
"packages" "Packages" \
"" "No Excludes"
Now the variable $(EXCLUDE_LIST) does expand to such a list,
but, initially the "exclude" parameter is empty (or should be),
although there is an entry in the pattern list, an additional one
is created labelled 'unknown' and this is selected.
The same if any other value is selected.
e.g. if exclude=BSD (in the query string), the created list
(in HTML) looks like this:
<option value="">No Excludes
<option value="BSD" selected>unknown
You see, that the BSD value is created twice, the selected one carries
the default label.
As far as I have understood it, the BSD value already present should
have been selected, and the default labelled value should only
be created, if the current value is not part of the list.
Thanks for your help,
-- IRCnet: Mr-Spock - signs of absurd developments in the net community: #42: - "Wurstbrot gehoert m.E. zum Fruehstuecks-botnet von Cartoon" - *Daniel Lang * firstname.lastname@example.org * +49 89 289 25735 * http://www.leo.org/~dl/*
------------------------------------ To unsubscribe from the htdig mailing list, send a message to email@example.com You will receive a message to confirm this. List archives: <http://www.htdig.org/mail/menu.html> FAQ: <http://www.htdig.org/FAQ.html>
This archive was generated by hypermail 2b28 : Mon Oct 02 2000 - 04:33:06 PDT