Results 1 to 10 of 10

Thread: New iframe problem

  1. #1
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New iframe problem

    Everythings working great on my website (thanks to your assitances) but there's one last problem.

    I have a page which has a header and footer with an iframe in the middle of it which auto-adjusts the height to the size of the content. All the navigation buttons loads new pages into the iframe. When you hit the back button on the browser, only the parent shows and the iframe has no content... and since it auto-adjusts to height, it shows the header and the footer with nothing in between, not even spaces. is there a way to remedy this? Is it even possible?

    Thanks for any help.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    I believe if you put in a "default" page into your iframe, then it would return to the default when you press the back.

  3. #3
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sounds logical... how would I go about specifying a default page?

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    To produce a blank page:
    Code:
    <iframe src="about:blank"... >
    Or, create the actual html page and place it as the src element in the iframe:
    Code:
    <iframe src="path/to/default.htm"... >
    - Mike

  5. #5
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ahh... ok, then I do have a default page.

    When the iframe is called it loads main.htm

    As I said though, everything works fine until the back button is pressed... seems like a really wierd thing...

    any other thoughts?

  6. #6
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone have any ideas about this problem?

    Thanks muchly

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That doesn't sound right. If there is no page in the history stack of the iframe, the back button should load the previous 'top' page. Like, say I navigate to your page from Google and hit back, it should go back to Google.

    It might help if you provided a link to your problem page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well.. when you go to the site, it loads the main page with an iframe embeded... wehn you navigate, only the iframe content changes, when you hit the back button then, the main page still stays, but the iframe content acts as if there's no content at all.

    Here's the link...

    http://www.immortalis.ca/work/index.htm

  9. #9
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In your body tag, you need to close a quote around the color, or better yet, just lose the bgcolor tag and the one after it since you have in it your styles. Since you put the onload command into the body tag, that may be an issue.

    My guess for the back-space problem you describe would be the scrolling marquee. Try taking off the marquee to see if that helps.

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Works fine here in IE 7, Opera 9.01, and FF 1.5.0.11.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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