A moron sizes an iframe to its contents
I know my blogroll is suffering from link rot, so during this holiday interstice, I decided I’d finally get around to fixing it up. But first, to make it super-easy, I decided to put it into an iframe, an html widget that pulls in content from another file. That way I could simply edit a simple file and do so simply, without having to go into the Movable Type template editor. (Yes, I looked at one of the MT plugins, but it requires MT v3.3, and upgrading to v3.2 is a lot like installing 3.3, which I am certain I will screw up.)
So, today I’ve spent several simple hours trying to figure out how to get an iframe to size to its contents. It’s more complex than I can handle. PartMost of the problem is my own vagueness about how the object model works. For example, in the many solutions I found via Google, I’m never quite sure whether the code goes in the container document or the contents document. So, I try both. Every possible freaking variation. Some of the problem is that the object model is so rich with possibilities. Some of the problem is that there are differences among the browsers, so you first have to ask politely (and programmatically) which browser is in use and then provide the appropriate function. And part of it is that it’s too damn hard.
So, I’m giving up for now. And, believe it or not, I’m consoling myself by going back to the chief object of frustration in my life: MythTV.
I just love the holidays, don’t you? [Tags: iframe holidays html javascript I_am_an_idiot reasons_to_drink]
Categories: Uncategorized dw