Results 1 to 3 of 3

Thread: DD Modal window v1.1 - close and reload parent

  1. #1
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Modal window v1.1 - close and reload parent

    1) Script Title: Modal window v1.1

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

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

    Code:
    <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. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Code:
    window.location.reload()
    return true
    should do it.
    DD Admin

  3. #3
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    Code:
    window.location.reload()
    return true
    should do it.
    Thank you, works perfect now..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •