Hello, I can''t seem get to work the newly inctroduced EventSelectors of protoype. I downloaded the latest release via SVN. And included both prototype and scriptaculous. This is a short extract of my test: <body> <div id="footer">This is a footer</div> <script type="text/javascript"> var Rules = { ''#footer:loaded'': function(element) { Element.setStyle(''footer'', {backgroundColor:''red''}); } } EventSelectors.start(Rules); </script> </body> But the error message is always : EventSelectors is not defined. What am I doing wrong?? TIA, Alex _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
On 4/5/06, Alexander Rebholz <a.rebholz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I can''t seem get to work the newly inctroduced EventSelectors of protoype. > I downloaded the latest release via SVN. And included both prototype > and scriptaculous.I don''t see any EventSelectors code in prototype or script.aculo.us. todd@silver:~/repos/spinoffs$ ls prototype scriptaculous todd@silver:~/repos/spinoffs$ svn update At revision 4168. todd@silver:~/repos/spinoffs$ find ./ -name ''*'' -type f | xargs grep -i ''eventselect'' todd@silver:~/repos/spinoffs$ nada Todd
Maybe you can find some help here: http://encytemedia.com/event-selectors/ http://encytemedia.com/blog/articles/2006/03/27/prototype-gets-attribute-selectors On 4/5/06, Todd Ross <rails-spinoffs-25kFIyuv2iRiLUuM0BA3LQ@public.gmane.org> wrote:> > On 4/5/06, Alexander Rebholz <a.rebholz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I can''t seem get to work the newly inctroduced EventSelectors of > protoype. > > I downloaded the latest release via SVN. And included both prototype > > and scriptaculous. > > I don''t see any EventSelectors code in prototype or script.aculo.us. > > todd@silver:~/repos/spinoffs$ ls > prototype scriptaculous > todd@silver:~/repos/spinoffs$ svn update > At revision 4168. > todd@silver:~/repos/spinoffs$ find ./ -name ''*'' -type f | xargs grep > -i ''eventselect'' > todd@silver:~/repos/spinoffs$ > > nada > > Todd > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
@Steve No unfortunately not. I already knew these links. Anyway thanks. I guess Todd is right. EventSelectors don''t seem to be in the code anymore. 2006/4/5, Steve Longdo <steve.longdo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Maybe you can find some help here: > > http://encytemedia.com/event-selectors/ > > > http://encytemedia.com/blog/articles/2006/03/27/prototype-gets-attribute-selectors > > > On 4/5/06, Todd Ross < rails-spinoffs-25kFIyuv2iRiLUuM0BA3LQ@public.gmane.org> wrote: > > > > On 4/5/06, Alexander Rebholz < a.rebholz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I can''t seem get to work the newly inctroduced EventSelectors of > > protoype. > > > I downloaded the latest release via SVN. And included both prototype > > > and scriptaculous. > > > > I don''t see any EventSelectors code in prototype or script.aculo.us. > > > > todd@silver:~/repos/spinoffs$ ls > > prototype scriptaculous > > todd@silver:~/repos/spinoffs$ svn update > > At revision 4168. > > todd@silver:~/repos/spinoffs$ find ./ -name ''*'' -type f | xargs grep > > -i ''eventselect'' > > todd@silver:~/repos/spinoffs$ > > > > nada > > > > Todd > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Alexander... you''re missing a very big thing... EventSelectors is a 3rd party thing... a plugin so-to-speak. It was never a part of prototype or scriptaculous. So what you need to do is get that library (from the links in that previous post) and make sure you are including it in your project. The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Doh!!!!! How could I have overseen that big, big download link??? I thought it is part of the new prototype version. How embarrasing!!! *flush* Thank you for the clarification Ryan! Alex 2006/4/5, Ryan Gahl <Ryan.Gahl-nlycWCgr5/vuufBYgWm87A@public.gmane.org>:> > Alexander… you''re missing a very big thing… EventSelectors is a 3rd party > thing… a plugin so-to-speak. It was never a part of prototype or > scriptaculous. So what you need to do is get that library (from the links in > that previous post) and make sure you are including it in your project. > > > > The information transmitted in this electronic mail is intended only for > the person or entity to which it is addressed and may contain confidential, > proprietary, and/or privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in reliance upon, > this information by persons or entities other than the intended recipient is > prohibited. If you received this in error, please contact the sender and > delete the material from all computers. > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Lol, no problem. We all have those moments. The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs