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

  • Home
  • SEARCH
  • 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 7921065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:26:46+00:00 2026-06-03T16:26:46+00:00

The popup is getting the information from a database and dynamically add it to

  • 0

The popup is getting the information from a database and dynamically add it to a panel where it will be displayed once you hover on the image within the nested gridview. the position of the popup should also be at the left of the image. when you hover on the image it quickly disappears withing me doing a mouse-out.
assistance is needed if anyone can help as i have been trying to accomplish this by using jquery which i am a newbie to as well.

 $('img.imagepopupcontext').mouseover(function () {
            var cvalue = $(this).parent().parent().attr('id'); //tr.innerGridRow parent
            count++;
            $('#ctl00_ContentPlaceHolder1_txtkey').val(cvalue);
            $('#ctl00_ContentPlaceHolder1_btnpopupclick').click();

            var pos = $(this).offset();

            $('#ctl00_ContentPlaceHolder1_panelshow').css({
                position: "absolute",
                top: (pos.top - 100) + "px",
                left: (pos.left - 310) + "px"
            });
            $('#ctl00_ContentPlaceHolder1_panelshow').css('display', 'block');
            //alert('image test over' + pos.left + "," + pos.top);

        });

        $('img.imagepopupcontext').mouseout(function () {
            //alert(count);
            count = 0;
            //$('#ctl00_ContentPlaceHolder1_btnpopupclick').html('');
            $('#ctl00_ContentPlaceHolder1_panelshow').hide();
            //alert('image test mouse out');

        });

Click here to see the JSFIDDLE

  • 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-03T16:26:48+00:00Added an answer on June 3, 2026 at 4:26 pm

    I think the code below will start you off on your journey. I also updated your JSFiddle. Though, I don’t know if it will save on your account there.

    The hover function in jQuery incorporates both ‘mouseover’ and ‘mouseout’ so it is a bit easier to use.

    CSS

        #info
        {
            background: #CCC;
            width: 300px;
            padding-bottom: .5em;
            padding-right: 15px;
            overflow: hidden;
            position: absolute;
        }
    

    HTML

        <table border="1" bgcolor="skyblue">
            <tr>
                <td>
                    in progress
                </td>
                <td>
                    Sale
                </td>
            </tr>
            <tr>
                <td>
                    in progress
                </td>
                <td>
                    <table border="1" bgcolor="orange">
                        <tr>
                            <td>
                                inner table
                            </td>
                            <td>
                                inner table2
                            </td>
                            <td>
                                <img id="imgpopup" src="http://cdn1.iconfinder.com/data/icons/SOPHISTIQUENIGHT/mail_icons/png/16/pop_documents.png" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div id="divshowpopup">
            <p id="dbInfo">
                Show information from database
            </p>
    

    jQuery

        $(function () {
    
            // Set the offsets for the mouse over upfront 
            // so they are easier to change.
            var offsetY = -20; 
            var offsetX = 40;
    
            $('#imgpopup').hover(function (e) {
                // Begin mouseover function
    
                // Grab the p tag with the id of 'dbInfo' in order
                // to retrieve information from it later
                var $dbInfo = $('#dbInfo');
    
                // Create a variable that will hold the HTML
                // for the pop up. However, this is not the best
                // way dynamically create the popup. You should
                // look into jQuery templating.
                var html = '<div id="info">';
                html += '<h4>Info here</h4>';
                html += '<p>' + $dbInfo.text() + '</p>';
                html += '</div>';
    
                // Append the variable to the body and the select
                // itself and its children and hide them, so you
                // can then add a fadeIn effect.
                $('body')
                    .append(html)
                        .children('#info')
                        .hide()
                        .fadeIn(400);
    
                // This is where the popup offesets away from your cursor
                // The variables set up top will decide how far away the
                // pop up strays away from your cursor.
                $('#info')
                    .css('top', e.pageY + offsetY)
                    .css('left', e.pageX + offsetX);
    
            }, function () {
                // Begin mouseout function
    
                // Remove on mouse out
                $('#info').remove();
            });
    
            // Whenever the mouse moves the popup will follow using
            // the offsets set up top.
            $('#imgpopup').mousemove(function (e) {
                $('#info')
                    .css('top', e.pageY + offsetY)
                    .css('left', e.pageX + offsetX);
            });
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can the popup window (getting started with sas) be prevented from displaying when
I have an image and want to show a rollover popup div on hover
I'm occasionaly getting the following popup from an AJAX.NET application Sys.WebForms.PageRequestManagerServerErrorException: An Unknown error
popup.html is popped up by script from parent.html: window.open('popup.html', '', 'width=520, height=300,left=500,top=0'); Is it
instead of popup from center can we change to another animation (eg, undo animation)?
Is it possible to assign Image to label text from Javascript I tried this
I'm not interested in getting version information. All I want to do is to
I'm building application using pop-ups. I'm getting new information with Ajax in the main
My Problem: I have my requirement of showing the popup window on hover of
I am occasionally getting flash popup this error: Error #2044: Unhandled error:. text= My

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.