I''m looking at this changeset http://dev.rubyonrails.org/changeset/5057 and I''m running edge revision 5196 so I''m assuming multiple id''s on element.hide would work. I''m getting parse errors though ("Toggle Info", :after => "Element.hide("basic","intermediate")") -- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Multiple ids do not work with the latest prototype anymore. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/22/06, krunk- <krunk7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Multiple ids do not work with the latest prototype anymore.So what is on the Scriptaculous site about multiple id''s is no longer valid ? Weird. Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Also, right now I''ve created 5 divs , each one with STYLE="display: none;" Then I have 5 seperate link_to_remotes with :after => Element.show (''somediv'') However , what I can''t seem to figure out is what one element is showing and another is clicked then 2 divs are showing. I would like 1 div at a time, where the first one goes away when the second is clicked ? Is there a way to do this ? Stuart On 11/22/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On 11/22/06, krunk- <krunk7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Multiple ids do not work with the latest prototype anymore. > > > > So what is on the Scriptaculous site about multiple id''s is no longer > valid ? > Weird. > > Stuart > > > >-- http://en.wikipedia.org/wiki/Dark_ambient --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/22/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Also, right now I''ve created 5 divs , each one with STYLE="display: none;" > Then I have 5 seperate link_to_remotes with :after => > Element.show(''somediv'') > However , what I can''t seem to figure out is what one element is showing and > another is clicked > then 2 divs are showing. > I would like 1 div at a time, where the first one goes away when the second > is clicked ? > Is there a way to do this ?You can Element.hide each of 5 divs before Element.show''ing the next one. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/22/06, Maxim Kulkin <maxim.kulkin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 11/22/06, Dark Ambient <sambient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Also, right now I''ve created 5 divs , each one with STYLE="display: > none;" > > Then I have 5 seperate link_to_remotes with :after => > > Element.show(''somediv'') > > However , what I can''t seem to figure out is what one element is showing > and > > another is clicked > > then 2 divs are showing. > > I would like 1 div at a time, where the first one goes away when the > second > > is clicked ? > > Is there a way to do this ? > You can Element.hide each of 5 divs before Element.show''ing the next one.Okay, that encouraging, and how would I do this ? Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 23 November 2006 05:46, Dark Ambient wrote:> > You can Element.hide each of 5 divs before Element.show''ing the next one. > Okay, that encouraging, and how would I do this ?Element.hide(''div1''); Element.hide(''div2''); Element.hide(''div3''); Element.hide(''div4''); Element.hide(''div5''); Element.show(''div3''); or equal in RJS: [''div1'', ''div2'', ''div3'', ''div4'', ''div5''].each do |element_id page.hide element_id end page.show @next_element_id --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11/23/06, Maxim Kulkin <maxim.kulkin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 23 November 2006 05:46, Dark Ambient wrote: > > > You can Element.hide each of 5 divs before Element.show''ing the next > one. > > Okay, that encouraging, and how would I do this ? > Element.hide(''div1''); > Element.hide(''div2''); > Element.hide(''div3''); > Element.hide(''div4''); > Element.hide(''div5''); > Element.show(''div3'');Using the above - <%= link_to_remote ("Basic Info", Element.hide (''canbckground''); Element.hide (''canposition''); Element.hide(''canskill''); Element.show(''basicinfo'');%></li> Getting this error: SyntaxError in Candidates#show Showing *app/views/candidates/show.rhtml* where line *#3* raised: compile error ./script/../config/../app/views/candidates/show.rhtml:3: parse error, unexpected '';'', expecting '')'' I tried a few different ways of writing it. Any right way ? TIA Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---