cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: ImageMap widget for CForms
Date Wed, 01 Jun 2005 22:59:43 GMT
Luca Morandini wrote:
> Vadim Gritsenko wrote:
> 
>> Luca Morandini wrote:
>>
>>> function onClickMap () {
>>>
>>>     var x= Number(cocoon.request.getParameter("map.x"));
>>>     var y= Number(cocoon.request.getParameter("map.y"));
>>
>>
>> Eww!
> 
> 
> Ahem... what "Eww!", exactly, means ?

:-)

http://www.urbandictionary.com/define.php?term=eww


>>> BTW, I'd like mouse coordinates to be retrieved by querying the map 
>>> widget rather than the request object... anyone knows a simple way to 
>>> do this from within the widget class (subclass of AbstractWidget) ?
>>
>>
>> Just create your own MapEvent with x, y fields.
> 
> 
> Thanks for the suggestion, I'll work on it.

MapEvent will allow to use event.x, event.y or some such instead of 
'cocoon.request.getParameter("map.y")', which is eww ;-)

Vadim

Mime
View raw message