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 998901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:16:20+00:00 2026-05-16T07:16:20+00:00

I don’t know if it’s a bug or not, but here’s my problem: I

  • 0

I don’t know if it’s a bug or not, but here’s my problem: I filter the jcarousel content using jquery. Everything goes ok until i start to use the next/prev buttons. On the default stage of filtering, buttons are working ok, but after i start to filter the content (images) the jcarousel start to work all crazy. For example, if i have 10 images in default state, showing 3 on stage, after filtering (let’s say i have only 4 now) if i get to the last picture, the next button it’s still enabled and i can scroll another 10-15px area even there is only blank space.

Images that are removed by the filter are going out by fadeOut animation.

I tried to call the jcarousel after every filtering action but i get the same result. In some cases, after i apply the filter, the prev btn. it’s not enabled but i can scroll 100-200px area of blank space.

I tried to solve this issue for the last 3 days but i couldn’t find the right solution.

Sorry for my english and thanks 🙂

Update:

Here’s my code maybe it will help understanding the issue:

$(".anim").jcarousel();
$("#menu ul li").click(function() {
    var flt = $('a', this).attr('rel');
    $('.anim li').each(function() {
        if(!$(this).hasClass(flt)) {
            $(this).fadeOut('normal');
        } else {
            $(this).fadeIn('normal');
            }
        });
    return false;
});

The jCarousel structure (.anim) is:

<ul class="anim">
<li class="flt1"><img ... /></li>
<li class="flt1"><img ... /></li>
<li class="flt1"><img ... /></li>
<li class="flt2"><img ... /></li>
<li class="flt3"><img ... /></li>
</ul>

Where flt1..3 are my filters and the ‘rel’ value of menu links. The filtering works ok.

  • 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-16T07:16:21+00:00Added an answer on May 16, 2026 at 7:16 am

    You need to explicitly tell jCarousel how many items still remain.

    For example, here is an anonymous function that I give to the config of jCarousel

    function(carousel, state) {
    
                    if (state != 'init') return;
    
                    getProperties(function(properties) {
                        $.each(properties, function(i, property) {
                            carousel.add(i + 1, getPropertyHtml(property));
                        });
    
                   carousel.size(properties.length);
    
    
    
                    });
    
                }
    

    Notice how at the end I have to set the size? What you need to do is find a suitable callback in the configuration, and then set the new length of items.

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

Sidebar

Related Questions

Don't know if this is an eclipse specific problem but whenever I declare a
I don't remember whether I was dreaming or not but I seem to recall
I don't know if anyone has seen this issue before but I'm just stumped.
Don't want to sort the entries. using this does not preserve the order as
I don't know if thats right but for some reason my stored procedure is
Don't know why, but sometimes LocationManager is still working also after closing application. I
I don't really have a real world problem, yet, but I'm trying to learn
I don't know when to add to a dataset a tableadapter or a query
I don't want PHP errors to display /html, but I want them to display
I don't expect a straightforward silver bullet answer to this, but what are the

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.