HighDots Forums  

Re: Valid form element names? How to use ID instead of name? Processing form data

alt.html alt.html


Discuss Re: Valid form element names? How to use ID instead of name? Processing form data in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Winter
 
Posts: n/a

Default Re: Valid form element names? How to use ID instead of name? Processing form data - 03-06-2004 , 11:17 AM






On Sat, 06 Mar 2004 15:06:50 GMT, Grahammer <postmaster (AT) 127 (DOT) 0.0.1> wrote:

Quote:
"Michael Winter" <M.Winter (AT) blueyonder (DOT) co.invalid> wrote in message
newspr4f01ezv5vklcq (AT) news-text (DOT) blueyonder.co.uk...

On Sat, 06 Mar 2004 12:32:21 GMT, Grahammer <postmaster (AT) 127 (DOT) 0.0.1
wrote:

[Follow-ups set to alt.html]

??? I've seen this, but I don't know how Outlook Express can reply to a
list of groups with followups only to a single one, like you did here.
When you compose a message, there should be a menu item along the lines of
"Show all headers" in the View menu (it might be in a sub-menu). If you
select that, several new header lines will appear along with Subject,
Newsgroup, and the like. Some of them you won't ever use, but the
follow-up field should be amongst them.

Quote:
Is there a link somewhere that shows what defines a valid form object
(element) name or ID?

The HTML Specification defines the accepted characters for all attribute
values. The id attribute is of type ID, and the name attribute for form
controls is of type CDATA. From the Specification:

ID and NAME[1] 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 (".").

Thanks! This is what I was looking for (or a link)
Sorry, I should have also given a link. The specific section I referenced
can be found here:

http://www.w3.org/TR/html4/types.html#h-6.2

The Specification as a whole can be found here:

http://www.w3.org/TR/html4

[snipped full object references]

Quote:
When name and id are used together in form controls, should they match?
I know that in other elements (A, FORM, IMG, etc), they must be
identical when used together, but does this apply to form controls,
too?

My editor is Visual Studio.Net and it does NOT match ID with NAME at
all! It insists on adding an ID value to all my input tags.
According to the specification, the elements A, APPLET, FORM, FRAME,
IFRAME, IMG, and MAP should use the id attribute (my impression is that
name is being phased out), but when the name attribute is used for
backward compatibility, it must match the id value.

http://www.w3.org/TR/html4/struct/links.html#h-12.2.3

I don't think it applies to controls within forms, but I thought I'd ask
whilst I'm posting to alt.html.

[snipped collection syntax]

Quote:
Hope that helps,

Definately... and apologies for the scripting questions in the HTML
group, but they were related and I thought helped clarify my
questions.
The first part (characters within attributes) was strictly HTML, but the
latter material did have reprocussions for scripting.

Mike

--
Michael Winter
M.Winter (AT) blueyonder (DOT) co.invalid (replace ".invalid" with ".uk" to reply)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.