[Solar-talk] Isn't 'submit' a bad name for form fields?

Rodrigo Moraes rodrigo.moraes at gmail.com
Fri Jan 5 07:14:45 PST 2007


Hi!
Maybe I'm missing something, but isn't 'submit' a bad name for form
fields, specially when you want to submit it manually using
javascript? E.g., form.submit() will call the input field, and collide
with the DOM method submit().

There's an easy workaround (rename the 'submit' fields to
'submit-[something]'), but I'm wondering if it wouldn't be better if
the Solar defaults for 'submit' were something else. Aaargh, I lost
some time trying to figure out why submit() wasn't working. :-)

cheers,
rodrigo


More information about the solar-talk mailing list