Forum Moderators: open

Message Too Old, No Replies

IE not displaying <object> contents

         

ndk001

11:08 am on Apr 26, 2005 (gmt 0)

10+ Year Member



Hi..

I was originally using I-frames in my code but as it does not validate I switched to the <object> tag to display the external link. This as however brought about some more problems in IE. It all works fine in all the browsers i have tested it on both on and offline (inc IE) but when i upload it IE does not show the content of the <object>.

this is the code i am using :

<OBJECT TYPE="text/html" DATA="news.html" WIDTH="457" HEIGHT="380" standby="Please wait"</OBJECT>

whats going on?

cheers.
neil

BlobFisk

11:25 am on Apr 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The immediate thing that I see is a missing closing tag:

<OBJECT TYPE="text/html" DATA="news.html" WIDTH="457" HEIGHT="380" standby="Please wait"></OBJECT>

ndk001

11:43 am on Apr 26, 2005 (gmt 0)

10+ Year Member



Thats an error on my part, the > is included in the actual code. I must have accidently missed it when copying the code from the html file.

natty

2:27 pm on Apr 26, 2005 (gmt 0)

10+ Year Member



iframes validate .. dont they. what doctype were you using?

ndk001

3:40 pm on Apr 26, 2005 (gmt 0)

10+ Year Member



i am using :

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

i did find this topic: [webmasterworld.com...] in which Tedster suggests using the frameset DTD. However, when i used that it was looking for the <frameset> tag which my page does not include so i reverted back to the strict dtd..

any suggestions as to why the <object> works in all browsers and in IE offline but not online?