Re: OT - javascript question..
| From: | Justin French | Date: | Tue, 30 Jul 2002 00:06:23 +0000 |
| Subject: | Re: OT - javascript question.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110271@lists.php.net to get a copy of this message | ||
Yes, this is way OT....
you can refer back to the original window with
opener
(or it may me window.opener)
I used it once to change the location of the parent window with something
like:
<SCRIPT language="JavaScript">
<!--
function blah(url,close)
{
opener.location = url;
window.close();
}
// -->
</SCRIPT>
<A HREF="javascript:blah('something_else.html');">show me something
else</A>
I'm thinking opener.location.reload() or opener.location.reload(1) or
opener.location.replace('my_url') might do the same job, but if you know
what URL the script should refresh to (ie, load the same URL again), then
the function above should work as is.
Justin French
on 30/07/02 6:00 AM, Kelly Meeks (info@rightangleinc.com) wrote:
> Sorry for the off topic post, but this is by far the most experienced list
> I've found.
>
> I've got a php page that show all the .gif and .jpeg files in an directory via
> a form based drop down menu.
>
> On the same page, I've also got a link that opens a new window, and allows the
> user to upload an image to that same directory.
>
> Is there any way, when the upload window is closed, to force a reload of the
> other page, so the dynamic pop-up reflects the recent upload?
>
> Thanks in advance,
>
> Kelly
>