ok need help. i looked into this but i can''t figure it out. i am trying to do a simple slide up/down with the same button. i don''t know where or what to do with this code. var folded = new Object(); function slide(el) { if(folded[el] == 1) { Effect.SlideUp(el); folded[el] = 0; } else { Effect.SlideDown(el); folded[el] = 1; } } i don''t like the fact that it doesn''t go up when i want it to. do i have to delete something too. i have the basic script files. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 28.8.2006, at 7.19, itisnot_me wrote:> > ok need help. i looked into this but i can''t figure it out. i am > trying > to do a simple slide up/down with the same button. i don''t know where > or what to do with this code.Why not use Effect.toggle [1]? With it you don''t have to take care of the if block and it''s been proven to work in all supported browsers. //jarkko [1] http://wiki.script.aculo.us/scriptaculous/show/Effect.toggle> > > >-- Jarkko Laine http://jlaine.net http://odesign.fi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
so could you help me with that? what am i supposed to do/ put where --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 29.8.2006, at 2.31, itisnot_me wrote:> > so could you help me with that? what am i supposed to do/ put whereThere''s three demos on the page I pointed you at [1]. Just read the source ;-) <p> <a href="#" onclick="Effect.toggle(''demo-element-blind'',''blind''); return false">Click to toggle w/ blind...</a> <div id="demo-element-blind" style="height:200px;width: 300px;background-color:#ddd"><div> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div></div> </p> //jarkko [1] http://wiki.script.aculo.us/scriptaculous/show/Effect.toggle> > > >-- Jarkko Laine http://jlaine.net http://odesign.fi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---