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

The Archive Base Latest Questions

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

Firstly, this is qtip, a jQuery plugin: http://craigsworks.com/projects/qtip2/ Basically it makes pretty tooltips. I

  • 0

Firstly, this is qtip, a jQuery plugin: http://craigsworks.com/projects/qtip2/ Basically it makes pretty tooltips.

I am using qtip on a mysql database result page, and the qtips work perfectly fine when I first load the page. However, I have sorting links on my page that cause the information inside a div to completely change (uses AJAX to put new info into the div by making a new mysql query that resorts the data and puts it in a table to replace the table on the page). When I click my sorting buttons, everything works except the qtips disappear. I use the qtips on the image captions (the “title”), so when I rollover the images on the sorted table, it’s back to the normal tooltip.

I believe what is wrong is that the $(document).ready means that the qtip stuff will only load on the first page load, therefore when I change the table, all the qtips disappear. I found a topic on the qtip forum that seems to be related to my problem (http://craigsworks.com/projects/forums/thread-solved-reload-qtip-with-new-items) and I tried everything in that topic, and I am on the latest version of qtip so I used on() instead of live() because live() is deprecated. It still didn’t fix it. Here is the code:

<script type="text/javascript">
jQuery(document).ready(function() {
    $('img[title]').on('mouseover', function() { 
        if( typeof( $(this).data('qtip') ) == 'object' ){ return; }
        $(this).qtip({
            content: {
                text: false
            },
            style: 'cream',
            position: {
                viewport: $(window)
            }
        });
        $(this).qtip('show');
    });
});
</script>
  • 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-07T16:01:12+00:00Added an answer on June 7, 2026 at 4:01 pm

    By storing the qTip settings, it will be easy to (re)initilise qTip with the same settings after new content has been loaded.

    Without full sight of your javascript, I can’t be specific but something like this should do it :

    jQuery(document).ready(function() {
        var qtipOptions = {
            content: { text: false },
            style: 'cream',
            position: { viewport: $(window) }
        };
    
        $('img[title]').qTip(qtipOptions);
    
        $("#myButton").on('click', function(){
            $.ajax({
                //...
                //...
                //...
                success(function(html){
                    $("#mySelector").html(html);
                    $('img[title]').qtip('destroy').qtip(qtipOptions);
                })
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly could you view my outcome http://jsfiddle.net/RXnKR/ From this I decided as you click
Firstly, I'm not using rails. This is vanilla ruby application. I've read about packaging
Firstly I used this call jQuery('#grid').jqGrid('editRow',id,true,pickdates); , it worked fine with UI Datepicker integration,
Firstly I am using this for the ListView control itself: ItemsSource={Binding AllEffects} So would
Ok, firstly this is not about forms this is about consistent layout as a
Firstly sorry if this is a common question but I couldn't find anything on
ok so i have code that fundementally has this structure: firstly a main div
Firstly, this is going to sound like homework, but it ain't. Just a problem
Firstly: I am totally a newbie for this kind of work. I have a
Firstly, This might seem like a long question. I don't think it is... 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.