Posted by Dynamo on 06/27/05 16:50
In article <42bff605$0$50382$e4fe514c@news.xs4all.nl>, Erwin Moller says...
>
>Dynamo wrote:
>
>> Hi
>>
>> My site uses frames and some of the frame pages are ranked higher in
>> search engine rankings than the main page. When somebody clicks on the
>> link it takes them to the frame page and they don't see my page as it
>> should be viewed plus it displays a javascript error.
>
>Frames are evil. :-)
>
>>
>> I need a way using php so that when the link is clicked on in either yahoo
>> or lycos that it loads the main frame html page (not the subframe html)
>> and that
>> the subframe html page is loaded into the correct frame within the
>> mainframe html page. Is this possible and how?
>
>Yes, but I think you better use Javascript instead of PHP.
>Your problem is this: People click on a hyperlink that points to a certain
>html-file (or PHP file).
>Then the page is fetched and delivered into the browser.
>The browser should now check to see if the requested page is in a frame as
>it should.
>
>You can start your html-pages (or html generated by PHP) with certain checks
>to see if there are frames present.
>
>But try reposting this question to a javascript newsgroup for more
>information. (comp.lang.javascript)
>
>Regards,
>Erwin Moller
>
>
>>
>> As ever any help greatly appreciated.
>>
>> TIA
>> Dynamo
>
OK Thanks for that. I'll try posting messgae in javascript newsgroup. And yes I
know that frames are evil but having just achieved number 1 rankings for my site
I am reluctant to make any major changes.
Regards
Dynamo
Navigation:
[Reply to this message]
|