Hey,

RTFM -- 2 Things:

a) you need to add a wrapper div inside your forgot_password div (see  
Notes on
http://github.com/madrobby/scriptaculous/wikis/effect-slidedown)

b) You want queue: 'end' instead of sync: true.
The sync option is only for use with Effect.Parallel, as detailed on 
http://github.com/madrobby/scriptaculous/wikis/core-effects

Best,
Thomas

On 12.05.2008, at 00:12, JustinK101 wrote:

>
> 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