Forum Moderators: open
But, as a fall back, I am investigating what can be done to avoid "orphaned" content pages in the SE. I vaguely recall seeing some information last year on some code that when you load a frame content page will force the frameset page to load as well. Anyone using something like this?
Can you post code.
TIA.
The only problem here is that a bot won't be able to follow it. Well, there's another problem. If you don't have navigation controls in the page, but only in the frameset, the bot won't be able to get out, either.
I'd use SSI and include the "Navagation" page into the main pages and ditch the frames altogether.
G.
I'm using this sucessfully on a site with many thousands of pages. The code is available on our "Generic JavaScript" thread [webmasterworld.com]. Look a bit below the half way mark for my post with the title:
FORCE MANY PAGES INTO FRAMES
with one simple script
> a bot won't be able to follow it...the bot won't be able to get out, either
It's true that a bot won't follow javascript navigation. However, I can't see a reason for a bot to find the parent frameset through this particular pathway. I don't really want the nav frames to be well positioned on the search engines.
You make a good point about having SOME navigation within the orphaned page. This also helps human visitors who may arrive with javascript disabled and would therefore be stuck in the orphaned page..
<SCRIPT LANGUAGE="JavaScript">
<!--
if (window == top) top.location.href = "Index.html";
// -->
</SCRIPT>
One odd problem is that MS FrontPage 2002 doesn't seem to want to display the page in the "Preview" however. All MS Frontpage shows is "The page cannot be displayed" in the Preview tab. However when I go to "File>Preview In Browser" the child content page calls the appropriate Frameset page and looks like it should.
Any idea on what setting to change in MS FrontPage to allow it to Preview correctly (I already have Java Script checked off in "Tools>Page Options>Compatibility>")?
TIA.
Jas0n
<url snipped>
For example: Forcing frames still leaves most visitors unable to bookmark specific deep-content pages, since it will be the Frameset page that gets bookmarked. Or the fact that frames sites won't work on the new POGO device (mobile mp3 player and full browser), nor webTV nor on other devices/clients.
The article covers all of the main limitations of frames, and suggests a workable solution that you shold consider.
[edited by: papabaer at 6:49 pm (utc) on June 6, 2002]