Last modified by bougault on 2022/03/02 11:58

From version 32.1
edited by mmorgan
on 2020/07/16 01:51
Change comment: Renamed back-links.
To version 35.1
edited by bougault
on 2020/09/03 11:14
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mmorgan
1 +XWiki.bougault
Content
... ... @@ -81,6 +81,21 @@
81 81  
82 82  The Collaboratory will get the settings from its key/value store and pass them to your app through query parameters.
83 83  
84 +== Updating parent frame URL fragment ==
85 +
86 +The app you are developing might be a single page app that need to handle some routing between views. The Community Apps environment gives you the ability to update the parent frame fragment.
87 +
88 +It uses the [[postMessage javascript API>>https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage]] to communicate from the APP iframe to the wiki (parent) frame.
89 +
90 +{{code language="javascript"}}
91 +window.parent.postMessage({
92 + topic: '/clb/community-app/hashchange',
93 + data: "the_fragment_value"
94 +}, 'https://wiki.ebrains.eu');
95 +{{/code}}
96 +
97 +If a fragment is present in the parent frame URL, at parent page load time, this fragment is transmitted to the App's iframe.
98 +
84 84  == Creating your OpenID Connect client ==
85 85  
86 86  See the instructions [[here>>doc:Collabs.collaboratory-community-apps.Community App Developer Guide.1\. Registering an OIDC client.WebHome]].