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


Monolithic Islam (5)

tastyjujubes: The Religion of Peace at work again: http://www.guar dian.co.uk/uk/2 013/may/22/wool wich-two-shot-i n-police-incide nt-live-coverag e

sharanga: Racial profiling is not racist if it works. Similarly, identifying groups among people is not wrong if it allows you to predict reality with reasonable accuracy. When you don’t know everything, you play the odds. For example, if I...

Dark Lord: Why is it so hard to buy pork anywhere in Sri Lanka? Most sellers don’t sell pork at all, or sell it only to known customers from a hidden storage at the back of the store, which goes like “don̵ 7;t tell anyone, we are...

40 Under 40 (6)

sharanga: Congratulations !

Malik: Looks like Mara and Co has blocked GossipLanka.com ????? What’s going on here??????????

Diyath: Congratulations Indi!.. All the best for your future tech endeavors!

Anti-Social Marketing (Nibras Bawa) (19)

David Blacker: Who cares, man? you’re still moaning on about a fight you lost months ago. It’s like the kid who gets his ass kicked then talk big later. You lost, you ran away like a whiney ponneya, and now you’re actually...

sharanga: A more accurate description would be I had my penis up your because you were refusing to answer a simple question. Now the fact that you thought I was not just Heshan, but also meechum just shows that you are stupid, and therefore your...

Chi Chi Hits The Scene, And A Referee (5)

sack: Indiz post about Gotabhaya had much more comments. http://indi.ca/ 2012/07/gotas-p uppy-hate/

Liberal One: He he, the article with the least number of comments out of Indi’s recent ones. Looks like no body wants to put their lives at risk by commenting on the wrong article. I’m off as well.

Monolithic Islam

Mohsin Hamid, author of How To Get Filthy Rich In Rising Asia, has a nice op-ed in the Guardian. Money quote for me was ‘Individuals are undeniably real. Groups, on the other hand, are assertions of opinion’. If you go buy news reports Muslims or Jews or Sri Lankans or any number of groups can appear monolithic and uniform. When you meet people, however, you find that they’re not. If you meet enough people you hopefully become aware of that tendency and judge people less by group identity in advance. Muslims, however, are quite publicly tarred with the same brush these days, and it really isn’t fair. Or accurate.

40 Under 40

I’m happy to be featured in Echelon magazine’s 40 Under 40 feature, profiling young people who contribute to the economy in some way, mainly in business but also in terms of innovation and thought leadership. It’s an interesting article not just in that I’m in it (mainly for work on indi.ca and Kottu but also YAMU) but also in that the magazine takes a bit of a critical stance. It’s worth reading the editorial (which I can only find in print) where they describe that only a few women are included and that all of the 40 are from middle to upper middle class backgrounds.

Chi Chi Hits The Scene, And A Referee

I won’t add too much commentary, but just read I guess. The youngest Rajapaksa, Rohitha (Chi Chi) has given an amazing interview to the Daily Mirror Life section, which is well worth a read. In other news, he also recently slapped a referee around in full public view at a rugby match. At least it seems that his elder brother restrained him.

Anti-Social Marketing (Nibras Bawa)

In 2009 this strange character appeared on the Sri Lankan Internet scene, getting angry, flaming, trolling whatever. Then he started naming anonymous bloggers, posting comments as people’s kids, nasty stuff, for which I removed him from Kottu. He also published some plagiarized stuff on Groundviews. He flamed out a bit more then disappeared. Until now. Now he’s back hosting a rather expensive social media event in Colombo, which is a bit ironic, seeing as he was known for being the most anti-social person the blogosphere had seen at the time.