27. twitter @anywhere
• twitter widget library
• supports multiple lib versions/
instances per page
• each version is sandboxed in a
separate iframe
dev.twitter.com/anywhere
45. xd tunnels
• host page creates iframe that points
to url on target domain
• iframe can freely make xhr requests
• host page initiates requests through
iframe
51. subdomain tunnel
• less complicated
• property access is possible!
• document.domain
• host and iframe must both declare
common document.domain, then
they can access each other’s props
59. iframe POST
• create an iframe
• create a form
• set form’s target=”...” attribute to
point to iframe
• submit the form
• response loads in iframe body
60.
61. JSONPI
• use iframe POST
• like jsonp: pass a callback fn
• in response body, set common
document.domain
• js running in iframe can execute
callback fn in parent window