I need a implementation of http://www.prototypejs.org/api/event/observe in Jquery?
With “frequency” too?
I need to a ticket for cakephp.
Thanks,
Celso.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Prototype observe is equivalent to jquery bind
so something like this in prototype:
would be equivalent to this in jquery:
The actual implementation in the library is different, but this will provide a similar result. Also, in jquery you won’t have to attach a bind() function on the end of your handler as jquery binds the scope automatically.