On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> <button onclick="Form('h').reset();">This does not work!</button>
>
You got it all wrong. It should be
Form.reset('h')
because "Form" is not a function, it is a namespace. It holds methods that
can be invoked ass class methods, resembling a singleton pattern.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---