PDA

Click to See Complete Forum and Search --> : Refresh page with an iFrame.


NoteMe
Feb 23rd, 2005, 09:36 PM
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


ии

mendhak
Feb 24th, 2005, 12:03 AM
Where do you want to refresh the IFRAME from? From inside the IFRAME or from the parent page?

NoteMe
Feb 24th, 2005, 12:08 AM
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.



ии

mendhak
Feb 24th, 2005, 12:29 AM
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?

NoteMe
Feb 24th, 2005, 12:36 AM
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.



ии

mendhak
Feb 24th, 2005, 12:44 AM
It's not dumb... :lol:

I saw this page had done it (at least more or less):
http://www.css-tla.com/?a=board



No they haven't.

NoteMe
Feb 24th, 2005, 12:48 AM
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...:)

mendhak
Feb 24th, 2005, 12:53 AM
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!)

NoteMe
Feb 24th, 2005, 12:58 AM
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.



ии

mendhak
Feb 24th, 2005, 01:07 AM
Grateful* ;)