Created
March 29, 2011 13:52
-
-
Save lukebaker/892396 to your computer and use it in GitHub Desktop.
Dynamically insert widget with info code.
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
<div id="ideamarketplace"></div> | |
<script> | |
(function(appendTo, info) { | |
var el = document.createElement("iframe"); | |
el.src = 'http://widget.allourideas.org/testmarketplace?info='+info+'&submit_button=FCC044&vote_button=FCC044&flag_text=000000&tab_hover=000000&cant_decide_button=FCC044&add_idea_button=FF7600&question_text=000000&text_on_color=000000'; | |
el.width = '815'; | |
el.height = '400'; | |
el.frameborder = '0'; | |
el.scrolling = 'no'; | |
document.getElementById(appendTo).appendChild(el); | |
})('ideamarketplace', 'info_id'); | |
</script> |
Is this for google gadgets?
No, this is not for Google Gadgets. Here's more information about the allourideas widget: http://blog.allourideas.org/post/912665189/improved-widget-gives-you-more-control
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation: