<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] reload calling page</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>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.</FONT>
</P>
<P><FONT SIZE=2>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.</FONT></P>
<P><FONT SIZE=2>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.</FONT></P>
<P><FONT SIZE=2>Since you are generating these pages on a server, maybe you should rethink the whole process.</FONT>
</P>
<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Michael Mehlmann [<A HREF="mailto:mailing_list@gmx.at">mailto:mailing_list@gmx.at</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, August 07, 2001 1:41 AM</FONT>
<BR><FONT SIZE=2>To: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Cc: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: RE: [Javascript] reload calling page</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi!</FONT>
</P>
<P><FONT SIZE=2>on page1 is a link-collection with a click-statistics!</FONT>
<BR><FONT SIZE=2>So if someone clicks on a link, a new window page2 is opened that should:</FONT>
<BR><FONT SIZE=2>.) reload page1 to see the changes in the click-statistics</FONT>
<BR><FONT SIZE=2>.) redirect to the link</FONT>
</P>
<P><FONT SIZE=2>my problems:</FONT>
<BR><FONT SIZE=2><head><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=<? echo $url;?>"></head></FONT>
<BR><FONT SIZE=2><body onUnload='self.opener.location.reload(true)'></body></FONT>
</P>
<P><FONT SIZE=2>this will work for MSIE5 as I want it to!</FONT>
<BR><FONT SIZE=2>with NS4, the page1 isn't reloaded by the javascript-code!(?????)</FONT>
<BR><FONT SIZE=2>with NS6, page1 reloads, but gets the focus (don't know, what I can do</FONT>
<BR><FONT SIZE=2>against that!!!)</FONT>
</P>
<P><FONT SIZE=2>if you have got any ideas, please let me know!!!</FONT>
<BR><FONT SIZE=2>thanks</FONT>
<BR><FONT SIZE=2>Michael</FONT>
</P>
<P><FONT SIZE=2>> It depends on the weight of the font you use whether it is too heavy for</FONT>
<BR><FONT SIZE=2>> JS!</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Seriously, personally I hate the way pop up windows are used 99 44/100% of</FONT>
<BR><FONT SIZE=2>> the time. Having said that try the following:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> In page2's onload function do opener.window.location.reload()</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> But you haven't explained why you want page1 to reload.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>> MCP </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Michael Mehlmann [<A HREF="mailto:mailing_list@gmx.at">mailto:mailing_list@gmx.at</A>]</FONT>
<BR><FONT SIZE=2>> Sent: Monday, August 06, 2001 1:10 PM</FONT>
<BR><FONT SIZE=2>> To: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>> Subject: [Javascript] reload calling page</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Hi!</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I want to click a link on page1</FONT>
<BR><FONT SIZE=2>> this opens a page2 in a new window (with focus)</FONT>
<BR><FONT SIZE=2>> and when this new window (page2) is loaded, I want it to reload page1</FONT>
<BR><FONT SIZE=2>> (without page1 getting the focus)</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> so when the user closes the window with page2 in it, he will see the</FONT>
<BR><FONT SIZE=2>> already</FONT>
<BR><FONT SIZE=2>> reloaded page1 !!!</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> non-JS.Browsers should only open page2 in a new window (without doing the</FONT>
<BR><FONT SIZE=2>> reload of page1)</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Is this possible?</FONT>
<BR><FONT SIZE=2>> or is this too heavy for JS???</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> thanks for any hints!!!</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Michael</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -- </FONT>
<BR><FONT SIZE=2>> Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne</FONT>
<BR><FONT SIZE=2>> Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!</FONT>
<BR><FONT SIZE=2>> <A HREF="http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a" TARGET="_blank">http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a</A></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Javascript mailing list</FONT>
<BR><FONT SIZE=2>> Javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>> <A HREF="http://www.LaTech.edu/mailman/listinfo/javascript" TARGET="_blank">http://www.LaTech.edu/mailman/listinfo/javascript</A></FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Aufgepasst - jetzt viele 1&1 New WebHosting Pakete ohne</FONT>
<BR><FONT SIZE=2>Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!</FONT>
<BR><FONT SIZE=2><A HREF="http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a" TARGET="_blank">http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a</A></FONT>
</P>
</BODY>
</HTML>