How can I replace a <frameset> with an <object> aka IE6/strict box model (and hacks).

M

mark4asp

According to this <http://css-discuss.incutio.com/?page=BoxModelHack>
IE6 will display differently to the W3C standard. Only IE6/strict and
I suppose IE 7 display correctly. IE 6 transitional and frameset are
wrong.

My users are still using IE 6 and I have a frameset in most of my
pages - this is just a one line tickertape thing but it has to stay
there. The guy who wrote the site made some errors here (specifying
xml strict but sticking frameset in). I want my code to be valid and
prefer to use HTML 4.01 strict.

The options I have are to tell IE to use HTML 4.01 strict and leave
the frameset in but that will not solve the problem (because won't IE
revert to quirks mode when it finds the frameset?). Naturally the page
currently fails the W3C validator (because it has a frameset).

I tried replacing the frameset with an <object> but it didn't solve
anything; I couldn't get the object to work. It appears with a scroll
bar on the right and no content.

The code for the frameset is generated using ASP.NET server-side code
but the page is tiny as there are 5 alternate lines which occupy the
tickertape space. It is just one line high. I suppose I could whistle
up some javascript hack to get a page that didn't need postbacks to
display - if tha is what's stopping the <object> from working.

How do I get that object to work properly?

There seems to be precious little in Google on this.
 
M

mark4asp

In which case, wouldn't an <iframe> be a possible solution...?

No, because it's no valid strict HTML, not according to the W3C
validator.

Anyway I found an old ASP article that does it and I shall convert it
to a control.

Thanks anyhow - but the object really isn't a replacement for a frame
despite what I read elsewhere - I just got confused because I thought
it could be. I instinctively knew I needed a tickertape control.
 
B

bruce barker

as the frameset is its own page with no other html, you can still leave
the actual pages html in strict mode.


-- bruce (sqlwork.com)
 
N

Nick Kew

I tried replacing the frameset with an <object> but it didn't solve
anything; I couldn't get the object to work. It appears with a scroll
bar on the right and no content.

Would inlining the hitherto-framed material meet your needs?

If so, you might want to look at
http://apache.webthing.com/mod_publisher/macro.html
The code for the frameset is generated using ASP.NET server-side code
but the page is tiny as there are 5 alternate lines which occupy the
tickertape space. It is just one line high. I suppose I could whistle
up some javascript hack to get a page that didn't need postbacks to
display - if tha is what's stopping the <object> from working.

If doing it in clientside script meets your needs without breaking
accessibility, then go for it.
 
D

David Dorward

mark4asp said:
According to this <http://css-discuss.incutio.com/?page=BoxModelHack>
IE6 will display differently to the W3C standard. Only IE6/strict and
I suppose IE 7 display correctly. IE 6 transitional and frameset are
wrong.

No. The choice between Standards and Quirks rendering modes is not as simple
as "Strict DTD" Vs "Other DTD". There is lots of documentation out there,
including Microsoft's own, so I won't go into detail here.

.... but if you are going to use a frameset (which brings its own problems)
then the content included in the frameset isn't going to be displayed in IE
anyway - it supports frames and doesn't (AFAIK) have the facility to turn
them off.

The only pages to which CSS will be applied are those loaded into the
frames, and they have their own Doctypes (which should not be frameset
Doctypes since they have a <body> element, not a <frameset> element).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top