Giter Club home page Giter Club logo

adsandbox's Introduction

Simple sandboxed multiple-frame ads

This code demonstrates a method of populating an arbitrary number of sandboxed ads from a single iframe.

Tested to work on IE6+, Firefox 3+, Chrome, Opera 11+.

An initial iframe "ad_main" is loaded, which contains information about all ads to be displayed on the page. The "ad_main" frame signals the parent page that "child" ad frames must be created via postMessage or a cross-domain iframe as a fallback. Child ad frames load a document containing a script that fetches their contents from the JavaScript scope of "ad_main".

To run this demo, you should create localhost aliases for "home.local" and "ads.local" in your /etc/hosts file (or similar):

127.0.0.1	home.local ads.local

adsandbox's People

Contributors

chromakode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.