Results 1 to 4 of 4

Thread: DHTML Modal window: onclose

  1. #1
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question DHTML Modal window: onclose

    1) Script Title: DHTML Modal window

    2) Script URL (on DD): DHTML Modal window

    3) Describe problem: Onclose doesn't work for closing using close button

    When the user clicks on the X button, the onclose function isn't "ran". At first I thought it was me for this is the same for the demo also.

  2. #2
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I saw forceclose in modal.js, and I still can't get anything to work on bypass close.

    Code:
    function LoadMsg(){
    	 msgwin = dhtmlmodal.open('msgbox', 'div', 'msgdiv', 'Attention', 'width=400px,height=200px,left=250px,top=110px,resize=0,scrolling=1');
    	 return false;
    	msgwin.onclose=function(){
    		LoadResults();
    	}
    	msgwin.forceclose=function(){
    		LoadResults();
    	}
    }
    window.onload =  LoadMsg;
    function LoadResults(){
    	resultsURL = "showresults.php";
    	document.all.resultsframe.src=resultsURL;
    	alert(resultsURL);
    }

  3. #3
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Looking at: http://www.dynamicdrive.com/forums/s...ighlight=modal and can't get that to work.

  4. #4
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I decided to cut my closes timewise and scrap this idea and go with another idea.

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
  •