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="https://dclibrary.ideascale.com/userimages/accounts/91/913548/panel-23884-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="https://dclibrary.ideascale.com/userimages/accounts/91/913548/panel-23884-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="https://dclibrary.ideascale.com/a/widget/hotIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Children's Area
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48237" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Teen Space
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48238" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Public Entrance
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48239" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Meeting Spaces
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48240" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Adult Spaces
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48241" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Cafe Space
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48242" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Innovation Space
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48243" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Adaptive Services
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48244" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Marketplace/Welcome Center
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48245" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Washingtoniana/Black Studies
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48246" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Employee Spaces
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48247" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Security
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/48248" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: A Modern MLK -- In Pictures
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/51350" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Honoring Dr. King in the Modernized MLK Library
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/hotIdeas/campaign/51787" 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="https://dclibrary.ideascale.com/a/widget/recentIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Children's Area
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48237" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Teen Space
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48238" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Public Entrance
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48239" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Meeting Spaces
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48240" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Adult Spaces
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48241" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Cafe Space
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48242" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Innovation Space
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48243" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Adaptive Services
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48244" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Marketplace/Welcome Center
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48245" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Washingtoniana/Black Studies
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48246" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Employee Spaces
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48247" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Security
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/48248" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: A Modern MLK -- In Pictures
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/51350" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Honoring Dr. King in the Modernized MLK Library
<iframe allowTransparency="true" src="https://dclibrary.ideascale.com/a/widget/recentIdeas/campaign/51787" 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://dclibrary.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.