Internet Explorer iframe.onload support
Sunday, July 4th, 2010I 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):
design and development for the web
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):
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.
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.
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!
© iedonnie.com. All Rights Reserved.