So we are working with a company who does online polling about political issues, etc. The way it works is you create a poll question on their site and they give you a little javascript to put on your site which pulls down the poll and displays it.
Here is my javascript:
<script type="text/javascript" language="javascript" src="http://www.civicscience.com/widget/js/index/donorpro" id="donorpro"></script>
I'd like to place this in a block so I could have the poll questions on multiple pages. What *seems* to happen though is the DIVs that create the block get generated before the actual block content gets pulled into the the content div, so the block gets generated and does not end up "containing" the resulting content.
The end result can be seen here:
http://demo.test.towercare.com/
I realize the content block is too wide and some other styles need set, but can ANYONE suggest how I might solve the basic problem of getting this javascript-generated content to show up inside a block?
Thanks and sorry for being so vague.
Comments
Comment #1
jwolf commentedYou can either add a call to your javascript in the theme's .info file:
or
add to page.tpl.php: