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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:43:13+00:00 2026-06-05T01:43:13+00:00

I am using jquery so that when an image is hovered over, a popup

  • 0

I am using jquery so that when an image is hovered over, a popup div appears with data from an Ajax call.

I am testing in both IE and FF and the DIV is not playing nicely! Basically, it is closing for no reason (without moving the mouse). Sometimes its as if it has started the hoveroff event strait away.
I suppose flicking is the term you could use.

I’ve looked on Google but can’t find any information that seems to be relevant. Anybody have an ideas why this would be? My code is below:

JS

  $(document).ready(function() {
  $(".hover").hover(
  function(e){
    var ref = $(this).attr("wsref");
    var url = "https://site/_ref/shop/_base/order_status.php?action=getstatus&ref="+ref+"&sid="+Math.random();
    $("#status").show();
    var height = $(".status").height();
    var width = $(".status").width();
    leftVal = e.pageX - width -10 + "px";
    topVal = e.pageY - height -10 + "px";
    $("#status").css({left:leftVal,top:topVal});
    $("#status").html("<div id='loading'></div>").load(url);
  },
  function() {
    setTimeout('$("#status").hide()',1500);  
  });
});

HTML

<img class="hover" title="Order Received" name="Order Received" src="https://site/_ref/images/cart.png" wsref="002731"/>
  • 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-05T01:43:15+00:00Added an answer on June 5, 2026 at 1:43 am

    Try this

    var isShowing;
    isShowing=false;
    $(document).ready(function() {
    $(".hover").hover(
    function(e){
    if(!isShowing)
    {
        var ref = $(this).attr("wsref");
       var url = "https://site/_ref/shop/_base/order_status.php?action=getstatus&    ref="+ref+"&sid="+Math.random();
        $("#status").show();
        var height = $(".status").height();
        var width = $(".status").width();
        $("#status").html("<div id='loading'></div>").load(url);
        isShowing=true;
    }
    leftVal = e.pageX - width -10 + "px";
    topVal = e.pageY - height -10 + "px";
    $("#status").css({left:leftVal,top:topVal});
    
    },
    function() {
    setTimeout('$("#status").hide();',1500);  
    });
    });
    

    After you hide make isShowing=false; you can also implement with out using isShowing variable, by looking into the display in style attribute of your status element.

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

Sidebar

Related Questions

I'm using jQuery to setup an Ajax request that grabs an XML feed from
Is there a way using JQuery that i can detect when a div starts
using jquery ui 1.8 trying autocomplete Everything works apart from that the ui-menu isn't
I'm using a Jquery script that do a preview image when mouse is hover,
I'm using Jquery to allow users to upload an image via Ajax in a
I am trying to rotate an image using jquery that will rotate on multiple
I'm having issues showing an image that is hidden using jQuery. I have hidden
I have a function using jquery that updates a form when an image is
I am writing a site using jquery that repeatedly calls $(window).width() and $(window).height() to
How can I select elements (using jQuery) that do not contain any elements? For

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.