Popup is really nice. I like that it is possible to add a layout and a grid and the progress indicators work so well.
I have a situation where the I open the popup and would like for it to close when anything on the page is clicked.
It seems odd, when the popup is opened, you can click the body of the page and then on the 2nd click it then closes. Can it be closed on the first click?
Here is sample code:
<script>
var myPop;
function showPopup() {
if (!myPop) {
myPop = new dhtmlXPopup();
myPop.attachHTML("Testing 1...2...3");
}
if (myPop.isVisible()) myPop.hide();
else myPop.show(20,30,100,40);
}
function hidePopup() { if (myPop) myPop.hide(); }
</script>
<br>
<br>
<a href="javascript:showPopup()">Click to Select</a>