Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Saskatoon SK Canada
    Posts
    174
    Thanks
    2
    Thanked 0 Times in 0 Posts

    "Processing..." Popup Page

    I'm looking for a script that will execute a popup window onSubmit of a form on enter.php then the next window (refer.php), when fully loaded, will close this popup window.

    My fav popup script is:

    var flashwin=null;
    function popup(url,target,w,h){
    settings='width='+w+',height='+h+',top=200,left=200,scrollbars=no,location=no,directories=no,status= no,menubar=no,toolbar=no,resizable=yes';
    flashwin=window.open(url,target,settings);
    }


    On enter.php I have: <form onSubmit="popup('processing.htm','processing','220','120')">

    What do I need in the <body onLoad=""> in refer.php to close this popup window?


    Colin

  • #2
    New to the CF scene
    Join Date
    Sep 2003
    Location
    North Yorkshire, England
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not 100% sure about this but I think you can only remote close a pop up window from the page that spawned it. You do this using the variable you assigned the window to when you opened it - in this case it would be flashwin.close();

    My advice would be to add a script to the pop up itself, telling it to close after a certain time:

    onLoad="setTimeout('window.close()', 5000);"


  •  

    Posting Permissions

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