Thank you, Richard, apologies that it has not been clear.
We are building a webinterface with SWP on top of a series of graphs. Some graphs contain the content that must be published, other graphs deliver parts of the design of the webpage. The main engine behind this is one ui.ttlx file (this we call the plugin) with additional JavaScript.
The aim is to make this all as configurable as possible in order to develop a framework for publication of graph content.
that consists of:
a ui:Element that is the main container of the plugin
a graph variabele that is the query graph context (ui:setContext ui:queryGraph) of the web design
The values for ui:Element and graph variable that are specified in the URL are passed on to parts in the HTML page that is created following the call. This works fine.
At the end of the page load a JavaScript is triggered by the function document.addEventListener('DOMContentLoaded'). This JS needs the value of the ui:queryGraph but -here comes the problem- the value of graph variable is not contained and can not be passed onto the JS.
What is the method for passing the graph variable declared in the URL to JS and between SWP and JS (both ways)?