Click to See Complete Forum and Search --> : frames and searchengines
Sjakie
05-15-2003, 06:38 AM
Hi,
I made a website for the band I play in with frames.
I know I know, you'll probably will say, don't work with frames! But I did.
Now I noticed that Google crawled one of the frames in the search results and you will get a page without the menu etc.
Is it something I have to live with or is there a solution for that besides working without frames?
EverlastingGod
05-15-2003, 04:57 PM
Check if the page loads in a frame or not. If not have it reload with the frames and with that requested page in the frame.
Sorry, forgot how to do this.
Sjakie
05-16-2003, 06:42 AM
Hi, thanks for your help but I absolutely don't understand what you are talking about.
EverlastingGod
05-16-2003, 09:03 AM
Your page, lets call it page A, should be able to detect if it was loaded inside a frame or not. If page A detects that it wasn't opened within a frame, open the frameset page with the page A loaded in the proper frame.
Sjakie
05-16-2003, 09:58 AM
All right, I understand you now. :)
And there is a code for this but you don't remember it right?
I'll try Google for that.
Thanks!
Sjakie
05-19-2003, 06:31 AM
I searched around for the code but I can't find it. Does anybody knows where I can?
try something like
if (window.top == window.self){
window.location.href = "TheFramedDocument.html";
window.frames[TheFrameInWhichTheOriginalCrawledDocumentAppears].location.href = "TheCrawledDocument.html";
}
Sjakie
05-29-2003, 05:36 PM
Works fine. Thanks. :)