frames and searchengines

Sharky Forums


Results 1 to 8 of 8

Thread: frames and searchengines

  1. #1
    Tiger Shark Sjakie's Avatar
    Join Date
    Oct 2001
    Location
    Brussels / Belgium
    Posts
    524

    Question 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?

  2. #2
    Hammerhead Shark EverlastingGod's Avatar
    Join Date
    Feb 2003
    Location
    MD
    Posts
    1,364
    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

  3. #3
    Tiger Shark Sjakie's Avatar
    Join Date
    Oct 2001
    Location
    Brussels / Belgium
    Posts
    524
    Hi, thanks for your help but I absolutely don't understand what you are talking about.

  4. #4
    Hammerhead Shark EverlastingGod's Avatar
    Join Date
    Feb 2003
    Location
    MD
    Posts
    1,364
    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

  5. #5
    Tiger Shark Sjakie's Avatar
    Join Date
    Oct 2001
    Location
    Brussels / Belgium
    Posts
    524

    Thumbs up

    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!

  6. #6
    Tiger Shark Sjakie's Avatar
    Join Date
    Oct 2001
    Location
    Brussels / Belgium
    Posts
    524
    I searched around for the code but I can't find it. Does anybody knows where I can?

  7. #7
    Goldfish fhtb's Avatar
    Join Date
    Oct 2002
    Location
    Donegal
    Posts
    61
    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

  8. #8
    Tiger Shark Sjakie's Avatar
    Join Date
    Oct 2001
    Location
    Brussels / Belgium
    Posts
    524
    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
  •