Closed Thread Icon

Topic awaiting preservation: refreshing windows Pages that link to <a href="https://ozoneasylum.com/backlink?for=8255" title="Pages that link to Topic awaiting preservation: refreshing windows" rel="nofollow" >Topic awaiting preservation: refreshing windows\

 
Author Thread
bianca
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2002

posted posted 08-07-2002 07:58

I want to refresh a recently opened window. i tried using location.href but i dont know how to target it to the new window. do you know anything about this? my code is shown below.

window.open("", "popfly", "height=460, width=790, menubar=yes, scrollbars=yes, status=yes, toolbar=yes, screenX=100, screenY=0, left=0, top=0");
popfly.location.href("linkText.asp");

this event is done after clicking a link.

i also tried to refresh the specified page using body onload = window.refresh but it doesn't work.

Help!!!

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 08-07-2002 10:07

Hi bianca,

You can only refer to the new window if you give it a reference. So what you need is a varible to represent the new window. This should work:


var newWin = window.open("", "popfly", "height=460, width=790, menubar=yes, scrollbars=yes, status=yes, toolbar=yes, screenX=100, screenY=0, left=0, top=0"); //newWin is the "name" of the new window
newWin.location.href("linkText.asp");

Have phun

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-07-2002 11:07

location.href is a property, not a function. Do

newWin.location.href = "linkText.asp";

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 08-07-2002 15:31

I'm kinda embarressed for overlooking that bug :s. Seems like slime is always whipping my ass when I start to feel clever. Thanx for that

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-07-2002 15:56

No, you had the important part =)

bianca
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2002

posted posted 08-08-2002 05:58

thank you so much for your help... =)

ric2001
Obsessive-Compulsive (I) Inmate

From: behind the szene
Insane since: Jul 2002

posted posted 08-08-2002 16:53

Hello,

does this also work when I want to self.close a window opened with script
in the Bodytag with a timeout for self.closing ???

MY window is always asking the user if the user wants to close this page!!

[sorry for my bad english]




EgosapienZ

Nevel
Bipolar (III) Inmate

From: Amsterdam
Insane since: Jun 2002

posted posted 08-08-2002 17:49

It isn't very clear what you're trying to say,
but indeed, external windows can be closed through window.close(), and no questions will be asked that way.

« BackwardsOnwards »

Show Forum Drop Down Menu