Stanimir Stamenkov
2005-10-03 21:53:01 UTC
[x-posting to netscape.public.dev.html, follow-up to
netscape.public.dev.html]
consider posting to "comp.infosystems.www.authoring.html" and/or
"alt.html" in addition to the "netscape.public.dev.html" I'm
cross-posting to now.
defines its own list of attributes, where same named attributes of
different type could appear under different elements.
The 'name' attribute of anchor elements can't have their values
duplicated, but because DTD rules only one attribute of type ID may
be declared for an element it is declared of type CDATA (the 'id'
attribute is of type ID already).
The 'name' attribute of form elements could have a same value for
multiple elements where all of the same named form values may get
submitted.
The "phenomenon" of submitting <name>.x and <name>.y pairs for image
submit controls is well documented in the specification. Submit
controls are not suitable for carrying out a value since their value
is often used for the textual label of the control. If you want to
submit a specific value (the key) - place it in a hidden field.
netscape.public.dev.html]
Excuse my ignorance and the slightly OT post ...
Much off-topic as seems your question is purely HTML one. You mightconsider posting to "comp.infosystems.www.authoring.html" and/or
"alt.html" in addition to the "netscape.public.dev.html" I'm
cross-posting to now.
The W3C recommendations state the value of "name=" properties in HTML are of
type CDATA. It is my understanding that reads as pretty much anything goes.
Is that a fair interpretation?
These are no properties - these are attributes. Every elementtype CDATA. It is my understanding that reads as pretty much anything goes.
Is that a fair interpretation?
defines its own list of attributes, where same named attributes of
different type could appear under different elements.
The 'name' attribute of anchor elements can't have their values
duplicated, but because DTD rules only one attribute of type ID may
be declared for an element it is declared of type CDATA (the 'id'
attribute is of type ID already).
The 'name' attribute of form elements could have a same value for
multiple elements where all of the same named form values may get
submitted.
The reason I ask (other than the nonresponsiveness elsewhere and that I know
there are some really sharp cookies here) is that I'm building a form with a
pair of Submit buttons for each row. Each Submit button will be an <input
type="image">. The down side is that 2 sets of values are returned: "name".x
and the x coordinate within the image clicked, and "name.y and the y
coordinate within the image clicked. I intend to make the "name" an action
plus a key value and I'll later parse out the action and key at the server.
The key could contain just about anything.
Any guidance will be appreciated.
I fail to understand your question, but:there are some really sharp cookies here) is that I'm building a form with a
pair of Submit buttons for each row. Each Submit button will be an <input
type="image">. The down side is that 2 sets of values are returned: "name".x
and the x coordinate within the image clicked, and "name.y and the y
coordinate within the image clicked. I intend to make the "name" an action
plus a key value and I'll later parse out the action and key at the server.
The key could contain just about anything.
Any guidance will be appreciated.
The "phenomenon" of submitting <name>.x and <name>.y pairs for image
submit controls is well documented in the specification. Submit
controls are not suitable for carrying out a value since their value
is often used for the textual label of the control. If you want to
submit a specific value (the key) - place it in a hidden field.
--
Stanimir
Stanimir