|
-
Tiger Shark
frames and searchengines
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?
-
Hammerhead Shark
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.
Stay cool
and be somebody's fool this year
-
Tiger Shark
Hi, thanks for your help but I absolutely don't understand what you are talking about.
-
Hammerhead Shark
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.
Stay cool
and be somebody's fool this year
-
Tiger Shark
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!
-
Tiger Shark
I searched around for the code but I can't find it. Does anybody knows where I can?
-
Goldfish
try something like
Code:
if (window.top == window.self){
window.location.href = "TheFramedDocument.html";
window.frames[TheFrameInWhichTheOriginalCrawledDocumentAppears].location.href = "TheCrawledDocument.html";
}
don't sell the bike shop Orville
-
Tiger Shark
Works fine. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|