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 [email protected]
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