[Javascript] reload calling page
Filipiak, Bob (Contractor)
filipiab at atsc.army.mil
Tue Aug 7 07:18:05 CDT 2001
If I'm on a page that shows clicks for a link, I would know that if I click
on that link the count should go up by one.
Anyhow, there must be something else wrong because NS 4.x should recognize
the method. Don't understand <? echo $url; ?> in meta tag but AFAIK it
appears that the click-statistics are not the only thing that is dynamic. If
I read the code correctly it is for page2 and it would cause the page to
continually refresh and in NS 4.x would not get a chance to fire the
onUnload.
If NS 6 gets focus then code page1 to test for the various browser versions
and set a flag to know when page2 has 'reloaded' page1.
Since you are generating these pages on a server, maybe you should rethink
the whole process.
Bob Filipiak (Contractor)
MCP
-----Original Message-----
From: Michael Mehlmann [mailto:mailing_list at gmx.at]
Sent: Tuesday, August 07, 2001 1:41 AM
To: javascript at LaTech.edu
Cc: javascript at LaTech.edu
Subject: RE: [Javascript] reload calling page
Hi!
on page1 is a link-collection with a click-statistics!
So if someone clicks on a link, a new window page2 is opened that should:
.) reload page1 to see the changes in the click-statistics
.) redirect to the link
my problems:
<head><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=<? echo $url;?>"></head>
<body onUnload='self.opener.location.reload(true)'></body>
this will work for MSIE5 as I want it to!
with NS4, the page1 isn't reloaded by the javascript-code!(?????)
with NS6, page1 reloads, but gets the focus (don't know, what I can do
against that!!!)
if you have got any ideas, please let me know!!!
thanks
Michael
> It depends on the weight of the font you use whether it is too heavy for
> JS!
>
> Seriously, personally I hate the way pop up windows are used 99 44/100% of
> the time. Having said that try the following:
>
>
> In page2's onload function do opener.window.location.reload()
>
> But you haven't explained why you want page1 to reload.
>
>
> Bob Filipiak (Contractor)
> MCP
>
> -----Original Message-----
> From: Michael Mehlmann [mailto:mailing_list at gmx.at]
> Sent: Monday, August 06, 2001 1:10 PM
> To: javascript at LaTech.edu
> Subject: [Javascript] reload calling page
>
>
> Hi!
>
> I want to click a link on page1
> this opens a page2 in a new window (with focus)
> and when this new window (page2) is loaded, I want it to reload page1
> (without page1 getting the focus)
>
> so when the user closes the window with page2 in it, he will see the
> already
> reloaded page1 !!!
>
> non-JS.Browsers should only open page2 in a new window (without doing the
> reload of page1)
>
> Is this possible?
> or is this too heavy for JS???
>
> thanks for any hints!!!
>
> Michael
>
> --
> Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne
> Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
> http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>
--
Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne
Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010807/ecd0856d/attachment.htm>
More information about the Javascript
mailing list