Return Of The IFrame

The original IFrame. Embedding an image within an image, called the Droste effect, via Wikipedia


IFrames let you stick a webpage within a webpage. This is cool, but can quickly lead to Inception style weirdness and thought crime. They have been shunned by the web design community for decades, until Facebook brought them back this year, for folding the web into Facebook pages.

When I first learned HTML, I thought IFrames were amazing. Instead of having one HTML page, you could divide up the window into frames, each being a different page. The possibilities were endless. At some point, however, IFrames became really uncool, the equivalent of giving your website a jheri curl. Hated even. But now Facebook is using IFrames. So I guess they’re cool again.

Why IFrames Suck

Image from The World’s Worst Website

IFrames are generally hideous, like the example above. But they don’t necessarily have to be. As usability guru Jakob Nielsen pointed out in 1996, iframes kinda break the Internet. The URL bar on the top no longer tells you where you are, you can’t naturally bookmark or share pages, they break the concept of the webpage as a unitary object, and they drive search engines crazy. That latter reason more than anything was why people largely abandoned them. Frames simply became bad business.

Why IFrames Really Suck

That’s simply bad design. IFrames can be used for much worse evil. The latest WordPress update (3.1.4, released today, please update now) protects against something called clickjacking. This is a variant of the Confused Deputy problem, also known as ‘Who Shot The Sherriff?’

Essentially, you think you’re on one page, but there’s another invisible page layered on top of it. As an example

The user receives an email with a link to a video about a news item, but another valid page, say a product page on amazon.com, can be “hidden” on top or underneath the “PLAY” button of the news video. The user tries to “play” the video but actually “buys” the product from Amazon (Wikipedia)

This is horrible. Have I seen less malicious IFrame hacks on my own sites? Why yes I have.

How Facebook Made IFrames Cool Again

Facebook IFrame tunnel. Obviously bad usage, correct usage generally looks cool. Image by Ruiwen

Regardless, indi.ca now uses IFrames. If you scroll down, the Facebook social box is an IFrame. Facebook has brought IFrames from 1996 back to the future. But why? And how?

Because IFrames are actually awesome. They enable you to put a whole application inside another page without recoding it there or without using Javascript. It’s because of their power that they’re used for evil. They’re like swords. Or MSG.

Facebook needs IFrames because people (especially companies with pages) have outgrown the limited feature set that Facebook provides. Facebook isn’t actually the web, it is its own walled garden, running on deeply customized code and a very different philosophy. Companies, however, want to put their product or about pages without dealing with that. So IFrames simply let them slap their own HTML into the walled garden.

This has security problems, but so does everything. What IFrames do, uh, do is enable Facebook to effectively fold the outside Internet into its pages structure. Which is a bit annoying, but still something companies are happy to do (Mashable).

So, that’s how Facebook brought IFrames back. I hope they suck less this time around.

RSS feed | Trackback URI

1 Comment »

2011-06-30 15:36:12

When I first learned HTML I learned to loathe IFrames, anything I made ended up looking sucky. Maybe I suck at design. Good thing I dont do HTML anymore

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

email indi AT indi.ca.


Recent Comments


Crows Island Beach (In Shambles) (5)

Angel: We need a link to the “Dirty Indian” post you did sometime ago, and an equivalent effort!

Omr: People need to be educated NOT to live like animals in filth? One would have thought this is basic common sense – obviously not in Sri Lanka. In Sri Lanka, the general population seems to enjoy living in squalour. Have rubbish? Just...

F.M.: Indi, this is fantastic; not the state of Crow Island, but the fact that you are travelling around the city and capturing images like this to make us all aware of parts of the city that most people dont visit too often. Omr, dont you think...

Lasantha’s Death (22)

Raja Perera: Who killed cock Robin?…&# 8230;… You know the answer, I knew it, and the others likewise but don’t want to talk about it. Every one of us has sewn our lips, so that we won’t even talk about it because we know...

The Tenuous Middle Class (27)

n: So the minimum Z score is a sliding scale?

the way of the dodo: The qualifications getting into university are 3 simple passes. With three S you can even apply for moratuwa engineering or the colombo medical faculty, but you won’t get in. The UGC will cut off admission based on the Z...

n: If the minimum Z score guarantees admission then how do you explain why according to the UGC website only 17% of qualified students were admitted to universities?

WTF Is With The Economy (Continued) (8)

shammi: Because you’re my favourite avatar and all Dodo, I wont point out that man does not live by vegetable alone, and I see that even you, are not decadent enough to be completely unaware that there’s a need to make things easier...

the way of the dodo: check the vegetable prices shammi. Most of them are down by 40-50%. hopefully this will make life a little easier for people.

Ladder In The Midnight Sun (Photos) (1)

greene: pink ladders and other stuff that make no sense ; sponsored by the colombo art biennale

Social Media


Twitter
Facebook