PDA

View Full Version : DHTML Modal window issues



ekshahar
02-22-2009, 09:15 PM
1) Script Title: DHTML Modal window v1.1


2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm

3) Describe problem: Love the script. works great, except if I try to link to an external url from my page in the iframe, it will load the page but if clicked on the close 'X' button wont close it. for example:

function contactus(){
emailwindow=dhtmlmodal.open('EmailBox', 'iframe', "http://www.yahoo.com", 'Contact us', 'width=520px,height=390px,center=1,resize=0,scrolling=1')

emailwindow.onclose=function(){ //Define custom code to run when window is closed

return true //allow closing of window

}

This will load yahoo page from your site but you cant close it. any help is much appreciated.

ekshahar
02-22-2009, 09:31 PM
oh never-mind, this was already reported...less research from my end.

try catch block should fix it. great its working now.