RE: [PHP] target?
| From: | afan at afan dot net | Date: | Wed, 08 Feb 2006 20:21:31 +0000 |
| Subject: | RE: [PHP] target? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230127@lists.php.net to get a copy of this message | ||
Let's say you did some change on your popup window (page2.php)
if(isset($_POST['change']))
{
# your "changes" code here
# and, once you are finished you are going to execute the folloving html
code
?>
<html>
<head>
<script language="JavaScript"><!--
function close_redirect() {
parent.opener.location='page1.php';
parent.close();
}
//--></script>
</head>
<body onLoad="close_redirect()">
</body>
</html>
<?php
exit; # with this exit you are not allow executing the rest of the code
}
popup (page2.php) will close and page1.php will be refreshed.
-afan
> What you need to do is close page2.htm with JavaScript (window.close)
> And then page1.htm will be back. To make sure page1 will be back
> You can reload it with onload=focus() in the <BODY>.
>
> Sincerely
>
> berber
>
> Visit the Weber Sites Today,
> To see where PHP might take you tomorrow.
> PHP code examples : http://www.weberdev.com
> SEO Monitor : http://seo.weberdev.com
>
>
> -----Original Message-----
> From: William Stokes [mailto:kalles@operamail.com]
> Sent: Wednesday, February 08, 2006 9:10 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] target?
>
> I mean.
>
> If I open popup named page2.htm from page1.htm with target="_blank" can I
> go
> back to page1.htm with target="_parent"?
>
> -W
>
>
>
> "Jay Blanchard" <jay.blanchard@THERMON.com> kirjoitti
> viestissä:0CEC8258A6E4D611BE5400306E1CC92709B2A6D6@smtmb.tmc.local...
>> [snip]
>> Is target="_parent" opposite to target="_blank"?
>> [/snip]
>>
>> Opposite? no. Not alike? yes.
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>