I have my divs fading and appearing.. BUT!! they all fade the first time even if they are checked.. guess that is because im using toggle.. <%= f.check_box :monday, :onclick => visual_effect(:toggle_appear, ''mondaydiv'') %> so I would guess that I have to write some RJS to fade all the div''s if the associated checkboxs is unchecked when the page first loads. anyone either point me to a doc that explains this or tell me a better way of doing this!! thanks!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Or you could just hide the divs that should be hidden by specifying style=''display:none'' on them... <div id=''should_be_hidden'' <%= "style:''display:none''" if record.field =false %>> On Jan 8, 2008 11:27 AM, spokra <spokra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I have my divs fading and appearing.. BUT!! they all fade the first > time even if they are checked.. guess that is because im using > toggle.. > > <%= f.check_box :monday, :onclick => visual_effect(:toggle_appear, > ''mondaydiv'') %> > > so I would guess that I have to write some RJS to fade all the div''s > if the associated checkboxs is unchecked when the page first loads. > > anyone either point me to a doc that explains this or tell me a better > way of doing this!! > > thanks!! > > > >-- 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 -~----------~----~----~----~------~----~------~--~---
I follow what your saying... BUT :> remember I''m a newbie... in my case would that be monday.field == false? how do i refer to which checkbox i want to use? On Jan 7, 4:59 pm, "Ryan Bigg" <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Or you could just hide the divs that should be hidden by specifying > style=''display:none'' on them... > > <div id=''should_be_hidden'' <%= "style:''display:none''" if record.field => false %>> > > On Jan 8, 2008 11:27 AM, spokra <spo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > I have my divs fading and appearing.. BUT!! they all fade the first > > time even if they are checked.. guess that is because im using > > toggle.. > > > <%= f.check_box :monday, :onclick => visual_effect(:toggle_appear, > > ''mondaydiv'') %> > > > so I would guess that I have to write some RJS to fade all the div''s > > if the associated checkboxs is unchecked when the page first loads. > > > anyone either point me to a doc that explains this or tell me a better > > way of doing this!! > > > thanks!! > > -- > Ryan Bigghttp://www.frozenplague.net > Feel free to add me to MSN and/or GTalk as this email.- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No, I''m guessnig your form''s checkboxes are checked/uncheked depending on a boolean variable somewhere. So use this variable to determine the visible/invisible state of your divs. On Jan 8, 2008 11:41 AM, spokra <spokra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I follow what your saying... BUT :> remember I''m a newbie... > > in my case would that be monday.field == false? > > how do i refer to which checkbox i want to use? > > > On Jan 7, 4:59pm, "Ryan Bigg" <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Or you could just hide the divs that should be hidden by specifying > > style=''display:none'' on them... > > > > <div id=''should_be_hidden'' <%= "style:''display:none''" if record.field => > false %>> > > > > On Jan 8, 2008 11:27 AM, spokra <spo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > > > > > I have my divs fading and appearing.. BUT!! they all fade the first > > > time even if they are checked.. guess that is because im using > > > toggle.. > > > > > <%= f.check_box :monday, :onclick => visual_effect(:toggle_appear, > > > ''mondaydiv'') %> > > > > > so I would guess that I have to write some RJS to fade all the div''s > > > if the associated checkboxs is unchecked when the page first loads. > > > > > anyone either point me to a doc that explains this or tell me a better > > > way of doing this!! > > > > > thanks!! > > > > -- > > Ryan Bigghttp://www.frozenplague.net > > Feel free to add me to MSN and/or GTalk as this email.- Hide quoted text > - > > > > - Show quoted text - > > >-- 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 -~----------~----~----~----~------~----~------~--~---