Developer Central - Widgets

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

Feedback Icon

Lightbox Popup (Suitable for website feedback)

<script id="is-feedback-widget" src="http://datagov.ideascale.com/userimages/sub-1/736312/panel-6440-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://datagov.ideascale.com/userimages/sub-1/736312/panel-6440-feedback-widget.js?width=815&height=510" defer="defer"></script>

Hot Ideas

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://datagov.ideascale.com/a/widget/hotIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>

Daily IdeaFix

Displays one random idea at a time and asks users to vote on it.

<iframe allowTransparency="true" src="http://datagov.ideascale.com/a/ideaFixWidget.do" frameborder="0" scrolling="auto" style="width: 100%; height: 300px;"></iframe>

Member Widget

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://datagov.ideascale.com/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.