"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.
Please don't make fun of others' membernames.
For more information, see the TMP FAQ.
Back to the Webmasters Plus Board
Areas of InterestGeneral
Featured Hobby News Article
Featured Link
Featured Ruleset
Featured Showcase ArticleHow to store and transport an army of giant apes?
Featured Workbench Article
Current Poll
|
Please sign in to your membership account, or, if you are not yet a member, please sign up for your free membership account.
auton1 | 14 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 nick101.f9.co.uk and the google search response is link if anyone is interested Cheers |
hurcheon | 14 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 } --> </script> |
auton1 | 14 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 | 14 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' as '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 | 02 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, Cosmo1974 |
Dicko78 | 08 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. |
|