Gah. I should have seen it. I keep looking for the hard/obscure
reasons, not the easy ones.
Event.observe (and every other callback option in Prototype) requires
a function reference, not a string, so yeah, it'd get you in trouble.
Glad it's working.
TAG
On Aug 1, 2007, at 1:10 PM, boipster wrote:
>
> ok, having the handler function in quotes is the problem. I don't
> know why it was effecting the eventName, but when I remove the quotes
> from catchEnterKey it works...
>
> seesh...
>
> Thanks again TAG for all your help.
>
> On Aug 1, 12:48 pm, boipster <[EMAIL PROTECTED]>
> wrote:
>> the last post still has the problem....
>>
>> Is there is something wrong with this statement that I am not seeing?
>>
>> Event.observe('loginButton', 'click', 'catchEnterKey');
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---