Forum Moderators: coopster

Message Too Old, No Replies

PHP equivalent to javascript document.location?

js not possible for external framed sites

         

Hailey

11:33 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



I've setup a page with navigation controls as the top frame, and a bottom frame as any external site they choose. With javascript I found you cannot retrieve info from the external site and write info to the navigation frame. The pages have to be from the same server.

This sucks, because to display the title from the external site I can't do something like window.top.frames['external].document.title, I had to have a PHP script read the page and do regular expressions to save text found between <title> </title> tags.

Now, I'm in another jam. I just want to print a "You are here: window.top.frames['external'].document.location.href" in the navigation frame, but it is not possible. Is there way in PHP? Or should I just give up...

Thanks for any insights.

dlefree

10:54 am on Aug 17, 2005 (gmt 0)

10+ Year Member



This link to an entry from the PHP manual should answer all your questions (and then some!):

[us3.php.net...]