what am i doing WRONG!!!!!! <%= f.check_box :monday, :on_click => visual_effect(''toggle'', ''mondaydiv'', ''blind'') %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It''s :onclick, not :on_click. On Jan 8, 2008 8:01 AM, spokra <spokra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > what am i doing WRONG!!!!!! > > <%= f.check_box :monday, :on_click => visual_effect(''toggle'', > ''mondaydiv'', ''blind'') %> > > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
still doesn;t work.. are The " screwing it up? this is what I have and gets renedered <%= f.check_box :monday, :onclick => visual_effect(:toggle, :mondaydiv, ''blind'') %> <input checked="checked" id="avaliblity_monday" name="avaliblity[monday]" onclick="new Effect.Toggle("mondaydiv",{blind:});" type="checkbox" value="1" /> On Jan 7, 2008 2:37 PM, Ryan Bigg <radarlistener-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It''s :onclick, not :on_click. > > > On Jan 8, 2008 8:01 AM, spokra <spokra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > what am i doing WRONG!!!!!! > > > > <%= f.check_box :monday, :on_click => visual_effect(''toggle'', > > ''mondaydiv'', ''blind'') %> > > > > http://www.frozenplague.net > > Feel free to add me to MSN and/or GTalk as this email. > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
figured it out... <%= f.check_box :monday, :onclick => visual_effect(:toggle_appear, ''mondaydiv'') %> On Jan 7, 2008 2:52 PM, Gumby <spokra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> still doesn;t work.. are The " screwing it up? > > this is what I have and gets renedered > > > > <%= f.check_box :monday, :onclick => visual_effect(:toggle, > :mondaydiv, ''blind'') %> > > > <input checked="checked" id="avaliblity_monday" > name="avaliblity[monday]" onclick="new > Effect.Toggle("mondaydiv",{blind:});" type="checkbox" > value="1" /> > > > On Jan 7, 2008 2:37 PM, Ryan Bigg <radarlistener-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > It''s :onclick, not :on_click. > > > > > > On Jan 8, 2008 8:01 AM, spokra <spokra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > what am i doing WRONG!!!!!! > > > > > > <%= f.check_box :monday, :on_click => visual_effect(''toggle'', > > > ''mondaydiv'', ''blind'') %> > > > > > > http://www.frozenplague.net > > > Feel free to add me to MSN and/or GTalk as this email. > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is there a way to set the initial state? i.e. toggle off vs toggle on? (I looked at the options - can''t find anything useful). thanks. On Jan 7, 3:37 pm, Gumby <spo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> figured it out... > > <%= f.check_box :monday, :onclick =>visual_effect(:toggle_appear, > ''mondaydiv'') %> > > On Jan 7, 2008 2:52 PM, Gumby <spo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > still doesn;t work.. are The " screwing it up? > > > this is what I have and gets renedered > > > <%= f.check_box :monday, :onclick =>visual_effect(:toggle, > > :mondaydiv, ''blind'') %> > > > <input checked="checked" id="avaliblity_monday" > > name="avaliblity[monday]" onclick="new > > Effect.Toggle("mondaydiv",{blind:});" type="checkbox" > > value="1" /> > > > On Jan 7, 2008 2:37 PM, Ryan Bigg <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > It''s :onclick, not :on_click. > > > > On Jan 8, 2008 8:01 AM, spokra <spo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > what am i doing WRONG!!!!!! > > > > > <%= f.check_box :monday, :on_click =>visual_effect(''toggle'', > > > > ''mondaydiv'', ''blind'') %> > > > > >http://www.frozenplague.net > > > > Feel free to add me to MSN and/or GTalk as this email.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Just use visual_effect(:toggle) instead. Set the style on the element to show by default if that''s what you want. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---