You are here: IE _top linking buggy? workaround available? « HTML « IT news, forums, messages
IE _top linking buggy? workaround available?

Posted by Thomas Maier-Komor on 03/21/06 17:57

Hi everybody,

I have a problem with a certain link pattern that gets resolved wrong in
the IE, but works find on Firefox. Maybe somebody has an idea, how to
work around it.

I have an .html file that has a CSS and two div sections, the body
itself is empty. One div section has an embedded object of type
"text/html" that is a table of contents. This embedded object includes
links with target _top that are opened in Firefox in _top, but are
opened in IE in the div section that contains the object holding the
table of contents .html file. Understand what I mean?

Simplified code sample:
index.html:
<html>
<head>
<title>my title</title>
<link rel="stylesheet" type="text/css" href="default.css"/>
</head>
<body>
<div id="toc">
<object data="toc.html" type="text/html" height="100%"
width="220px"></object>
</div>

<div id="body">
some text
</div>
</body>
</html>

toc.html:
<html>
<head>
<title>table of contents</title>
<link rel="stylesheet" type="text/css" href="toc.css"/>
</head>
<body>
<h3> header </h3>
<ul>
<li><a href="1.html" target="_top">entry1</a></li>
<li><a href="2.html" target="_top">entry2</a></li>
</ul>
</body>
</html>

This works perfectly in Firefox and has the advantage that I only need
to maintain a single file for the TOC, without server-side includes,
javascript, php, or anything else. But it does not work in Internet
Explorer...

I would be grateful for any hint or idea how to get it working.

TIA,
Tom

 

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

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