You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Ryan Baxter (JIRA)" <ji...@apache.org> on 2012/08/13 16:04:39 UTC
[jira] [Deleted] (SHINDIG-1840) Embedded Experience does not work
for type url gadgets
[ https://issues.apache.org/jira/browse/SHINDIG-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Baxter deleted SHINDIG-1840:
---------------------------------
> Embedded Experience does not work for type url gadgets
> ------------------------------------------------------
>
> Key: SHINDIG-1840
> URL: https://issues.apache.org/jira/browse/SHINDIG-1840
> Project: Shindig
> Issue Type: Bug
> Reporter: Padraic Edwards
> Labels: features
>
> I have a gadget that is a type url gadget. It's href is pointing to a html page. In that html page i have a script which loads the client side libraries like below and some code to try to receive EE info and output it to the console.
> <script type="text/javascript" src="http://localhost:8080/gadgets/js/dynamic-height:embedded-experiences:oauthpopup:core:tabs.js"></script>
> <script type="text/javascript">
>
> console.log(gadgets);
> console.log(opensocial.data.getDataContext());
>
> gadgets.util.registerOnLoadHandler(registerContext());
>
> function registerContext(){
> console.log("register Context")
> try{
> opensocial.data.getDataContext().registerListener('org.opensocial.ee.context', fetchDataKey());
>
> }catch(e){
> console.log(e);
> }
> }
>
> function fetchDataKey(key){
> console.log("fetchDataKey" + key);
> var value = opensocial.data.getDataContext().getDataSet(key);
> console.log("register value" + value);
> }
>
>
> </script>
> <div id="out">test ee type url</div>
> However I do not see the context value getting passed to the html page. Looks like a bug or am I missing something?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira