ezzatron
12-17-2008, 04:56 AM
1) Script Title:
DHTML Modal window v1.1
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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:
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.
DHTML Modal window v1.1
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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:
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.