I having some trouble figuring out how to use $javascript->event() with selectors other than #id's
First of all I was getting this error message "EventSelectors is not defined" until I included the js lib "event-selectors.js" that I found on github. (http://github.com/Caged/javascript-bits/tree/ 16af773a1316774b53805b7fc63b5e1eec34c35d/event-selectors) The documentation doesn't really make this clear so I may have included the wrong library. Now I'm getting the js error: "mouseout is not defined" This is my php code: --- echo $javascript->event('.post .title', 'mouseover','this.select (".delete_action").invoke("show")'); --- and here's the generated javascript: var Rules = { '.post .title': function(element, event) { mouseout } } EventSelectors.start(Rules); It seems like the method signature for this usage of the event() method is different. Does anyone know how to do this? I'm fairly new to cakephp and prototype. Best, Ishmael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
