PDA

View Full Version : DD Modal window v1.1 - close and reload parent



kraftworkz
10-30-2008, 06:36 PM
1) Script Title: Modal window v1.1

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

3) Describe problem: I need help on how to close and reload the parent.



<script type="text/javascript">
function opencat(categoryid){
emailwindow=dhtmlmodal.open('Cats', 'iframe', 'categories-name.cfm?id=' + categoryid, 'Edit Category', 'width=300px,height=100px,center=1,resize=0,scrolling=0')

emailwindow.onclose=function(){
window.location.reload()
}
}
</script>

Below Button is in the iframe popup window and works fine.

<input type="button" onClick="parent.emailwindow.hide()" value="Close this window">

ddadmin
10-30-2008, 08:28 PM
window.location.reload()
return true

should do it.

kraftworkz
10-30-2008, 08:40 PM
window.location.reload()
return true

should do it.

Thank you, works perfect now..