Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3806180
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:47:40+00:00 2026-05-19T14:47:40+00:00

Recently I was developing a custom jQuery-based content slider, which unlike most other sliders

  • 0

Recently I was developing a custom jQuery-based content slider, which unlike most other sliders wouldn’t display multiple pictures flying by while transitioning between two items that are not adjacent to each other. It worked just fine, except that clicking on multiple selectors while the animation isn’t yet completed screws everything up. I decided to implement a queueing mechanism that would delay the animations start until the other animation has finished. However, more problems awaited me. For some odd reason the queued function is called five times instead of one upon the dequeueuing. You can see this in action here : http://jsfiddle.net/QLLKt/embedded/result/. Click on any slide selector while animation is active. You should now see that the time on which the function was queued is being displayed five times even though it is supposed to be displayed only once.

My question is: why it behaves like this and is there any cure for it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:47:41+00:00Added an answer on May 19, 2026 at 2:47 pm

    Turns out that the root of the problem was lying in these lines of code:

     $('.selector').queue('queue', function () {
                        var d = new Date();
                        $('#result').append("<br/>" + "Queued at "+ d.getTime());
    

    The query on “selector” class returns six elements. Therefore it puts a single function on the queue of eache elements, which leads to the function being called six times.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently started developing a portfolio website which I would like to link to
I've recently started developing my first serious application which uses a SQL database, and
I've had the thrill recently of developing web service applications. Most of my experience
I'm developing an application based on RCP. Recently, I have moved it to RAP.
My company has recently started developing custom iPhone applications for various clients. One of
Recently i was developing a custom control in Silverlight, I created custom dependency property
I was recently developing an android application where I wanted to display kannada text
I have recently been developing a website which relies a large part on the
Recently we've been developing some sort of a web based IM application and I
I have recently encountered a problem while developing a page with multiple TinyMCEs. <textarea

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.