473,471 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IE _top linking buggy? workaround available?

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
Mar 21 '06 #1
16 2535
Thomas Maier-Komor wrote:
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?

<snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW FAQs: How do I include one HTML file in another?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 21 '06 #2
Jonathan N. Little wrote:
Thomas Maier-Komor wrote:
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?

<snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW FAQs: How do I include one HTML file in another?


that's a nice link, but it only offers the solutions I cannot use and
explicitly excluded as an option in my original posting.

Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
Mar 21 '06 #3
Thomas Maier-Komor wrote:
Jonathan N. Little wrote:
Thomas Maier-Komor wrote:
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?

<snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW FAQs: How do I include one HTML file in another?


that's a nice link, but it only offers the solutions I cannot use and
explicitly excluded as an option in my original posting.

Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...


My point was that is not how you should do file includes, Do you have a URL?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 22 '06 #4
Jonathan N. Little wrote:
Thomas Maier-Komor wrote:
Jonathan N. Little wrote:
Thomas Maier-Komor wrote:
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?

<snip code>
http://www.boutell.com/newfaq/creating/include.html
WWW FAQs: How do I include one HTML file in another?


that's a nice link, but it only offers the solutions I cannot use and
explicitly excluded as an option in my original posting.

Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...


My point was that is not how you should do file includes, Do you have a
URL?


yes, www.maier-komor.de.

As I said, it works great on Firefox, but unfortunately IE fails to
handle the links in the navigation area.
Mar 22 '06 #5
With neither quill nor qualm, Thomas Maier-Komor quothed:
My point was that is not how you should do file includes, Do you have a
URL?


yes, www.maier-komor.de.

As I said, it works great on Firefox, but unfortunately IE fails to
handle the links in the navigation area.


You have no closing object tag - </object>.

--
Neredbojias
Contrary to popular belief, it is believable.
Mar 22 '06 #6
Thomas Maier-Komor wrote:
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...


Dumping 80-90% of potential visitors seems a fairly drastic own goal,
even for a personal site.

How about using ie include comments to make your site framed (for ie only).

I don't much like frames, or ie, but ie comments are a neat & compliant
solution.

Chris
Mar 22 '06 #7
Neredbojias wrote:
With neither quill nor qualm, Thomas Maier-Komor quothed:
My point was that is not how you should do file includes, Do you have a
URL?

yes, www.maier-komor.de.

As I said, it works great on Firefox, but unfortunately IE fails to
handle the links in the navigation area.


You have no closing object tag - </object>.


Yep, validation can help here:

http://validator.w3.org/check?uri=ht...line&verbose=1
Result for http://www.maier-komor.de/ - W3C Markup Validator
You're on an Apache webserver, you must have PHP. This object include is
just so the 'wrong way' to do this....

index.php:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Welcome to maier-komor.de</title>
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<div id="toc">
<?php include_once('toc.html');?>
</div>

<div id="body">

<h1>Welcome to maier-komor.de</h1>
This is the web site of Thomas Maier-Komor.
<br>
<hr><address><a href="mailto:th****@maier-komor.de">Thomas
Maier-Komor</a></address>
</div>
</body>
</html>
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 22 '06 #8
Jonathan N. Little wrote:
Neredbojias wrote:
With neither quill nor qualm, Thomas Maier-Komor quothed:
My point was that is not how you should do file includes, Do you have a
URL?

yes, www.maier-komor.de.

As I said, it works great on Firefox, but unfortunately IE fails to
handle the links in the navigation area.


You have no closing object tag - </object>.


Yep, validation can help here:

http://validator.w3.org/check?uri=ht...line&verbose=1

Result for http://www.maier-komor.de/ - W3C Markup Validator
You're on an Apache webserver, you must have PHP. This object include is
just so the 'wrong way' to do this....

index.php:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Welcome to maier-komor.de</title>
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<div id="toc">
<?php include_once('toc.html');?>
</div>

<div id="body">

<h1>Welcome to maier-komor.de</h1>
This is the web site of Thomas Maier-Komor.
<br>
<hr><address><a href="mailto:th****@maier-komor.de">Thomas
Maier-Komor</a></address>
</div>
</body>
</html>


