Changes for page Community App Developer Guide
Last modified by bougault on 2022/03/02 11:58
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. bougault1 +XWiki.mmorgan - Content
-
... ... @@ -64,7 +64,7 @@ 64 64 65 65 The Collaboratory comes with a mechanism to let your app store its settings directly in the Collaboratory. 66 66 67 -In order to do that, your app needs to use the [[postMessage javascript API>>https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage]] to send the settings to be stored in the Collaboratory. The settings are key/value pairs as in the example below. To update the settings, you need to write all the settings fields, as updating a single value only is not implemented.67 +In order to do that, your app needs to use the [[postMessage javascript API>>https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage]] to send the settings to be stored in the Collaboratory. The settings are key/value pairs as in the example below. 68 68 69 69 {{code language="javascript"}} 70 70 window.parent.postMessage({ ... ... @@ -95,7 +95,7 @@ 95 95 {{code language="javascript"}} 96 96 window.parent.postMessage({ 97 97 topic: '/clb/community-app/hashchange', 98 - data: 'the_fragment_value'98 + data: "the_fragment_value" 99 99 }, 'https://wiki.ebrains.eu'); 100 100 {{/code}} 101 101