Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 3470 invoked from network); 9 Jun 2005 12:04:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Jun 2005 12:04:22 -0000 Received: (qmail 2270 invoked by uid 500); 9 Jun 2005 12:04:18 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 2218 invoked by uid 500); 9 Jun 2005 12:04:17 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 2196 invoked by uid 99); 9 Jun 2005 12:04:17 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=PLING_QUERY X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from lakermmtao03.cox.net (HELO lakermmtao03.cox.net) (68.230.240.36) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 09 Jun 2005 05:04:15 -0700 Received: from [192.168.0.101] (really [70.179.64.83]) by lakermmtao03.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050609120401.ZKPE18229.lakermmtao03.cox.net@[192.168.0.101]> for ; Thu, 9 Jun 2005 08:04:01 -0400 Message-ID: <42A83031.2030609@reverycodes.com> Date: Thu, 09 Jun 2005 08:04:01 -0400 From: Vadim Gritsenko User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: ImageMap: is it still "eww !" ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Luca Morandini wrote: > The form definition: > > test.gif > > zoomInImage.hint.mapButton > > > onClickMap(event); > > > > The flow: > function onClickMap (event) { > > var x= event.getX(); > var y= event.getY(); > var uri; > > uri= map.zoomIn(new Rectangle(new Point(x, y), 1, 1)); > if ( uri != "map.zoominTooFar" ) { > event.getSource().setImageURI(uri); > } > } > > How about this, Vadim ? ;) Excellent! Vadim