It's possible that your event:Selectors and Prototype versions are out
of sync.  Do you have the latest of both?  What does the JavaScript
output from the helper look like?

On Jun 12, 11:56 am, isho <iri...@gmail.com> wrote:
> Nate thanks for the reply.
>
> I tried using that syntax but it throws this Javascript error.
>
> iterator.call is not a functionhttp://dc-dev.xxxx.xx/cakephp/js/prototype.js
> Line 661
>
> I'm using version 1.6.0.3 of prototype
>
> On Jun 11, 7:22 am, Nate Abele <nate.ab...@gmail.com> wrote:
>
>
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to