Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Bootstrap Static Popovers

  • This topic is empty.
Viewing 15 posts - 16 through 30 (of 30 total)
  • Author
    Posts
  • #120816
    DesignLady94
    Member

    on this page. See the static popover examples at http://twitter.github.com/bootstrap/javascript.html#popovers.

    #120817
    DesignLady94
    Member

    I want to replace the paragraphs on the refer.php page with popovers containing the contact. Then I would list the cite reference below.

    #120818
    DesignLady94
    Member

    Actually no, I would include the reference as the popover title.

    #120819
    TheDoc
    Member

    I mean on this page: http://www.debbierking.com/bootstrap/refer.php

    Where do you have the attempted popovers?

    #120820
    TheDoc
    Member

    Hmmmmm. Basically I’m trying to figure out where you’re attempted code is.

    #120821
    DesignLady94
    Member

    Right under the Testimonials title.

    #120822
    TheDoc
    Member

    All I see are paragraphs and links.

    Have you:

    a) included the necessary Bootstrap JS/CSS
    b) updated your markup with the code shown on the Bootstrap example page

    All I see is this: http://cl.ly/image/2w0e0e1X1K0V

    So I don’t know where your popover is supposed to occur.

    #120824
    DesignLady94
    Member

    That’s right…I don’t know why the popover isn’t displaying. I have used the code that I pasted above. I did include the bootstrap.css file…I don’t think I need any other css bootstrap files, as I didn’t need one for the accordion function.

    Can you view my source code on the refer.php page? You will see the popover code there…it should be showing up right under the header on the left-hand side of the page.

    #120825
    DesignLady94
    Member

    If we can’t figure this out soon I think I’m going to give up on the popovers…they are not necessary…just would look nice. I’d rather concentrate more on why the internal link isn’t working in Firefox.

    #120826
    TheDoc
    Member

    Oohhhh. Are you supposed to hover over the ‘Testimonials’ title and see it?

    #120827
    DesignLady94
    Member

    No…maybe I am misunderstanding how this works….I *thought* from the example of static popovers on the Bootstrap page that they were just supposed to display with no clicking or anything. But nothing is showing up…I have been going round on this for a couple of days now.

    #120828
    TheDoc
    Member

    Ooohhhh. They are meant to be initialized by something with JS.

    Yours isn’t showing because it’s set to `display: none;`. Having said that, you *shouldn’t* actually be writing any markup as it’s all done with the data attributes.

    So what you *could* do, using the ‘Testimonials’ title as our reference, is this:

    Testimonials

    JS:

    $(‘.your-toggle’).popover(‘show’);

    #120829
    TheDoc
    Member

    I just tried the above on your site using Inspector and it worked perfectly.

    #120830
    DesignLady94
    Member

    I see…it’s showing up now (I thought the ‘show’ option was for clicking on a button to display the popover.

    I am now trying to figure out how to bring the title into the popover.

    I am noticing that when I add the popover for the second reference it replaces the first….I think I’m going to give up on this…thanks for trying to help me out though!

    #120831
    DesignLady94
    Member

    Am going with straight CSS to create the bubble. Thanks again Doc!

Viewing 15 posts - 16 through 30 (of 30 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.