473,372 Members | 1,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 3907
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: nephish | last post by:
Hey there, i am trying to write an online application using the cgi module. what i want to do is have an html form display a drop-down list and have the values of that list be the lines of text...
1
by: dlarsson | last post by:
Music CD experts: So, here's my problem. I burned (or tried to burn) my first audio or music CD on my computer using Windows Media Player. I "Rip-ed" the tracks from a source CD and...
0
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers......
1
by: Israel | last post by:
The problem: I want to know, definitively when a slider loses focus after a user has started sliding and hasn't released the mouse yet. It appears that this is captured with the WM_ACTIVATEAPP...
2
by: darrel | last post by:
I've been working on a side project off and on (more off than on) for a year or so. Overtime, it's become a bit of a frankenstein. It uses the Scriptaculous javascript library for a lot of...
2
by: AndrewC | last post by:
I am using the Scriptaculous/Prototype libraries to build a project and I really want to have an effect like the mootools download page (http://www.mootools.net/download) where when you mouse over...
6
by: cmgmyr | last post by:
Hello, I'm trying to figure out how to disable a slider through the onChange function. Here is what I have so far: new Control.Slider('handle','slider', { axis:'horizontal', sliderValue: 1,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.