| View previous topic :: View next topic |
| Author |
Message |
lalalogic 100+ Club
Joined: 16 Aug 2005 Posts: 200
|
Posted: Tue Nov 01, 2005 9:47 pm Post subject: iframe + refresh |
|
|
Imagine you have a page with a menu that targets every link to be shown in the main iframe. Hmm let's say that it's a News/Games/Tuts/Info/Forum menu as above.
The news.htm is the first page to be shown in the iframe of the general page's index. Same way if we click on Games, the games.htm is shown.
But if we refresh the whole page, it shows the news.htm in the iframe again... i don't know how to explain it exactly
Is there a way to keep the same iframe content after refreshing the whole page? i've been googling for a while but i haven't found anything. It probably works with javascript. Has anyone done that before? It's not that important but i was wondering if there's a way it works. |
|
| Back to top |
|
 |
|
|
rse 100+ Club
Joined: 10 Oct 2004 Posts: 114 Location: Leeds, UK
|
Posted: Fri Aug 25, 2006 10:58 am Post subject: Re: iframe + refresh |
|
|
When you refresh, you are refreshing the full page and not the iframe, therefore the iframe will go back to the one you have put in your index.htm file in <iframe src="news.htm">.
My advice would be to not use iframes and maybe use includes or something in PHP. Alternatively, maybe you could use sessions to record the page filename you are on and set the <iframe src="<?php echo $_SESSION[page_url];?>">.
I hope this helps a little.
Adam |
|
| Back to top |
|
 |
|
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums. Click here to Register
If you are a current member here on DEVPPL, please login below:
|
|
|
|