Joel,
Your original note said the URL looked like ... index?35,45 (or something like that). Normally, the image map (or for image button) will have a name and the params returned are image.x and image.y. If you use the request generator, what params are shown? A simple pipeline in the sitemap will help you debug this.


<map:match pattern="paramtest">
   <map:generate type="request"/>
   <map:serialize type="xml"/>
</map:match>

David

Joel P W Pitt wrote:

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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



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



Reply via email to