Peter,

I'm not 100% on the flow API, but you are passing
sitemap parameters and retrieving request parameters. 
I don't see how  the request parameters would be set. 
I would think there is another way of getting those.

-Alex

--- beyaNet Consultancy <[EMAIL PROTECTED]> 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