Forum Moderators: open
Is there any code which, though the individual pages will have the search engine listings, will cause the pages to open up inside the frameset?
You could have script on each pagelet that checks to see if the parent window is your frameset
if (window.top.location != 'frames.htm')
{
window.top.location = 'frames.htm'
}
But that would always take them to the homepage, which you don't want when people have found the page they want at the SE. So you could set up some kind of querystring system.
if (window.top.location != 'frames.htm')
{
window.top.location = 'frames.htm?goto=' + escape(window.self.location);
}
Your frameset would then have to handle substituting the content page for the one passed in the querystring. Can be a bit of nightmare and I guess most people would probably tell you to avoid it.
I think this code handles the situation pretty well -- you need one extra version of the frameset page to "catch" any orhpaned page hits and put them with their parents.