cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel P W Pitt <jp...@student.canterbury.ac.nz>
Subject Re: Maintaining request in match string.
Date Tue, 16 Sep 2003 06:27:51 GMT
Woops. Looks like I celebrated too soon.
I'm recieving null values using both methods.

Here is my flowscript code if it helps:

function info() {

    var x = cocoon.request.getParameter("image.x");
    var y = cocoon.request.getParameter("image.y");

    if (x == null) cocoon.sendPageAndWait("index.xsp", { "mapP" : 
mapParameters} );
    else {
    cocoon.sendPage("info.xsp", {"mapP" : mapParameters,
                    "x" : x,
                    "y" : y } );
    }

}

Alternatively I use the sitemap method, and make the flowscript retrieve the
x and y parameters using:
    var x = cocoon.request.getParameter("x");

Any other ideas?

Thanks, Joel

Upayavira wrote:

> I'm pretty sure the following will work:
>
> 1) In the sitemap:
> <map:transform src="xxx">
>  <map:parameter name="x" value="{request-param:image.x}"/>
>  <map:parameter name="y" value="{request-param:image.y}"/>
> </map:transform>
>
> 2) In flowscript:
> var x = cocoon.request.getParameter("image.x");
> var y = cocoon.request.getParameter("image.y");
>
> Regards, Upayavira
>
> Conal Tuohy wrote:
>
>> Sorry ... I read your question properly this time: I think you might 
>> be able to use the RequestGenerator to get your image map co-ordinates.
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message