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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:12:00+00:00 2026-06-18T03:12:00+00:00

I need a flexslider in jQuery UI tabs. Here is the link to a

  • 0

I need a flexslider in jQuery UI tabs. Here is the link to a test server. I don’t know how many tabs I have because they are created dynamically with PHP. The problem is that when I fire a flexslider trigger it recognize only images from the first tab. Images in other tabs appear wit width 0 because other tabs are hidden and flexslider can not do it’s math with images. The easy solution would be to use off-left-technique but ui-tabs-hide class is deprecated in jquery-ui-1.9.1 which I am using. Rolling back to 1.8 conflicts with WordPress 3.5.1 which I happen to use too. So the only solution I see is to trigger flexslider on each tab activation. So that’s what I do:

First I trigger flexslider after all libraries and images on page are loaded:

$(window).load(function() {
    $('.flexslider-doors').flexslider({
        animation: "slide",
        animationLoop: false,
        itemWidth: 64,
        itemMargin: 30,
        controlNav: false
    });

});

And then on each tab activation I trigger flexslider again:

jQuery( "#colorTabs" ).tabs({
    activate: function( event, ui ) {
        jQuery('.flexslider-doors').flexslider({
            animation: "slide",
            animationLoop: false,
            itemWidth: 64,
            itemMargin: 30,
            controlNav: false
        });
    }
});

The problem is that it works only the first time I switch tabs. Second time images do not appear. And the interesting thing is that if I for example go to another website or open Photoshop or something else and then come back images on broken tab are at their place and slider works as expected. Switch to another tab – no images. Do same thing with going to another website – everything fixed. I’m stuck =(

http://print-copy74.ru/test/catalog/line-5000/

  • 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-06-18T03:12:01+00:00Added an answer on June 18, 2026 at 3:12 am

    Finally fixed this issue. Not sure where the problem was but that’s what i did:
    First i fire jquery ui tabs as usual:

    jQuery( "#colorTabs" ).tabs();
    

    Then i fire the flexslider only on first tab so when page loads slider works as charm:

    jQuery('#tabs-1 .flexslider-doors').flexslider({
        animation: "slide",
        animationLoop: false,
        itemWidth: 64,
        itemMargin: 30,
        controlNav: false
    });
    

    Magic begins after that:

    jQuery('#colorTabs').bind('tabsshow', function(event, ui) {
        var index = ui.index +1;
        var tab = "#tabs-" + index + " .flexslider-doors";
        if ( index > 1 ) { 
            jQuery( tab ).flexslider({
                animation: "slide",
                animationLoop: false,
                itemWidth: 64,
                itemMargin: 30,
                controlNav: false
            });
        }
    });
    

    On each tab change i get the tab index, add 1, so the first tab is 1 and not 0, then i construct the string that contains tab id and flexslider class, and finally i fire flexslider only on current tab. That’s it =)

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

Sidebar

Related Questions

i have some problem with my jquery. I need to remove first two elements
Need a GUI with many tabs (TabBarController and UITabBar) and one fullscreen view, e.g.
Need some regular expressions help. So far I have my code working to allow
Need some help... I have jasperserver 4.1 installed on my ubuntu. It runs via
Need help with a query that I wrote: I have three tables Company id
Need a list of Pcap.Net members or classes? Their website doesn't have much documentation
I have integrated flexslider in my wordpress theme, <div id=home-slider class=flexslider> <div class=shadow-top></div> <ul
Need to add class dynamically (by jQuery) <ul> <li class=green>Green</li> <li class=red>red</li> <li class=black>black</li>
I have created a loop that templates my data and then appends it into
Need a little help with string formatting... I have a string like this: Bmw

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.