I tested PHP before, but I am not allowed to use it. Your sample
(test.html and test.php) on my server just does not include the
requested file.

My provider disables PHP and SIS explicitly for me, because I don't pay
enough ;-) So I will probably have to invest the additional ~60EUR/year
to get PHP or SIS or switch to another provider.

Does anybody know a decent German provider that overs either SIS or PHP
at < 30EUR/year?

Thanks anyway for all comments.

Cheers,
Tom
Mar 22 '06 #9
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
Dumping 80-90% of potential visitors seems a fairly drastic own goal,
even for a personal site.


my visitors are >90% UNIX users that are interested in mbuffer. So IE
support is more or less just for completeness. But I am already having a
hard time getting the CSS right for IE. Selfhtml misses the details how
one calculates the margins and paddings for IE, it only has very short
examples without any further description.
How about using ie include comments to make your site framed (for ie only).

I thought about this, but IFrames look awfully (I couldn't get rid of
the black frame). And normal frames can only be placed in rows and
columns. But doing it for IE like this might be an alternative, although
it sounds like doing all work double to me.
I don't much like frames, or ie, but ie comments are a neat & compliant
solution.


Could you point me to an example (not selfhtml) that goes a little bit
into the details of IE comments?

Thanks,
Tom

Mar 22 '06 #10
Thomas Maier-Komor wrote:
Jonathan N. Little wrote:
Neredbojias wrote:
With neither quill nor qualm, Thomas Maier-Komor quothed:

> My point was that is not how you should do file includes, Do you have a
> URL?
>
yes, www.maier-komor.de.

As I said, it works great on Firefox, but unfortunately IE fails to
handle the links in the navigation area.
You have no closing object tag - </object>.

Yep, validation can help here:

http://validator.w3.org/check?uri=ht...line&verbose=1

Result for http://www.maier-komor.de/ - W3C Markup Validator
You're on an Apache webserver, you must have PHP. This object include is
just so the 'wrong way' to do this....

index.php:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Welcome to maier-komor.de</title>
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<div id="toc">
<?php include_once('toc.html');?>
</div>

<div id="body">

<h1>Welcome to maier-komor.de</h1>
This is the web site of Thomas Maier-Komor.
<br>
<hr><address><a href="mailto:th****@maier-komor.de">Thomas
Maier-Komor</a></address>
</div>
</body>
</html>


I tested PHP before, but I am not allowed to use it. Your sample
(test.html and test.php) on my server just does not include the
requested file.

My provider disables PHP and SIS explicitly for me, because I don't pay
enough ;-) So I will probably have to invest the additional ~60EUR/year
to get PHP or SIS or switch to another provider.

Does anybody know a decent German provider that overs either SIS or PHP
at < 30EUR/year?


http://shells24.com/de/hostingdetails.htm

Axel
Mar 22 '06 #11
Thomas Maier-Komor wrote:
<snip>
I tested PHP before, but I am not allowed to use it. Your sample
(test.html and test.php) on my server just does not include the
requested file.

My provider disables PHP and SIS explicitly for me, because I don't pay
enough ;-) So I will probably have to invest the additional ~60EUR/year
to get PHP or SIS or switch to another provider.

Does anybody know a decent German provider that overs either SIS or PHP
at < 30EUR/year?


30EUR | 37USD/yr is pretty cheap but:

http://www.google.com/search?hl=en&l...hp&btnG=Search
cheap web hosting $35 year php - Google Search

Who says it has to be a German Provider?

http://www.name2host.com/price.htm
Cheap web hosting & free domain: $2.99/mo for 100Mb, CGI/PHP/MySql ...

For a few EURs more ...

I don't use a local hosting company, but one across the country. Less
than 1/2 the price and many times the disk space and transfer rate...

NOTE 1: I know nothing about hosting company above, just an example that
1: they are out there and 2: easy to find.

NOTE 2: What you are doing now is what is call a 'real kludge' and will
always be problematic.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 22 '06 #12
Thomas Maier-Komor wrote:
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...

Dumping 80-90% of potential visitors seems a fairly drastic own goal,
even for a personal site.


