iosart.com | projects | articles | photos | about

Archive for May, 2004

Crazy layout dance

Thursday, May 27th, 2004

I have noticed that several HTML pages change their layout wildly while loading in the browser. Apparently, this behavior was caused by images at the top of the problematic pages. The image was added using JavaScript: document.writeln(“<IMG SRC=…>”);. Internet Explorer didn’t like that – it had problems determining the correct page layout while loading, so […]

Fooling Apache

Wednesday, May 26th, 2004

Tweaking with the Apache configuration, I encountered some pretty interesting problems. I used mod_rewrite to serve different content based on the HTTP request. Basically, what I was trying to do is this: there are two domains, “one.com” and “two.com” both pointing to the same server. If the user used the first domain name in the […]

IE6 CSS bug

Wednesday, May 26th, 2004

DHTML – using a floated DIV followed by a <DIV STYLE=”clear:both;”> causes some strange behavior in IE6 – a large portion of the page disappears and reappears randomly after refresh and/or mouse hover. What was happening is that the above configuration brought out a bug in IE6 and it drew the (white) background OVER the […]

MFC blues

Wednesday, May 26th, 2004

A release build of a MFC application crashes, while the Debug build works fine. The crash analysis shows that the stack has been overwritten and thus destroyed. Further analysis reveals that the crash occurs inside a ::SetWindowText call in a CEdit sub-classed object. This shouldn’t be my code, right? Wrong. What was happening is that […]