You are here: Re: HTML page loads external frame « HTML « IT news, forums, messages
Re: HTML page loads external frame

Posted by Evertjan. on 06/20/06 20:33

jojo wrote on 20 jun 2006 in comp.lang.javascript:

> Silver wrote:
>>>
>>> Here is my question. I want that when someone types in the browser
>>> addressbar the address www.mysite.com/first.html, then instead of
>>> loading just the "first.htm" l file, I want to see the entire
>>> "index.html" page and the "first.html" file loaded inside the iFrame.
>>> Is it possible?
>
> Evertjan. wrote:
> [Yes]
>
>> ============= in first.html =============
>>
>> <script type='text/javascript'>
>> if (self == top) location.href='index.html?f=first.html'
>> </script>
>>
>> ============= in index.html =============
>>
>> select the f=filename by location.hash and load the iframe.
>>
>
> For what reason do you need the hash? Its also possible to use SSI (if
> available on the Server) and write into "index.html"

Because this NG is about javascript, and perhaps especially clientsided.

It can also be done by serverside javascript.


> <iframe href="<!--#echo var="http_referer"-->"></iframe> (Don't worry
> about the tag-looking construction in another Tag, this is just a
> SSI-command which is replaced from the server before any browser has to
> validate it)
>



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

 

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

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