Code in Protaculous worked fine, not anymore....

Thanks to Walterd I was using a piece of code to force IE6 to show a fixed layer DIV (containing my navigation) in front of everything like the rest of the civilized world.

Today I discovered that this does not work anymore. I do not know why. Maybe collaps with another piece of Javascript?

Is there a trick to change the CSS for that DIV instead of using Javascript?
Like a conditional? Make that DIV for IE6 absolute in stead of fixed? It’s only one word…
I even tried Crowbar with a EE conditional, but no good result. If that is still a good solution, I’ll try more, but I must be sure that it’s a good way.

Even if only 18% still use IE6, it’s almost 1/5 of my visitors, so it’s important enough…
Thanks…


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’d love to see a link, because there might be a simple reason why
working code went “bad”. But the InterTubes provide another idea, from
the fevered brow of Eric Meyer.

Try this:

Get rid of the JavaScript trick entirely.

In the Page / HTML Markup (before /head) dialog:

<style type="text/css">
html>body { height: inherit; overflow: visible; }
</style>

Set whatever you like to position:fixed using the Inspector.

Walter

On Feb 20, 2009, at 9:46 AM, atelier wrote:

Thanks to Walterd I was using a piece of code to force IE6 to show a
fixed layer DIV (containing my navigation) in front of everything
like the rest of the civilized world.

Today I discovered that this does not work anymore. I do not know
why. Maybe collaps with another piece of Javascript?

Is there a trick to change the CSS for that DIV instead of using
Javascript?
Like a conditional? Make that DIV for IE6 absolute in stead of
fixed? It’s only one word…
I even tried Crowbar with a EE conditional, but no good result. If
that is still a good solution, I’ll try more, but I must be sure
that it’s a good way.

Even if only 18% still use IE6, it’s almost 1/5 of my visitors, so
it’s important enough…
Thanks…


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter

Link = http://www.monumentmaker.nl
Script on all the pages
I applied your fix (from this thread) on a testpage
http://www.monumentmaker.nl/index.php/mm/home2.php

Mayby I did something not correct, but I see no change in IE6 (Netrenderer, I do not have a PC)


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m going to guess that the page was valid to begin with, and then
something was added to it that caused it to render in Quirks Mode in
IE7. IE7 only supports position:fixed in Standards Mode (yes, an
oxymoron in IE…).

If you’re using this trick: http://pastie.org/321383 then try changing
the first line from

if(Prototype.Browser.IE && parseInt(navigator.appVersion) < 7){

to

if(Prototype.Browser.IE && parseInt(navigator.appVersion) <= 7){

(adding IE7 to the party). IF that fixes it, then the problem is
actually somewhere in your HTML, and a validator will tell you what
that is.

Walter

On Feb 20, 2009, at 10:07 AM, Walter Lee Davis wrote:

I’d love to see a link, because there might be a simple reason why
working code went “bad”


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oh. There’s your problem. Netrenderer does not run any JavaScript. So
you won’t see the fix there ever.

Walter

On Feb 20, 2009, at 10:36 AM, atelier wrote:

Mayby I did something not correct, but I see no change in IE6
(Netrenderer, I do not have a PC)


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, I used that code from http://pastie.org/321383 as it was. I noticed the malfunction in IE6 this morning as I was user-testing the site.

I am a bit unsure what to change in that code, I cannot figure that out (I read these messages on the web) I’m sorry.

I begin to be very insecure about this. How can I be sure my fixed-layer works?

Is there no way to make a CSS conditional? Like if IE -->#navtop=absolute ifelse #navtop=fixed endif or something?

I do not care if IE visitors see my site different, now they do not see my navigation at all…

Thanks…:slight_smile:


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Did you see the bug in IE6 under Windows, or did you see it on
Netrenderer? My fix relies on JavaScript, and without that (as in
Netrenderer) you won’t get the benefits of the fix.

Walter

On Feb 20, 2009, at 10:50 AM, atelier wrote:

Yes, I used that code from http://pastie.org/321383 as it was. I
noticed the malfunction in IE6 this morning as I was user-testing
the site.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I saw it in IE6


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, then try removing the entire JS method, add the CSS I posted
earlier, and see if that fixes it in IE6. I’ll test it later if I get
a chance. I saw no down-side to it in Mac browsers here.

Walter

On Feb 20, 2009, at 11:29 AM, atelier wrote:

I saw it in IE6


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Done.
Unfortunately I see no good result in Netrenderer. Testpage is still on: http://www.monumentmaker.nl/index.php/mm/home2

Thanks for looking at this, Walter!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m almost there, Walter, almost there. Testpage is changed now.

I used *BrowserSniff to detect: if browser ==IE AND version<6
I made a new DIV #IEnavbar, and inside the conditional with Crowbar.
Works.
Now I must find a methode to wrap the whole DIV inside that conditional, in order to make it dissappear completely. I tried Crowbar (insert at beginning) but that does not work, unfortunately.

Is there a methode in FW to do that? Or must I start learning handcoding now because I reached the end of the World as we know it…

For more info on browsers sniff please see Forums | ExpressionEngine


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Pity that I cannot edit previous posts (aka I MUST learn to wait before post…)
I searched a bit in the list, and discovered a link to your TagWrap.fwaction

And that did the trick.
I can wrap the DIV, it does appear when IE6 comes by. Problem solved. Page is leaner also, can get rid of the js now.

Walter, thanks again for making these very useful pieces of smart software, and thanks for your help.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options