Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 997 Bytes

README.md

File metadata and controls

52 lines (33 loc) · 997 Bytes

iframe sample codes

Presentation - http://bit.ly/1d8aXXq

Pre-reqs

  • Web server to run demos
  • Ruby/Pow for Offline-hackery

post-message

Demo provides an example of cross iframe communication and dynamic resizing of the iframe.

quick start

  • cd post-message
  • ./bin/server.sh

message-channel

Demo provides an example of using MessageChannel to connect multiple iframes together

quick start

  • cd message-channel
  • ./bin/server.sh

iframe-sandbox

Sample code for sandboxing iframe content using srcdoc

quick start

  • cd iframe-sandbox
  • ./bin/server.sh

offline-hackery

Demo provides example code around caching data offline and manipulating the applicaiton cache using an iframe

quick start