PDA

View Full Version : How to refresh calling page from framed pop-up?


trondulseth
07-17-2002, 09:47 AM
I have a page - i click a link to open up a pop-up window. Normaly if I'd like the calling page to refresh at any point the following code would do the trick:

<script language="JavaScript">
window.opener.location.reload()
</script>

But in my pop-up window I'm now using frames.

I figure that if I put the above code in the frameset page - and have a script that reloads the frameset from the framewindow it would do the trick. Is this the solution? If so - what is the code for refreshing the frameset? Or is there another way?

Thnx for all help

neil.c
07-17-2002, 11:12 AM
window.opener.location.reload()

have you tried this? i would expect it to work. if it doesn't, try this one:

window.top.opener.location.reload()

top refers to the top level frame in the window, i.e. the window itself.

hryan
07-17-2002, 11:18 AM
I Donot understand perfectly what you ask but if you want to refresh frameset try this
top.window.go(0)

in case you want to refresh the opener you know the answer.;)

trondulseth
07-17-2002, 11:39 AM
Hmm - none of your suggestions seemed to work. Thanx for trying anyway.

hryan
07-19-2002, 02:18 PM
Sorry!
It's my fault!

Right script which refreshed the page is top.window.history.go(0);

Sorry once again!:)