Developer Central - Widgets

Widgets are code-units that you can embed within your site or blog. The following widgets are available for mashups

Lightbox Popup (Suitable for website feedback)

<script id="is-feedback-widget" src="http://submit.makingallvoicescount.org/userimages/accounts/91/916190/panel-31613-feedback-widget.js" defer="defer"></script>

Note: The code can be placed in either the <head> or the <body> tag. And if you've added some custom fields and the lightbox is not big enough to contain all the fields, you may customize its width and height through query strings. For example:

<script id="is-feedback-widget" src="http://submit.makingallvoicescount.org/userimages/accounts/91/916190/panel-31613-feedback-widget.js?width=815&height=510" defer="defer"></script>

Hot Ideas Widget displays the Top 3 Ideas as well as ideas that have recently marked as complete. (Suitable for a navigation sidebar)

<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Strengthening community resiliency and response
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/13607" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Improved planning and budgeting for disaster resiliency and response
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/13608" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for Improved Service Delivery
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/13128" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for Improved Electoral Processes
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/13129" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Tech for better governance and improved public service delivery
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/12770" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Tech for citizens’ advocacy, activism and digital security
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/12771" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for increased accountability and improved governance in the educational sector
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/10040" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Education for resilience and response to humanitarian crisis
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/10041" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Our spaces. Our 
rights
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/9395" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for Change
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/9396" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Safe Spaces
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/14262" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Local Action
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/14263" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Energy sector Reform and Improved Public service delivery
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/14895" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Participatory Budgeting
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/hotIdeas/campaign/14911" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>

The Recent Ideas Widget can be embedded on a blog or website sidebar and allows visitors to see a list of recent Ideas in your community, and submit a new idea. Copy and paste the code below to add this widget to your website or blog

<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Strengthening community resiliency and response
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/13607" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Improved planning and budgeting for disaster resiliency and response
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/13608" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for Improved Service Delivery
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/13128" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for Improved Electoral Processes
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/13129" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Tech for better governance and improved public service delivery
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/12770" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: - Tech for citizens’ advocacy, activism and digital security
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/12771" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for increased accountability and improved governance in the educational sector
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/10040" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Education for resilience and response to humanitarian crisis
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/10041" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Our spaces. Our 
rights
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/9395" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tech for Change
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/9396" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Safe Spaces
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/14262" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Local Action
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/14263" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Energy sector Reform and Improved Public service delivery
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/14895" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Participatory Budgeting
<iframe allowTransparency="true" src="http://submit.makingallvoicescount.org/a/widget/recentIdeas/campaign/14911" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>

Recent, popular and ideas posted by member. (Suitable for embedding on a member's profile page.)

Insert the following code at <head> of html page where the widget will be embedded.

<script src="http://submit.makingallvoicescount.org/a/widget/member"></script>

It is required to call a javascript function to generate the widget content. The widget is assumed to be inserted in a <div> element. The ID attribute and preferred width and height of widget along with members email should be passed to the javascript function. Here is an example:

ideascaleMemberWidget(memberEmail, containerId, width, height)

Note: The javascript function can be placed at footer of document or can be called upon page load.