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


Unequal Marriage In Sri Lanka (The Foreign Kind) (18)

DK: My thanks to everyone – well, perhaps not Acro – who has contributed to this. I’ve learned a lot. As I’ve said in a previous string I’m Sri Lankan-born, lost SL citizenship because of prevailing laws at the time I...

Why Does India Suck At The Olympics? (5)

David Blacker: First I’d like to see what the average Indian is. Or Chinese for that matter.

Dinuka: “…b ut the average Indian can take the average Chinese person in a fight.” Really? Do tell me how you came to that conclusion, I’m interested to know.

Carasek: I think David Blacker’s got it about right, though there are a few additional reasons. First, South Asians love their sport as much as the next person, but they don’t necessarily do sport as much as the next person. Leaving...

New New Kottu (7)

Chavie: Thanks bro. :)

Chavie: Yeps, any combination of language/popula rity that you use to view a page can be used to obtain a feed. Let’s say you’re looking at Sinhala posts popular today: http://kottu.or g/si/today You can get the feed for that...

D: Can we get separate RSS feeds based on the language?

General Sarath Fonseka Out Soon? (12)

David Blacker: Nothing wrong with the Sinhalese being divided by politics rather than united by ethnicity. And yes, of course SL must cooperate with an international investigation if one is initiated. We can’t afford not to. The idea is to...

You’re Nobody Till (45)

Regewaypere2: Asortyment uzupe?nia Outcast przestrzenna uciecha przygodowa i klisza Setnie Speedway. Nu?e na godzin? poprzednio wschodem s?o?ca nieruchomosci odby? wspomnian? z wykorzystaniem Benwolia przechadzk? w gaju sykomorowym mamy w...

Sarath Fonseka And Minority Politics (9)

tastyjujubes: Being more “Tamil 221; is not going to help the Sri Lankan Tamils to be honest. Being even more insular, introverted and ethnocentric is not going to help the Tamil people. The Tamils of Sri Lanka live on an island with a...

Why Does India Suck At The Olympics?

Today on the morning show we talked about the Olympics, namely China’s emerging dominance. For me the bigger question is India. Why does India suck so much? In 2008 the US won 110 medals, China won 100 and India won… 3. India has over a billion people, some economic clout and is by all counts an emerging superpower, but they suck at the Olympics. Why?

New New Kottu

Janith has updated Kottu with rims and shit. Seriously, it looks pretty good. You could say the desktop look is cosmetic, but check out the mobile. Kottu now looks like an app with settings and menus and such. The biggest problem with K2 is me, ie, it now takes me up to a month to respond to emails. OMG I’m scared of my email. But Janith’s done this code and design update all by himself and it looks pretty good. Check it out. There was one bug with the previous page link. Lettuce know if there’s any more.

Miss Travel. Alternately, Mistravel

This is highly dubious. Miss Travel is a travel/social networking site that connects ‘Generous’ and ‘Attractive’ travelers. To, like, travel together, I guess. It all seems a bit like arranged prostitution and trafficking. This is part of a broader online trend to connect rich men to younger, attractive women. Sites like seekingarrangement.com connects women to ‘sugar daddies’ already. I guess Miss Travel is just taking that trend international. Wait, I checked, it’s the same guy doing both.

Buying Appliances Online (Singer)

Sri Lankan domestics never say anything, they just stop coming. My maid just stopped coming and when I finally pressed her she said I needed to get a washing machine. I was hoping to ride this one out, but I’ve run out of underwear and I have no choice. I finally caved and bought a washing machine, from Singer, ONLINE. I put the online in all caps because it’s pretty awesome. I ordered the thing in like 15 minutes on Saturday and they just delivered it today. It’s pretty awesome, this brave new world.