How to (kinda) fix Firefox’s showModalDialog

As someone who has had to write a lot of IE-only code (against my will, I swear!), I was pleased to hear that Firefox 3.0 added support for the IE JavaScript function window.showModalDialog. Being in the middle of re-writing an IE-only web application, I thought this would simplify rewriting the modal dialogs to be compatible with both browsers.

Unfortunately, I don’t think the folks at Mozilla put their best effort into this one.

Read more »

Making tables print pretty in IE, part 2

In my last post, I mentioned that I had come up with a way to prevent tables in Internet Explorer 6 and 7 from looking like this. In this post, I’ll show you how to do it.

(Disclaimer: This method has been found to break if the a cell has a line break in it or is wrapped to a second line).

Read more »

Making tables print pretty in IE, part 1

So I’m currently doing a side job developing a web application to help pay for Wezzle and, y’know, food and shelter.

Basically, I’m making a system that displays tables grabbed from an Oracle database using elaborate queries.  That’s the easy part.  These tables need to be printed out.  That’s the hard part. We’ll talk about that here, specifically in relation to IE7 (the hacks here might not work for Firefox or Chrome).

(Disclaimer: This method has been found to break if the a cell has a line break in it or is wrapped to a second line).

Read more »