Refresh page with an iFrame.
I have an iFrame on my page. It is my forum that is in that iFrame at the moment. But the problem is that if you are in a thread or in a section on the forum. And I refresh the whole page, it will again load the index file for the forum in the iFrame.
Any way around this?
http://noteme.com/forum.php
ØØ
Re: Refresh page with an iFrame.
Where do you want to refresh the IFRAME from? From inside the IFRAME or from the parent page?
Re: Refresh page with an iFrame.
Ehhhem.....
If you look at this sample page:
http://www.noteme.com/forum.php
you will see the forum (that is now white, will not be so for long..:)), if you click around in that forum, and read a thread or what ever. And you then press F5 in your browser. Then you refresh the whole page, and the forum goes back to the index.php page. I would like it to stay in the thread or section or where ever it was.
ØØ
Re: Refresh page with an iFrame.
That's normal behavior. If there is a way around this, it's going to be complex. You'd have to store the URL clicked on inside the IFRAME into a variable outside the IFRAME and do a check on it each time... I believe. AND make sure that it's persisting on refreshes. Not worth the hassle.
The first thing you're doing dumb is putting the entire forum into an IFRAME. Why not modify the header of that forum and add whatever relevant links you want there?
Re: Refresh page with an iFrame.
It's not dumb... :lol:
I saw this page had done it (at least more or less):
http://www.css-tla.com/?a=board
and found the idea amusing. But I was affraid that the refresh thingy was a bit hard to accomplish. Like storing the URL, guess I will have to put the URL idea on ice a bit. I am not that good in JS (I guess that is the way to do it) at the moment, to pull that off.
ØØ
Re: Refresh page with an iFrame.
Quote:
Originally Posted by NoteMe
No they haven't.
Re: Refresh page with an iFrame.
Quote:
Originally Posted by mendhak
No they haven't.
They didn't use an iFrame. They did build the page around the forum. I just tried to do it the simple way since my page was all ready more or less up and runnning...:)
Re: Refresh page with an iFrame.
I don't know about mercury board, but with others like phpbb or vbull, you can work with the main pages and include your 'menu' pages on the left and top however you feel like. Takes time, patience, and yes, you have to be careful (That means NO spelling mistakes!)
Re: Refresh page with an iFrame.
Yes, I can edit the templates with Mercury board to. But it will take ages. That was what I hoped I didn't have to do. Guess I have to quit spelling running with 3 n's and so on to make it work.
Well thanks for you time. Very greatfull.
ØØ
Re: Refresh page with an iFrame.