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");
What is the 'name' attribute on your image? In my example, I assumed that it was 'image'. If normally an element results in a request parameter called "name", when it is an image map (or an image button), you get "name.x" and "name.y".
Does that help?
Regards, Upayavira
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]
