Namazu-users-en(old)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch to fix default checkbox list



In article <Pine.LNX.4.21.0106261802420.3495-101000@xxxxxxxxxxxxxxxxxxxxx>
philip@xxxxxxxxxxxxxxxxxxxx writes:

>> Attached is a patch that fixes the problem with default set of
>> checkboxes not being set.  I've also patched it for a list box, which
>> may not be what you want, so check the source before applying.

Hmm... It seems same stuff as the following mail.

X-ML-Name: namazu-users-en
X-Mail-Count: 00118

By the way, the default checkbox behavor is not a bug, is a feature.

When namazu.cgi had been called, NMZ.head was modifed by the cgi
adopting to idxname CGI paramater.

$ env LANG=C QUERY_STRING='' SCRIPT_NAME=/cgi-bin/namazu.cgi ./namazu.cgi |grep checkbox
<li><input type="checkbox" name="idxname" value="foo">foo 
<li><input type="checkbox" name="idxname" value="bar">bar
<li><input type="checkbox" name="idxname" value="baz">baz
$ env LANG=C QUERY_STRING='idxname=foo' SCRIPT_NAME=/cgi-bin/namazu.cgi ./namazu.cgi |grep checkbox
<li><input type="checkbox" name="idxname" value="foo" checked>foo 
<li><input type="checkbox" name="idxname" value="bar">bar
<li><input type="checkbox" name="idxname" value="baz">baz
$ env LANG=C QUERY_STRING='idxname=bar&idxname=baz' SCRIPT_NAME=/cgi-bin/namazu.cgi ./namazu.cgi |grep checkbox
<li><input type="checkbox" name="idxname" value="foo">foo 
<li><input type="checkbox" name="idxname" value="bar" checked>bar
<li><input type="checkbox" name="idxname" value="baz" checked>baz
-- 
NOKUBI Takatsugu
E-mail: knok@xxxxxxxxxxxxx
	knok@xxxxxxxxxx / knok@xxxxxxxxxx