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');
});
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
HTML
jQuery