Does someone know how to close Ballon Popup Extender from client side?
Everything is fine but since I set up BPE to display on mouse hover it is really impratical that it don’t have any close or hide method on mouse out I tried:
function hideElement() {
document.getElementById(ID).style.display = 'none';
}
function hideControl() {
document.getElementById('<%=ID.ClientID%>').style.visibility = "hidden";
return false;
}
I hooked up above methods to one of divs onmouseout, I can hide any control on the page but not BPE and I tried to do the same with panel that BPE is targeting but nothing happend..
Is there something I missed or is BPE just like that?
This is actually not too tough. You can create a method like this on your page:
And then call that function from your
onmouseoutevent of the control that is yourTargetControlIDfor the BalloonPopupExtender (in my examplePanel1). Here’s the code I used to test that javascript: