closing pop-up window

This is a discussion on closing pop-up window within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have created a mail form in a pop-up window. After the mail has been send succesfull i would ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2004
Roy G. Vervoort
 
Posts: n/a
Default closing pop-up window



I have created a mail form in a pop-up window. After the mail has been send
succesfull i would like the window to close (without having to click on a
link or button (wich activaties the 'window.close' command)

Is this possible and how. I can not seem to find anything like this.

roy

The Nethelands


Reply With Quote
  #2 (permalink)  
Old 02-25-2004
Tyrone Slothrop
 
Posts: n/a
Default Re: closing pop-up window

On Wed, 25 Feb 2004 16:04:21 +0100, "Roy G. Vervoort"
<roy.vervoort@rojaal.nl> wrote:

>
>
>I have created a mail form in a pop-up window. After the mail has been send
>succesfull i would like the window to close (without having to click on a
>link or button (wich activaties the 'window.close' command)
>
>Is this possible and how. I can not seem to find anything like this.
>
>roy
>
>The Nethelands
>


You could do a redirect to a page which closes onLoad.
<?
### Your mail code...
header ("location: close.html");
?>

<!-- close.html-->
<html>
<head></head>
<body onLoad="self.close()">
</body>
</html>
Reply With Quote
  #3 (permalink)  
Old 02-25-2004
Savut
 
Posts: n/a
Default Re: closing pop-up window

Just call it after mail()

i used to do this way,

<?php
mail(...);
?>

<script>
self.close();
</script>

Savut

"Tyrone Slothrop" <ts@paranoids.com> wrote in message
news:k7gp30ps8366k6b76sqe40nph81gp3noq5@4ax.com...
> On Wed, 25 Feb 2004 16:04:21 +0100, "Roy G. Vervoort"
> <roy.vervoort@rojaal.nl> wrote:
>
> >
> >
> >I have created a mail form in a pop-up window. After the mail has been

send
> >succesfull i would like the window to close (without having to click on a
> >link or button (wich activaties the 'window.close' command)
> >
> >Is this possible and how. I can not seem to find anything like this.
> >
> >roy
> >
> >The Nethelands
> >

>
> You could do a redirect to a page which closes onLoad.
> <?
> ### Your mail code...
> header ("location: close.html");
> ?>
>
> <!-- close.html-->
> <html>
> <head></head>
> <body onLoad="self.close()">
> </body>
> </html>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0