SJ Carter wrote:
Quote:
On May 14, 3:30 pm, Joost Diepenmaat <jo...@zeekat.nlwrote:
Quote:
>Joost Diepenmaat <jo...@zeekat.nlwrites:
Quote:
>>You probably really shouldn't have a form element named "name".
>or if you do, you can probably use form.elements.name.value instead of
>form.name.value
>
Thanks Joost, but it still isn't working.
Post the error message, then.
Quote:
I tried changing the form element name with no success, and then tried
using the "form.elements....", with identical results.
DOM terms collide with markup terms here. Just to clarify, you should not
have a form *control* named "name", i.e. you should not have
<input name="name" ...>
because the form *element*
<form ... name="foo">
...
</form>
would then cause formRef.name to be evaluated to "foo" instead of the input
object. Modifying or removing the `name' attribute value of the `form'
element would not change that, which could explain what you observed.
You have to change the value of the `name' attribute of the `input' element
instead. BTW, "submit" is another name that should be avoided, as form
objects have a submit() method.
Please trim your quotes.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann