471,858 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,858 software developers and data experts.

help with slider effect in scriptaculous making a list drop down

hi

i have a page which contains an visible nav down the left-hand side.
when you click a button it needs to appear. i thought it would be cool
to use scriptaculous to make it slide down. can anyone give me an
example code for this?

thanks

marc

May 24 '07 #1
3 3835
On May 24, 9:30 pm, libsfan01 <mcyi2...@googlemail.comwrote:
hi

i have a page which contains an visible nav down the left-hand side.
when you click a button it needs to appear. i thought it would be cool
to use scriptaculous to make it slide down. can anyone give me an
example code for this?
The place to ask for help about Scriptaculous.js is on the Ruby on
Rails spinoffs list:

<URL: http://groups.google.com.au/group/ru...s?lnk=li&hl=en
>
Incidentally, you can do it with jQuery with a single line and about
1/6th the amount of supporting script than Prototype.js +
Scriptaculous:

$('#id').slideDown();

<URL: http://docs.jquery.com/Effects >
--
Rob

May 24 '07 #2
The place to ask for help about Scriptaculous.js is on the Ruby on
Rails spinoffs list:

Who decided that? it never used to be

May 24 '07 #3
RobG wrote:
Incidentally, you can do it with jQuery with a single line and about
1/6th the amount of supporting script than Prototype.js +
Scriptaculous:

$('#id').slideDown();

<URL: http://docs.jquery.com/Effects >
You know, I wondered something recently. Have you ever actually
profiled something as simple as that call?

In Firebug, I get 231 (253 executed within my wrapper) calls.

For slideUp, I get 136 (158 executed within my wrapper) calls.

Granted, it only takes 20.x milliseconds to execute (even less for
slideUp), testament to jQuery's efficiency.

I wonder why so very many calls are required? Especially for so small
an example... for example. ;)

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 25 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by nephish | last post: by
1 post views Thread by dlarsson | last post: by
6 posts views Thread by cmgmyr | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.