design and development for the web


Internet Explorer iframe.onload support

Sunday, July 4th, 2010

I have been trying to trigger javascript after an iframe is loaded with foreign content.  Everything I read told me that the following code should work in all browsers (but, it doesn't):

Read the rest of this »

Javascript Styles

Sunday, August 2nd, 2009

Here's a quick tip for anyone trying to maintain graceful degradation of javascript. Keep all your javascript-dependent styles in a separate stylesheet and use javascript to load those styles immediately in the head of the document.

Read the rest of this »

Mozilla Javascript Option Object

Saturday, January 26th, 2008

I was trouble-shooting a friend's DOM-Script the other day. It consisted of a form select element that was working in Firefox, but not in Explorer.

"Suprise, surprise," was my first thought. But, actually... Explorer had the correct behavior. For once.

Read the rest of this »

An experiment with relative units

Wednesday, January 23rd, 2008

I had this great idea to test out relative units. What if you defined the body's font-size based off of the window's width (or height). So, now you've got a dynamic font-size setting for the body tag... big deal, right? Absolutely!

With a little DOM-Scripting, some creative CSS, and a little elbow grease, we can make a fully scalable page!

Read the rest of this »


Recommended Materials