[thelist] location.reload() question
Seth Bienek
seth at sethbienek.com
Tue Sep 19 15:22:40 CDT 2000
It's a gem...
<tip type="JavaScript" Author="Anthony Baratta">
This returns focus to the opening window and replaces the URL with a copy of
itself.
(if the URL is an ASP or CF file, this forces a reload of the page
automatically). Then
the pop-up window closes itself.
<!--
function CleanUp() {
opener.focus();
opener.location.href = opener.location;
self.close();
}
// -->
I've found that this gets around the "Form posting window" that is generated
when you
are "refreshing" a page that previously was called with the post method.
</tip>
Thanks Anthony!
Seth
------------------------------
Seth Bienek
Solutions Development Manager
Stonebridge Technologies, Inc.
972.455.7294 tel
972.404.9754 fax
------------------------------
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Anthony Baratta
> Sent: Tuesday, September 19, 2000 1:57 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] location.reload() question
>
>
> This is what I do:
>
> <!--
> function CleanUp() {
> opener.focus();
> opener.location.href = opener.location;
> self.close();
> }
> // -->
>
> This returns focus to the opening window, "replaces the URL with
> a copy of itself.
> (Since the URL is an ASP file, this forces a reload of the page
> automatically). Then
> the pop-up window closes itself.
>
> I've found that this gets around the "Form posting window" that
> is generated when you
> are "refreshing" a page that previously was called with the post method.
>
> --
> Anthony Baratta
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
>
More information about the thelist
mailing list