Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

To use this feature, a gadget must require(or optional) the feature like so:

Code Block
xml
xml
  <Optional feature="shared-script-frame">
    <Param name="view">script</Param>
  </Optional>

...

Gadgets can request a reference to the shared script frame:

Code Block
javascript
javascript
  gadgets.util.registerOnLoadHandler(function() {
    gadgets.script.getScriptFrame(function(scriptFrame) {
      // Do something with the script frame here.
    };
  });