Nope, same error without 'new'. Any other ideas? Thanks.

On May 10, 11:28 pm, kangax <[EMAIL PROTECTED]> wrote:
> Try without 
> `new`http://github.com/madrobby/scriptaculous/wikis/effect-slidedown
>
> - kangax
>
> On May 11, 1:16 am, JustinK101 <[EMAIL PROTECTED]> wrote:
>
> > I don't know what's going on here, I am getting a js error:
> > element.down() has no properties when trying to use
> > Effect.SlideDown(). I am using script.aculo.us version 1.8.1.
>
> > HTML
>
> > <div>( <a href="javascript:show_hide($('forgot_password'));">Forgot
> > Password?</a> )</div>
> > <div id="forgot_password" style="display: none;">** Username /
> > Password Reset Here **</div>
>
> > JavaScript
>
> > function show_hide(element) {
> >         if(element.style.display == "none") {
> >                 new Effect.SlideDown(element, { duration: 1, sync: true });
> >         }
> >         else {
> >                 new Effect.SlideUp(element, { duration: 1, sync: true });
> >         }
>
> > }
>
> > Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to