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

  • Home
  • SEARCH
  • 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 8188765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:01:46+00:00 2026-06-07T03:01:46+00:00

I have content below jQuery tabs which is sliding up and down with the

  • 0

I have content below jQuery tabs which is sliding up and down with the tabs. The tabs are collapsible and the content is also sliding up when a tab is closing. But when I am switching between tabs, the content also moves up and down when it should stay in place. I tried to solve this problem with the event handlers, but as you can see here http://jsfiddle.net/eqUVm/5/ , the problem still exists.

Does anyone know a possible solution for my problem?

Edit: I forgot something essential: the content (the map) needs an absolute position otherwise it is not shown. Link updated

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

    See http://jsfiddle.net/kXS4g/4/

    I’m animating only when the tab is de-selected. There’s apparently no deselect event in jQuery ui, so I check for selection by counting the ‘ui-tabs-selected’ elements (should be zero). Unfortunately, this css class isn’t removed until after the select callback is done so the hackish approach I chose to use was setTimeout to delay the function call.


    You might also want to tweak the timing on that setTimeout. I fiddled around with it a bit and it was slightly unreliable if you clicked rapidly or the computer hung. Anything under 20ms will be imperceptible.

    Another trick – you can use stop(false,false) to prevent double animation of rapid switching – the animation will attempt to continue from where it left of. Meaning, if you open the tab and halfway through the animation you decide to close it the animation will immediately cycle backwards instead of queuing.

    Consider investigating a more formal way of detecting that deselection if you come across issues with that setTimeout(..., 20). I just wanted to get it working for you.

    Finally, I used console.log to get a sense of when events where firing. My expectation that select is fired only when you select tabs was false, as was the assumption about when css classes are added/removed. Breakpoints would have worked equally well (readily available in Firebug or Chrome). Sometimes the manual doesn’t get into these details.

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

Sidebar

Related Questions

I have a string which has the below content String msg = The variables
I have the below xpath expression //div[@class=post-content]//img which runs on a html page, scanning
Looking for a jQuery ninja's assistance. My jQuery below works but I have a
I have a php file as given below. The page generates html content which
Using jQuery UI , I have a tabs plugin and within tab 1 gets
Currently I have the below jQuery which uses the colorbox plugin http://colorpowered.com/colorbox/ $(document).ready(function(){ $(.altbgcolor).hover(function()
I'm using the ui-tabs of jQuery. If I open a tab which was closed
I have the following jquery code that allows me to use tabs, to tab
I have been trying to manipulate content that is loaded into jQuery UI tabs
I am using jQuery UI Tabs with Ajax. We have content in the tabs

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.