Hi,

I think you are confusing sitemap parameters with request parameters.
You can fetch sitemap parameters from the parameters object:

var svgWidth = cocoon.parameters.getParameter("svgWidth");

HTH, Johannes

beyaNet Consultancy wrote:

Hi,
I have a sitemap pipe:

<map:match pattern="**artistImage/*/*/*/*.jpg">
<map:call function="svg">
<map:parameter name="imageNum" value="1"/>
<map:parameter name="artistID" value="45"/>
<map:parameter name="svgWidth" value="100"/>
<map:parameter name="svgHeight" value="100"/>
</map:call>
</map:match>

which, as can be seen, makes a flowscript function call. within the function i read in the values as:

function svg() {
var svgWidth = cocoon.request.get("svgWidth");
var svgHeight = cocoon.request.get("svgHeight");
var imageNum = cocoon.request.get("imageNum");
var artistID = cocoon.request.get("artistID");

.....................


cocoon.sendPage("generateSVG", {"svgWidth":parseInt(svgWidth), "svgHeight":parseInt(svgHeight), "base64":base64, "imgWidth":imgWidth, "imgHeight":imgHeight});
}


The problem I am having is that all the values read into flowscript are null! What am I doing wrong here??

Peter



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to