was $$ utility method available in version 1.4.0? if not, then how would i do something like this without the $$ function? $$(''.search'').invoke(''toggle''); unfortunately, my provider used version 1.4.0 and i have no control over the version. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Jeez! I beleive 1.4 is almost 2 years old - I suggest printing out those 10+ pages of change-log since 1.4 and showing them to your provider. If you have no choice, document.getElementsByClassName(''search'').each(Element.toggle) should do the trick If Element.toggle is not available, try: .each(function(element){ Element[element.style.display == ''none'' ? ''show'' : ''hide''](element) }) Best, kangax --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
yea i thought it was quite old - i have an email in to the provider but no response yet. hopefully i can get them to upgrade - but in the meantime i will try out your code suggestion - thanks for the reply On Dec 4, 11:34 pm, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Jeez! > > I beleive 1.4 is almost 2 years old - I suggest printing out those 10+ > pages of change-log since 1.4 and showing them to your provider. > > If you have no choice, > document.getElementsByClassName(''search'').each(Element.toggle) > should do the trick > > If Element.toggle is not available, try: > .each(function(element){ Element[element.style.display == ''none'' ? > ''show'' : ''hide''](element) }) > > Best, > kangax--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
bdee1 a écrit :> yea i thought it was quite old - i have an email in to the provider > but no response yet. hopefully i can get them to upgrade - but in the > meantime i will try out your code suggestion - thanks for the replyI''m not sure I understand how you''re dependent on anyone to get the latest Prototype: it''s just about having the proper JS file in your site tree, and I would assume you have FTP access to your tree, don''t you? -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---