| Posted by Sandman on 06/27/05 17:25 
In article <d9oqbv01oi3@drn.newsguy.com>, Dynamo <Dynamo_member@newsguy.com> 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.
 >
 > 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?
 >
 > As ever any help greatly appreciated.
 
 1. Stop using frames. :)
 
 2. Your problem can't be solved with PHP since each frame loads an individual
 PHP script (or html document) that are unaware whether they are inside a frame
 or not.
 
 The only way is to use JavaScript, that is executed by the browser itself,
 which is the only application that knows the constellation of frames.
 
 --
 Sandman[.net]
  Navigation: [Reply to this message] |