[Xapian-discuss] For more UI functionality: OmegaScript, C++or other?
Chris
chris at s-4-u.net
Tue Apr 26 11:40:54 BST 2011
On 04/26/2011 12:20 PM, Chris wrote:
> On 04/26/2011 12:10 PM, James Aylett wrote:
>> On 26 Apr 2011, at 10:18, Chris wrote:
>>
>>> On 04/26/2011 11:15 AM, Chris wrote:
>>>> Checkboxes support a value attribute, something like
>>>>
>>>> <input type="checkbox" name="B" value="Edoc" /> doc
>>>> <input type="checkbox" name="B" value="Edocx" /> docx
>>>>
>>> Should be:
>>>
>>> <input type="checkbox" name="B[]" value="Edoc" /> doc
>>> <input type="checkbox" name="B[]" value="Edocx" /> docx
>>>
>>> else only the last value is sent.
>> While this isn't true, it may be true of a specific form implementation. Omega *should* work with multiple 'B' options; if it doesn't then I'd consider this a bug.
>>
>> J
>>
> What's not true?
Had to read it up
(http://www.w3.org/TR/html401/interact/forms.html#h-17.4) and it states
that attribute name is of type CDATA which is defined
(http://www.w3.org/TR/html401/types.html#type-cdata) as:
--
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".").
--
So technically it seems you're right, but i havent seen a browser where
<input type="checkbox" name="B[]" value="Edoc" /> doc
does not send an array (recommendations welcome ;) )
Greets, Chris
PS. I wasn't talking about Omega at all, just plain browser behaviour.
More information about the Xapian-discuss
mailing list