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://cancerresearchideas.cancer.gov/userimages/accounts/92/928675/panel-39827-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://cancerresearchideas.cancer.gov/userimages/accounts/92/928675/panel-39827-feedback-widget.js?width=420&height=480" 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://cancerresearchideas.cancer.gov/a/widget/hotIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Cancer Immunology & Prevention
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17568" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Enhanced Data Sharing
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17566" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Expanding Clinical Trials
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17572" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Implementation Sciences
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17569" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Pediatric Cancer
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17567" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Precision Prevention & Early Detection
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17886" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Tumor Evolution & Progression
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17570" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Other Exceptional Opportunities
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/17660" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Improve Clinical Trials Information – Patients, Caregivers, Advocates
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/18487" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Improve Clinical Trials Information – Health Professionals
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/18488" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: Clinical Trial Information for Technical Partners
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/hotIdeas/campaign/18489" 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://cancerresearchideas.cancer.gov/a/widget/recentIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Cancer Immunology & Prevention
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17568" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Enhanced Data Sharing
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17566" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Expanding Clinical Trials
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17572" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Implementation Sciences
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17569" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Pediatric Cancer
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17567" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Precision Prevention & Early Detection
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17886" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Tumor Evolution & Progression
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17570" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Other Exceptional Opportunities
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/17660" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Improve Clinical Trials Information – Patients, Caregivers, Advocates
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/18487" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Improve Clinical Trials Information – Health Professionals
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/18488" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Research Area: Clinical Trial Information for Technical Partners
<iframe allowTransparency="true" src="https://cancerresearchideas.cancer.gov/a/widget/recentIdeas/campaign/18489" 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://cancerresearchideas.cancer.gov/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.