Hi Ishmael, The event:Selectors style requires a slightly different syntax because of how it's set up, and you need to write it like this:
$javascript->event('.post .title:mouseover', 'this.select (".delete_action").invoke("show")'); Hope that helps, - Nate On Jun 8, 9:06 pm, isho <iri...@gmail.com> wrote: > 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---