Created
January 22, 2012 21:09
-
-
Save vilmibm/1658824 to your computer and use it in GitHub Desktop.
marimo writeCapture widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// add now so ad can begin rendering | |
marimo.add_widget({ | |
widget_prototype:'writecapture_widget', | |
id: "some_ad", | |
html: '<script src="/my/ad/server.js"></script>', | |
}); | |
</script> | |
<!-- ... --> | |
<div id="some_ad"></div> | |
<script> | |
// this will trigger the sanitized ad to be painted to the DOM | |
marimo.emit('some_ad_ready'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment