Log in

View Full Version : New iframe problem



dojjen69
04-19-2007, 04:57 PM
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.

boogyman
04-19-2007, 05:00 PM
I believe if you put in a "default" page into your iframe, then it would return to the default when you press the back.

dojjen69
04-19-2007, 05:11 PM
Sounds logical... how would I go about specifying a default page?

mburt
04-19-2007, 06:37 PM
To produce a blank page:

<iframe src="about:blank"... >
Or, create the actual html page and place it as the src element in the iframe:

<iframe src="path/to/default.htm"... >

dojjen69
04-19-2007, 09:12 PM
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?

dojjen69
04-20-2007, 04:41 AM
Anyone have any ideas about this problem?

Thanks muchly

jscheuer1
04-20-2007, 05:35 AM
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.

dojjen69
04-24-2007, 09:34 PM
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

Veronica
04-24-2007, 10:11 PM
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.

jscheuer1
04-25-2007, 01:19 AM
Works fine here in IE 7, Opera 9.01, and FF 1.5.0.11.