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

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

P: n/a
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 <objectbut 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 <objectfrom working.

How do I get that object to work properly?

There seems to be precious little in Google on this.

Mar 30 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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)
mark4asp wrote:
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 <objectbut 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 <objectfrom working.

How do I get that object to work properly?

There seems to be precious little in Google on this.
Mar 30 '07 #2

P: n/a
On 30 Mar 2007 07:32:34 -0700
"mark4asp" <ma******@gmail.comwrote:
I tried replacing the frameset with an <objectbut 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 <objectfrom working.
If doing it in clientside script meets your needs without breaking
accessibility, then go for it.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
Mar 30 '07 #3

P: n/a
mark4asp wrote:
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 <bodyelement, not a <framesetelement).

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Mar 31 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.