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">
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">