my visitors are >90% UNIX users that are interested in mbuffer. So IE
support is more or less just for completeness. But I am already having a
hard time getting the CSS right for IE. Selfhtml misses the details how
one calculates the margins and paddings for IE, it only has very short
examples without any further description.
How about using ie include comments to make your site framed (for ie only).


I thought about this, but IFrames look awfully (I couldn't get rid of
the black frame). And normal frames can only be placed in rows and
columns. But doing it for IE like this might be an alternative, although
it sounds like doing all work double to me.
I don't much like frames, or ie, but ie comments are a neat & compliant
solution.


Could you point me to an example (not selfhtml) that goes a little bit
into the details of IE comments?


http://msdn.microsoft.com/workshop/a...omment_ovw.asp
Google for internet explorer conditional comments.

Basically
<!--[if IE]>Do yourself a favour - get <em>Firefox</em>.<![endif]-->

Note that this is a syntactically valid html comment, ignored by all
well-behaved browsers, but actioned by ie. You can also specify
different behaviour in different versions, in the unlikely event that
something gets fixed.

Unfortunately the syntax for including something in other browsers & not
ie is not valid (unsurprisingly).
<[if !IE]>Happy Days<![endif]>

Chris
Mar 22 '06 #13
On Wed, 22 Mar 2006, Chris Sharman wrote:
http://msdn.microsoft.com/workshop/a...omment_ovw.asp
Google for internet explorer conditional comments.

Basically
<!--[if IE]>Do yourself a favour - get <em>Firefox</em>.<![endif]-->

Note that this is a syntactically valid html comment, ignored by all
well-behaved browsers, but actioned by ie.
Indeed.
Unfortunately the syntax for including something in other browsers &
not ie is not valid (unsurprisingly). <[if !IE]>Happy Days<![endif]>


After I had devised a way of doing that with valid syntax, I found
that someone else had already done so, and had come up with a similar,
but slightly different, answer.

I haven't extensively tested either one (viz. I only tried IE6), but
this is its temporary working home, anyway :
http://ppewww.ph.gla.ac.uk/~flavell/tests/obj.html

Here's my recipe:

<!--[if !IE]>
-->

....content for www-compatible browsers...

<!--
<![endif]-->

The newlines are unlikely to be significant, I think - this
ought to function equally well

<!--[if !IE]> -->

[...content for www-compatible browsers...]

<!-- <![endif]-->

or maybe even the whitespace is redundant, I don't know.

Whereas, the technique from "Object Paranoia" goes like this, quoting
from their web page:

---
/

<!--[if !IE]> <-->
<p>
Content for everyone except Internet Explorer
</p>
<!--> <![endif]-->

\___
I really have no idea whether their extra pointy brackets are doing
anything beneficial.

Hope this is useful - let me/us know if there's something goes wrong
with one or the other in some situation that I hadn't tested.
thanks.
Mar 22 '06 #14
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
Dumping 80-90% of potential visitors seems a fairly drastic own goal,
even for a personal site.


my visitors are >90% UNIX users that are interested in mbuffer. So IE
support is more or less just for completeness. But I am already having a
hard time getting the CSS right for IE. Selfhtml misses the details how
one calculates the margins and paddings for IE, it only has very short
examples without any further description.
How about using ie include comments to make your site framed (for ie only).

I thought about this, but IFrames look awfully (I couldn't get rid of
the black frame). And normal frames can only be placed in rows and
columns. But doing it for IE like this might be an alternative, although
it sounds like doing all work double to me.
I don't much like frames, or ie, but ie comments are a neat & compliant
solution.


Could you point me to an example (not selfhtml) that goes a little bit
into the details of IE comments?

Thanks,
Tom
Mar 23 '06 #15
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
Dumping 80-90% of potential visitors seems a fairly drastic own goal,
even for a personal site.


my visitors are >90% UNIX users that are interested in mbuffer. So IE
support is more or less just for completeness. But I am already having a
hard time getting the CSS right for IE. Selfhtml misses the details how
one calculates the margins and paddings for IE, it only has very short
examples without any further description.
How about using ie include comments to make your site framed (for ie
only).


