It's a wrapper for Prototype's Event.observe (or in some cases event
selector rules for Justin Palmer's event:Selectors library, but forget
about that for now).
Here's a simple example, for if you wanted to add an onclick event to
the <span> above:
<?=$javascript->event('myid', 'click', 'alert("This is what happens
when you click on a span")'); ?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---