By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

<object> and IE6/NS7

P: n/a
(I posted this as a reply to my thread about iframes, but I think it
may get mostly ignored there.)

http://ataru.gomen.org/files/test.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>&lt;object&gt; test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function set() {
window.document.getElementById( 'obj').data="http://www.yahoo.com";
}
//-->
</script>
</head>
<body>
<div>
<object type="text/html" data="" width="400" height="300" id="obj"></object>
</div>
<script type="text/javascript">
<!--
set();
-->
</script>
</body>
</html>

Neither IE 6 nor Netscape 7.1 load www.yahoo.com in the embedded HTML
object. Opera 7.54 does. Are IE and Netscape correct to behave as
they do?

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Christopher Benson-Manica wrote:
(I posted this as a reply to my thread about iframes, but I think it
may get mostly ignored there.)

http://ataru.gomen.org/files/test.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<title>&lt;object&gt; test</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"> <script type="text/javascript">
<!--
function set() {
window.document.getElementById(
'obj').data="http://www.yahoo.com"; }
//-->
</script>
</head>
<body>
<div>
<object type="text/html" data="" width="400" height="300"
id="obj"></object> </div>
<script type="text/javascript">
<!--
set();
-->
</script>
</body>
</html>

Neither IE 6 nor Netscape 7.1 load www.yahoo.com in the embedded HTML
object. Opera 7.54 does. Are IE and Netscape correct to behave as
they do?


As the following:

<object type="text/html" data="http://www.yahoo.com" width="400"
height="300" id="obj"></object>

works, this looks rather like a javascript issue to me than an HTML one.
Anyway it seems to be a bug in Mozilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=192891

You also find a workaround there. Maybe it works for IE, too.

--
Markus
Jul 23 '05 #2

P: n/a
DU
Christopher Benson-Manica wrote:
(I posted this as a reply to my thread about iframes, but I think it
may get mostly ignored there.)


Wow... you posted a post in the other thread, then waited 2 hours and
then decided to fragment the discussion you triggered by creating
another thread. Maybe you first need to learn how to post and then to
explain exactly what you are trying to achieve.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #3

P: n/a
DU
DU wrote:
Christopher Benson-Manica wrote:
(I posted this as a reply to my thread about iframes, but I think it
may get mostly ignored there.)


5 min. after you posted a post in the other thread in this newsgroup,
you even went as to multi-post in other newsgroups. Man, you sure want
to be ignored otherwise you will get filtered.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #4

P: n/a
DU <dr*******@hotnospammail.com> spoke thus:
Wow... you posted a post in the other thread, then waited 2 hours and
then decided to fragment the discussion you triggered by creating
another thread. Maybe you first need to learn how to post and then to
explain exactly what you are trying to achieve.


And that post has gotten... 0 replies, compared to the useful reply I
received to the top-level post.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #5

P: n/a
DU <dr*******@hotnospammail.com> spoke thus:
5 min. after you posted a post in the other thread in this newsgroup,
you even went as to multi-post in other newsgroups. Man, you sure want
to be ignored otherwise you will get filtered.


A single other newsgroup, where the discussion was highly likely to
have nothing to do with HTML markup. I had no idea whether the script
or the markup, if either, were at fault.

I will presume that you have nothing to add in the way of helpful
suggestions.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #6

P: n/a
Markus Ernst <derernst@no#sp#amgmx.ch> spoke thus:
works, this looks rather like a javascript issue to me than an HTML one.
I suspected as much, but I wasn't positive that the <object> markup
wasn't defective in some way.
https://bugzilla.mozilla.org/show_bug.cgi?id=192891
You also find a workaround there. Maybe it works for IE, too.


I'll give it a shot in the morning. (I'm using <iframe> and the
transitional DTD in the meantime.) Thanks!

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.