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://ideas.mci.gov.sa/userimages/accounts/90/906826/panel-18964-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://ideas.mci.gov.sa/userimages/accounts/90/906826/panel-18964-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="http://ideas.mci.gov.sa/a/widget/hotIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: ضوابط المغالاة والفوارق السعرية
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/29640" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: سياسة استرداد وأستبدال البضاعة
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32202" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: ضبط الأسعار في ظل الاقتصاد الحر
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/29639" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: مكافحة الغش التجاري
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32201" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: حلول للحد من التستر التجاري
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32200" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: تحسين خدمات وكالات السيارات المعتمدة في السعودية
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/43920" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: تأطير وتنظيم قطاع البيع بالتقسيط
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32197" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: المؤسسات الصغيرة والمتوسطة
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32199" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: الإعفاءات الجمركية
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32204" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: دعم المشاريع الصغيرة والمتوسطة
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/32203" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: مسودة مشاريع تحسين خدمات وكالات السيارات
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/49730" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: مسودة مشاريع حوكمة الشركات
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/hotIdeas/campaign/49731" 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://ideas.mci.gov.sa/a/widget/recentIdeas" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: ضوابط المغالاة والفوارق السعرية
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/29640" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: سياسة استرداد وأستبدال البضاعة
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32202" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: ضبط الأسعار في ظل الاقتصاد الحر
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/29639" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: مكافحة الغش التجاري
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32201" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: حلول للحد من التستر التجاري
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32200" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: تحسين خدمات وكالات السيارات المعتمدة في السعودية
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/43920" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: تأطير وتنظيم قطاع البيع بالتقسيط
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32197" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: المؤسسات الصغيرة والمتوسطة
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32199" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: الإعفاءات الجمركية
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32204" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: دعم المشاريع الصغيرة والمتوسطة
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/32203" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: مسودة مشاريع تحسين خدمات وكالات السيارات
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/49730" frameborder="0" scrolling="auto" style="width: 100%; height: 260px;"></iframe>
Campaign: مسودة مشاريع حوكمة الشركات
<iframe allowTransparency="true" src="http://ideas.mci.gov.sa/a/widget/recentIdeas/campaign/49731" 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://ideas.mci.gov.sa/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.