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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:23:03+00:00 2026-06-09T11:23:03+00:00

I have a simple Bootstrap modal setup, and in the modal I have content

  • 0

I have a simple Bootstrap modal setup, and in the modal I have content with a nav and scrollspy set up. However, it isn’t working. I see it gets activated, but the nav is never updated.

The full source is too long for here and you wouldn’t be able to see the effect I am getting, so I have set up a jsfiddle

I am using the data-spy="scroll" method to enable it. What have I done wrong? Why isn’t the nav being update with your position?

  • 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-09T11:23:04+00:00Added an answer on June 9, 2026 at 11:23 am

    Hey I think there are two issues here:

    (1) putting scrollspy on something other than the body causes problem. Check out this:

    In Twitter Bootstrap's ScrollSpy, where exactly can I put data-spy="scroll"?

    basically if you add:

    #area-to-watch {
        height: 200px;
        overflow: auto; 
    }
    

    it will you allow you to scrollspy to “spy” on something other than the body.
    http://jsfiddle.net/hajpoj/SZYKM/
    This a modified version of your jsfiddle

    (2) Putting scrollspy into a model causes more problems. If you put the above into a model, it kind of freaks out.
    I’m not positive but I think you need to do something like

    .scrollspy('refresh')
    

    stated in the docs http://twitter.github.com/bootstrap/javascript.html#scrollspy

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

Sidebar

Related Questions

I have a very simple setup... A route is setup that calls a modal
I have started using Simple-form and Bootstrap and I have tried to follow this
I want to have a simple HTML file act as a bootstrap for a
I have a verry simple style.less file in my project, and i'm using bootstrap
I have simple php validation form that is halfway working. If you leave the
I have something pretty simple I want to do. I'm still working through all
I am trying to get a simple bootstrap's modal sample to work, I follow
I have a very simple JavaScript operation which is just not working. I'm using
I am working on a really simple app that is styled using twitter-bootstrap-rails. One
I have simple table in Sybase -- Creating table 'SimpleText' CREATE TABLE [dbo].[SimpleText] (

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.