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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:47:03+00:00 2026-06-15T12:47:03+00:00

I am using twitter-bootstrap and popovers. I am facing the following problem: when the

  • 0

I am using twitter-bootstrap and popovers.

I am facing the following problem: when the user clicks on a link that opens a popover at the bottom of the page, it scrolls all the way to top of the page first. This requires the user to scroll back down to see the popover open. In the demos on the twitter-bootstrap site, I don’t see this and was wondering if I could get help on this issue.

<div class="span1" style=" width: 60px; ">
    <a href="#" class="example2" rel="popover" data-html="true" data-placement="left" data-content="&lt;a href = '/social/2lPdXV1KO4s/Bhangra indian Jingle Bells balle balle Merry Christmas'&gt;&lt;img src='http://i4.ytimg.com/vi/2lPdXV1KO4s/hqdefault.jpg'&gt;&lt;/a&gt;" data-original-title="Bhangra indian Jingle Bells balle balle Merry Christmas">
        <img src="http://graph.facebook.com/1236870349/picture">
    </a>

    <div class="popover fade left in" style="top: 831px; left: 805.61669921875px; display: block;">
    <div class="arrow"></div>
    <div class="popover-inner">
        <h3 class="popover-title">Bhangra indian Jingle Bells balle balle Merry Christmas</h3>
        <div class="popover-content">
            <p><a href="/social/2lPdXV1KO4s/Bhangra indian Jingle Bells balle balle Merry Christmas"><img src="http://i4.ytimg.com/vi/2lPdXV1KO4s/hqdefault.jpg"></a></p>
        </div>
    </div>
</div>
  • 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-15T12:47:05+00:00Added an answer on June 15, 2026 at 12:47 pm

    It seem like you now have to prevent the default behavior of the link because they added the option to popup the popover on hover/focus. Right now the link will activate and since the href is pointing to “#” it will bring you to the top of the page. Before in older versions, it used to prevent this default automatically.

    Your javascript code should look something like this:

    <script>
    $("a[rel=popover]")
        .popover()
        .click(function(e) {
            e.preventDefault();
         });
     </script> 
    

    With html like this

    <a href="#" 
       class="btn btn-large btn-danger" 
       rel="popover" 
       data-content="And here's some amazing content. It's very engaging. right?" 
       data-original-title="A Title">
         Click to toggle popover
     </a>
    

    Here is a working JSfiddle. http://jsfiddle.net/hajpoj/KPU47/7/

    Edit: Alternatively you could use a div instead of a anchor tag and not have to do the whole prevent default thing.

    <div 
       class="btn btn-large btn-danger popover-link"
       data-content="And here's some amazing content. It's very engaging. right?"
       data-original-title="A Title">Click to toggle popover
    </div>​
    
    <script>
        $(".popover-link").popover();
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to achieve the following using Twitter Bootstrap 2.0 and it's popover-plugin, but
I'm using Twitter Bootstrap for my wordpress site. The problem is that I just
I have developed one page in my site using twitter bootstrap. In that I
I want to show some html in popover using http://twitter.github.com/bootstrap/javascript.html#popovers . How compatible is
I'm currently using popovers with Twitter Bootstrap, initiated like this: $('.popup-marker').popover({ html: true, trigger:
I'm using the popover object from Twitter's Bootstrap library in manual mode and I
I am using Twitter Bootstrap, (CSS and JS). The problem comes from the Modal
I developed a site using twitter bootstrap and it seems that the responsive layout
While creating a website using Twitter Bootstrap's carousel, it seems that some scripts are
Hi I have a basic devise signup form using twitter bootstrap that I am

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.