from Hacker News

How does optimizely allow cross domain event listeners?

by dennisvdvliet on 4/29/13, 9:53 PM with 2 comments

Does anybody knows how optimizely allows you to select items in their interface?

It looks like they include the page as an iframe and after that put some extra layer on top of it allowing you to select certain items.

I'm wondering how they do that, somebody has any clue?

  • by breck on 4/29/13, 9:56 PM

    They iframe does not contain content from a 3rd party domain. They proxy content through their domain:

        <iframe src="http://edit.optimizely.com/http://google.com?optimizely_compatibility=false&amp;optimizely_disable=true&amp;optimizely_load_script=https%3A%2F%2Fwww.optimizely.com%2Fjs%2Finnie-www-master-1092.366954744303823947.js&amp;optimizely_log=false&amp;optimizely_cache_buster=1367272480789"></iframe>