Well seems to be that is not enough. Don't matters I put
 a)  var listeners = new Collection;
 b)  var listeners = new Collection();
 c)  listeners = new Collection;
 d)  listeners = new Collection();

in the initialize function Firebug is telling me that Collection is
not defined.

Collection is a standard class in javascript right? or one should
include something or what?

thanks,

Sebastian


On 26 maio, 22:28, "Andrew Kaspick" <[EMAIL PROTECTED]> wrote:
> You need to write that as...
>
> mouseOutListeners = new Collection();
>
> I believe.  Add the ().
>
> On 5/26/07, Sebastian Sastre <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello everyone,
>
> >   as you may already noticed from the subject of this post I'm new to
> > javascript and to be honest if I can choose I'll certainly don't do it
> > but once javascript is the only way to make web browsers to behave,
> > well one had to get dirty on it.
>
> >   Said that, I found Prototype (and Scriptaculous) very nice
> > frameworks. They have a lot of sense and add a lot of value to the web
> > developing experience. So I glad you have made this and I can
> > participate in this group.
>
> >   For an application I'm doing with Seaside (which uses dinamically
> > Scriptaculous) I need some events that should trigger scripts
> > evaluations to be managed in javascript. In the .js libraries I'm
> > developing to help the rest (almost all UI related) of the application
> > I want a javascript object that allow me to add the hooks and their
> > respective actionsScripts to be evaluated that my the Seaside
> > application setup dinamically so I need a collection (#add #remove and
> > such) to make it flexible enough but I did't find Collection in
> > Prototype. Paradoxically I've found a pretty complete iterator (the
> > Enumerable).
>
> >   I've see with Firebug that making
>
> >     initialize(){
> >       mouseOutListeners = new Collection;
> > }
>
> >   gives me an error because Collection is not defined.
>
> >   I'll really appreciate any pointer on this,
>
> >   thanks
>
> > Sebastian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to