I thought about this, but IFrames look awfully (I couldn't get rid of
the black frame). And normal frames can only be placed in rows and
columns. But doing it for IE like this might be an alternative, although
it sounds like doing all work double to me.
I don't much like frames, or ie, but ie comments are a neat & compliant
solution.


Could you point me to an example (not selfhtml) that goes a little bit
into the details of IE comments?


http://msdn.microsoft.com/workshop/a...omment_ovw.asp
Google for internet explorer conditional comments.

Basically
<!--[if IE]>Do yourself a favour - get <em>Firefox</em>.<![endif]-->

Note that this is a syntactically valid html comment, ignored by all
well-behaved browsers, but actioned by ie. You can also specify
different behaviour in different versions, in the unlikely event that
something gets fixed.

Unfortunately the syntax for including something in other browsers & not
ie is not valid (unsurprisingly).
<[if !IE]>Happy Days<![endif]>

Chris


Thanks, I will try to do it with Iframes for IE.

Cheers,
Tom
Mar 23 '06 #16
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Chris Sharman wrote:
Thomas Maier-Komor wrote:
Any other idea concerning my problem? If not I am probably going to
cancel IE support, as it looks like a bug to me, how IE handles this
situation...
Dumping 80-90% of potential visitors seems a fairly drastic own goal,
even for a personal site.


my visitors are >90% UNIX users that are interested in mbuffer. So IE
support is more or less just for completeness. But I am already having a
hard time getting the CSS right for IE. Selfhtml misses the details how
one calculates the margins and paddings for IE, it only has very short
examples without any further description.
How about using ie include comments to make your site framed (for ie
only).


I thought about this, but IFrames look awfully (I couldn't get rid of
the black frame). And normal frames can only be placed in rows and
columns. But doing it for IE like this might be an alternative, although
it sounds like doing all work double to me.
I don't much like frames, or ie, but ie comments are a neat & compliant
solution.


Could you point me to an example (not selfhtml) that goes a little bit
into the details of IE comments?


http://msdn.microsoft.com/workshop/a...omment_ovw.asp
Google for internet explorer conditional comments.

Basically
<!--[if IE]>Do yourself a favour - get <em>Firefox</em>.<![endif]-->

Note that this is a syntactically valid html comment, ignored by all
well-behaved browsers, but actioned by ie. You can also specify
different behaviour in different versions, in the unlikely event that
something gets fixed.

Unfortunately the syntax for including something in other browsers & not
ie is not valid (unsurprisingly).
<[if !IE]>Happy Days<![endif]>

Chris


Thanks, I will try to do it with Iframes for IE.

Cheers,
Tom
Mar 23 '06 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Adams-Blake Co. | last post by:
I have an application with two frames... the traditional left hand menu strip and the large right-hand main window. I want to "break out" and display an error page so that they can't see the left...
8
by: Dave | last post by:
Hello, I have written a website www.pusspaws.net, my problem is in the gallery section. I have coded ... <object type="text/html" data="galleryobj.html" border="0" width="422"...
7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
33
by: randau | last post by:
Linking to a Targeted Browser Window I'd like to open reference links to other web sites in a separate browser window from the browser window hosting my own web site pages. The Link Target...
11
by: Zoury | last post by:
Hi there! :O) I've noticed some strange behavior with the VS IDE. Here's two a can think of right now... but those are most fusstrating i've encountered. 1. Every now and then, I haven't...
0
by: Gustavo L. Fabro | last post by:
Greetings! I found myself with a LNK2020 linking problem using VS.NET 2003 under a situation that I was able to replicate in a small project. I found one workaround for the problem too, but...
0
by: jcriv | last post by:
Hi, We have a large web app with a tree menu. All works fine when I run this with IE 6 as the client. However, when I run with Mozilla FireFox, Netscape, etc I get errors trying to navigate...
9
by: Elliot Rodriguez | last post by:
WinXP Pro Let me preface this by saying I have developed with the .NET IDE since its release, and I consider myself reasonably savvy with it. I have a medium sized form with about 120 controls...
16
by: ssecorp | last post by:
Is there a way to view all the modules I have available for import from within Python? Like writing in the interpreter: import.modules Also, is there anything like Cpan for Python?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.