On 11/1/06, Fred <[EMAIL PROTECTED]> wrote:

> Incorrect. The forms collection is a formal collection in the W3C DOM
> HTML specification:

>     alert(document.forms[0].docid.value);

Not quite. HTMLFormElement does not have a "docid" property defined in
the above mentioned specification. You have to go through its elements
properties.

document.forms[0].elements["docid"].value

>  When using forms, both $() and hence $F() have problems if id and name
> attributes share the same value.

Only in Internet Explorer and only there is more than one element
involved in this "sharing", no?

> Using names for form controls is valid HTML and provides support for
> old browsers.

The "name" attribute is required for all but submit and reset inputs.

Bye,
  Martin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to