You are here: Re: How to get full URL in Frame « HTML « IT news, forums, messages
Re: How to get full URL in Frame

Posted by David Dorward on 08/03/07 15:42

On Aug 3, 4:20 pm, "GTS" <x...@y.net> wrote:
> My client has an odd setup where his web site is hosted on an external
> server but to enable access to it using his servers domain name/url a frame
> is used pointing to the IP address of the external server.

Sounds like typical check-and-nasty frames based DNS hosting. He
really should get proper hosting instead.

> This works fine
> for the top level (first link) with the HTML code below. However, a sub
> page cannot be accessed directly this way. I'm looking for a way to get the
> full URL passed to the frame and putting it into a variable that I can then
> use with the src.

Do you control the server that generates the frame source code? If so,
fix the syntax errors (starting with the missing doctype), then
dynamically generate the src attribute based on the URL of the page
reqested.

Otherwise, you can't do anything about it.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация