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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:01:37+00:00 2026-06-17T09:01:37+00:00

I am using twiiter-bootstrap’s tooltip and I want to fire an ajax request, or

  • 0

I am using twiiter-bootstrap’s tooltip and I want to fire an ajax request, or lets say an alert box when the tooltip closes. The jquery code is :

$(document).ready(function(){
        $('#explore').tooltip({
                content : "hi there",
                placement : 'bottom',
    });
});

I have also tried other plugins like jquery’s tooltip and craigworks’s qtip but I cant figure out a way to fire a callback when a tooltip is closed.

Even if tooltip cant support this, can I use something else like bootstrap’s popover or some other workaround?

What I am trying to achieve is this:
I have a div with a button in it. If a user clicks that button, a small dialog appears next to the button that asks for some other information. The user can
(1)either ignore it and click anywhere else on the screen to close the dialog
(2) close the dialog by clicking on the ‘close’ button
(3) submit the answer to the question to close the dialog

In all the 3 cases, I want the div to be replaced by a another ajax-fetched content.
If tooltip had a callback, that would have been nice.

  • 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-17T09:01:38+00:00Added an answer on June 17, 2026 at 9:01 am

    I was able to resolve this using Craig’s qtip using the events property of the plugin :

    $(document).ready(function(){
        $('.overlay-seen-it').qtip({
            overwrite: false,
            content: {
            text: "Hi there"
            },
            show: {
            event: 'click',
            solo: true
            },
            hide:{
            event: 'unfocus'
            },
            events:{
                hide: function(event, api){
                var movie=api.elements.target.closest('.movie');
                    movie.fadeOut(500, function(){
                        $.get('reco_product_stream.jsp?type=replace', function(data) {
                            var $a = $(data).find('a'); 
                            movie.children('a').replaceWith($a);
                            movie.fadeIn(500);
                        });             
                    });                     
                }
            }
        });
    });
    

    Any function listed in events:hide property fires when the qtip closes. Resolved by Craig here.

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

Sidebar

Related Questions

i'm using twitter bootstrap 2.0.4. i want to populate the dropdown using ajax. the
I'm using twitter bootstrap. I want modal to be shown by clicking on a
I am using Twitter bootstrap, for an image gallery : <ul class=listing> <li class=listing-box
I'm using Twitter Bootstrap for my page layout and I want to insert a
I'm using Twitter Bootstrap modale to show a form loaded by ajax. I click
I am using twitter bootstrap rails with jQuery 1.7 When I load my project
I am using Twitter Bootstrap's Javascript radio toggle buttons and want to get form
I am using Twitter Bootstrap and I want to use an auto-suggest which is
I'm using Twitter bootstrap tooltips with javascript like the following: $('a[rel=tooltip]').tooltip(); My markup looks
How to use custom variables when using twitter-bootstrap-rails gem? I want to change the

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.