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?
Exactly what I was looking for. But instead of all the extra javascript, just put
onmouseout="BalloonPopupControlBehavior.hidePopup();"
in the control.I made some improvements to jadarnel27's answer because I have multiple controls each with their own balloon extender.
Then in the code behind
This way we eliminate the need for a javascript function completely and allow for more controls on the same page.
This is actually not too tough. You can create a method like this on your page:
And then call that function from your
onmouseout
event of the control that is yourTargetControlID
for the BalloonPopupExtender (in my examplePanel1
). Here's the code I used to test that javascript: