Help support TMP

"Orphaned Frames" Topic

6 Posts

All members in good standing are free to post here. Opinions expressed here are solely those of the posters, and have not been cleared with nor are they endorsed by The Miniatures Page.

For more information, see the TMP FAQ.

Back to the Webmasters Plus Board

507 hits since 30 Apr 2008
©1994-2017 Bill Armintrout
Comments or corrections?

auton1 Inactive Member14 Dec 2006 8:45 a.m. PST

I spotted recently that one of my frames within my website comes out as the number 1 result in Google on a search of 28mm WW2. Now feeling good about this I realized that it was an orphaned page and missing the navigation pane to the left.

Does anyone know a way to force a frameset to load if you navigate to a single frame as above? I've found some javascript that forces the main site frameset to load but nothing that handles any other parts of a site.

For now I've added a 'click for buttons' option that redirects the page to a correct frameset but would like it to be done automatically.

My site is at and the google search response is link if anyone is interested


hurcheon Inactive Member14 Dec 2006 1:17 p.m. PST

<script language="javascript">
if (top == self) {
top.location.href = '../index.html'
// location href should be set to whatever your
// frameset page is


auton1 Inactive Member14 Dec 2006 2:37 p.m. PST

Yes I'd seen this one and tried it.

The problem is it loads the frameset for the start page of the site in the content pane instead of the orphaned one…

hurcheon Inactive Member14 Dec 2006 5:52 p.m. PST

You read it before? I thought I had just writen it.

Anyway. The problem for you is that your site is, I suspect, a free one from a website. I don't think the hosting you have there will let you pass parameters as part of a URL, which is what you would do

E.g. say your page is '/gallery/index.html' relative to the frameset

You could then have this bit
top.location.href = '../index.html'

'top.location.href = '../../index.html?Rfrm=/gallery/index.html'

Then when the index page reloaded, then it would check for the querystring requestand use that to set the src of the right frame (rfrm)

But I don't think you can do that with your set up

cosmo1974 Inactive Member02 Jan 2007 7:15 a.m. PST

Hi Gherkin,
There's a neat solution to your problem here link

To be honest, I wouldn't advocate the use of frames at all – they're problematic, particularly for site consistency and search engine optimisation. Nevertheless, if it's the only course open to you..

Hope this helps,

Dicko78 Inactive Member08 Jan 2007 9:21 p.m. PST

I'd go with Cosmo, especially looking at your page, you really don't need frames – the're cumbersome, and theres much better ways of doing things. HTML SSIs (Server Side Includes) would be the way I'd do it… Shouldn't take much of a rewrite to do it either.

Sorry - only verified members can post on the forums.