DHTML Modal onclose events not working
1) Script Title:
DHTML Modal window v1.1
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
3) Describe problem:
onclose events do not work at all when using modal windows. You can reproduce this by trying the following code:
Code:
var mywindow = dhtmlwindow.open("mywindow", "inline", "You will see a message when closing this window", "Window");
mywindow.onclose = function(){ alert("This message is displayed"); return true; };
var mymodal = dhtmlmodal.open("mymodal", "inline", "You will not see a message when closing this window", "Modal");
mymodal.onclose = function(){ alert("This message is never displayed"); return true; };
Looking at the source code, the problematic lines are in modal.js, lines 23, 56 and 57.