Nate thanks for the reply.

I tried using that syntax but it throws this Javascript error.

iterator.call is not a function
http://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 <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to