On Mar 6, 10:05 am, Michael Hauptmann <[email protected]> wrote:
> Hi Tomaso,
>
> The submit is a input element.
>
> new Element('input', {'type' : 'submit'})
>
> should work.
>
> Miguel
>

Hang on, Miguel

HTML has both <input type='submit'> and <button type='submit'>, so
Tommaso's expectation is reasonable.

Flanagan (the O'Reilly "Javascript, The Definitive Guide") does not
discuss the 'Button' object in the reference section, but refers the
reader to the 'Input' object: I took that at first to mean that JS
doesn't implement a 'Button' object separate from the 'Input' object,
but that can't be right: all the DOM reference sites certainly list
HTMLButtonObject as an interface.

So, I don't know what is going wrong, but I don't see why it shouldn't
work.

In the meantime, using an 'input' object might be easiest :-)
Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to