[ 
https://jira.nuxeo.com/browse/NXP-6918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Roger resolved NXP-6918.
-------------------------------

    Resolution: Fixed

Simple usage of the plugin:

Includes:

{code}
<link rel="stylesheet" 
href="${baseURL}css/opensocial/light-container-gadgets.css">

<script type="text/javascript" src="${baseURL}script/jquery/jquery.js"></script>
<script type="text/javascript" 
src="${baseURL}opensocial/gadgets/js/rpc.js?c=1"></script>
<script type="text/javascript" 
src="${baseURL}js/?scripts=opensocial/cookies.js|opensocial/util.js|opensocial/gadgets.js|opensocial/cookiebaseduserprefstore.js|opensocial/jquery.opensocial.gadget.js"></script>
{code}

HTML:

{code}
...
<div class="gadgets-gadget-chrome gadgets"></div>
...
<div class="gadgets-gadget-chrome gadgets"></div>
...
{code}

Using the plugin to load the gadgets:

{code}
  $(document).ready(function() {
    $('.gadgets').openSocialGadget({
      baseURL: '${baseURL}',
      gadgetSpecs: ['http://www.labpixies.com/campaigns/todo/todo.xml',
          
'http://localhost:8080/nuxeo/site/gadgets/lastdocuments/lastdocuments.xml']
    });
  })
{code}

> Add light OpenSocial javascript gadgets container
> -------------------------------------------------
>
>                 Key: NXP-6918
>                 URL: https://jira.nuxeo.com/browse/NXP-6918
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Task
>          Components: Dashboard / OpenSocial
>            Reporter: Thomas Roger
>            Assignee: Thomas Roger
>             Fix For: 5.4.2
>
>
> Integration of the sample javascript container from Apache Shindig.
> New jQuery plugin to easily add OpenSocial gadgets anywhere on the page.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to