|
Posted by jojo on 06/20/06 20:43
Evertjan. schrieb:
> 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.
I'm sorry, I missed that this question is crossposted... I read it at
alt.html which does not only deal with JavaScript...
>
> 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)
>>
>
>
>
Navigation:
[Reply to this message]
|