View Full Version : Iframes and reloading them
08-20-2002, 07:55 PM
I have the main window, within the main window, I have an iframe (call it iframe0), within iframe0 i have another iframe (call it iframe1), I calling a page in iframe1 to change some stuff on the server then I need to reload just iframe0.
Everything ive tried, parent/top/by name..... , seems to reload the entire page. How can I just make Iframe0 reload without reloading the whole page?
Thanks in advance.
08-20-2002, 08:05 PM
parent.parent.reload(); *I think....
I had a play with a thought...it didn't hurt really ....
Something like the following should do what you require.
I have attached a zip file with the relative files in so you can see how it works.
Opening the file called "main" will show an Iframe within an Iframe
and the links will load another page to one or the other.
<a href="#null" onclick="document.frame1.location.href='page.htm'">Load into Iframe 1</a>
<a href="#null" onclick="document.frame1.document.frame2.location.href='page.htm'">Load into Iframe 2</a>
08-20-2002, 09:12 PM
Thanks for the help. unfortunately neither of those worked. :( Kept getting object not supported errors. :(
I did finally manage to hit on the solution...
08-20-2002, 09:14 PM
.reload() isn't working?
I thought you were having trouble referencing the iframe, not acutally getting it to refresh?
08-20-2002, 09:39 PM
was trying to get it to reload/refresh.... I couldn't get reload to work for some reason, but history.go(0) seems to have the same effect.
08-20-2002, 09:42 PM
Well, yes, it roughly has the same effect.
08-21-2002, 07:48 PM
This is what I use:
thisi being the NAME of the iFRAME.
<IFRAME NAME="thisi" SRC="page.html"></iframe>
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.