Results 1 to 10 of 10

Thread: Refresh page with an iFrame.

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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


    ØØ

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Refresh page with an iFrame.

    Where do you want to refresh the IFRAME from? From inside the IFRAME or from the parent page?

  3. #3

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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.



    ØØ

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  5. #5

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Refresh page with an iFrame.

    It's not dumb...

    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.



    ØØ

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Refresh page with an iFrame.

    Quote Originally Posted by NoteMe
    It's not dumb...

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

  7. #7

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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...

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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!)

  9. #9

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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.



    ØØ

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Refresh page with an iFrame.

    Grateful*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width