cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: Maintaining request in match string.
Date Wed, 17 Sep 2003 08:36:27 GMT
Joel P W Pitt wrote:

> Hi all,
> I tried giving the image map a name ("map") as so:
> <a href="info.html" name="map">
> <img data="map.png" style="border: 2px solid" ismap="true" 
> type="image/png">
> </a>

Ah! I see my mistake. I've been assuming form image buttons, not image maps.

You could either use Conal's suggestion in his post, or use this in your 

<form action="info.html"><input type="image" name="map" 

If you use that, you'll be able to use the code you've got below, that 
I've previously been suggesting. That is because, when an image button 
is clicked, the form is submitted with map.x and map.y set to the x,y 
co-ords of the point the user clicked.

Regards, Upayavira

> I renamed the request-param to get map properties like so:
> <map:call function="info">
>       <map:parameter name="x" value="{request-param:map.x}"/>
>       <map:parameter name="y" value="{request-param:map.y}"/>
> </map:call>
> I still have the same problems :(
> I may just make an XSP page to process the query string and then redirect
> to a URL with the coordinates explicitly specified as x and y.
> Joel
> Upayavira wrote:
>>> (I'm away from my cocoon install currently so I'm working from 
>>> memory here.)
>>> I did as David said, except that currently my image is unnamed. It 
>>> is just an img
>>> element:
>>> <img src="pic.png" ismap=true action="info.html"/>
>>> as I recall.
>>> When I examine the XML returned by the RequestGenerator, it has all 
>>> the headers
>>> etc. and then the parameters. The relevent part looked like:
>>> <h:parameter name="12,23">
>>> <h:value/>
>>> </h:parameter>
>>> Tomorrow I will try giving the image element a name and report back.
>> Good. I cannot imagine it working without a name on the image map.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message