<=IE7 Nested elements not rendering

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Darkzaelus
Forum Commoner
Posts: 94
Joined: Tue Sep 09, 2008 7:02 am

<=IE7 Nested elements not rendering

Post by Darkzaelus »

Hiya, in IE7 and downwards, whenever I create complex nested elements, like DLs for use in a form, <IE8 refuses to render them. Is there anything (apart from appending to the parent container's innerHTML, which removes events and custom functions) that I can do to render it properly?

Cheers,

Darkzaelus
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: <=IE7 Nested elements not rendering

Post by kaszu »

Problem probably is with hasLayout. Try settings zoom or height or width etc. to the container.
Darkzaelus
Forum Commoner
Posts: 94
Joined: Tue Sep 09, 2008 7:02 am

Re: <=IE7 Nested elements not rendering

Post by Darkzaelus »

I've tried that now, but i'm still left with a blank layout, with no html inside of the wrapper div, and the hasLayout property set to -1 :(

I've set the parent div's:

Code: Select all

wrap.style.zoom='1';
, and in the css class i've added

Code: Select all

min-height:0
Height and width are already provided in the class style as well.

I'm not too sure what to do now.

Darkzaelus
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: <=IE7 Nested elements not rendering

Post by kaszu »

Please provide html/css or an url.
Darkzaelus
Forum Commoner
Posts: 94
Joined: Tue Sep 09, 2008 7:02 am

Re: <=IE7 Nested elements not rendering

Post by Darkzaelus »

I'm really sorry! Turns out it was IE failing on extra commas in arrays! It couldn't get past hat point of the code, so it wasn't rendering. Thank god for IETester!

Thanks for your time :)

Darkzaelus
Post Reply