[Seaside] Image map tag

Carl Gundel carlg at libertybasic.com
Fri Feb 9 13:59:48 UTC 2007

Hi Michel,

I guess part of the problem is that I'm no expert to how image maps work, 
nor am I quite comfortable customizing/extending Seaside, yet.  It seems 
like the interesting parts would be:

-how to specify the image (or course)
-a way to add callbacks and tooltips, one for each rectangular or other 


html imageMap
    url: aUrlString;
    addRectangle: rectA tooltip: 'do A action' callback: [ self aClicked ];
    addRectangle: rectB tooltip: 'do B action' callback: [ self bClicked ];
    addCircle: (Array with: x with: y with: size) tooltip: 'do circle 
action' callback: [ self circleClicked ];

This is how I imagine it could work.

-Carl Gundel, author of Liberty BASIC

----- Original Message ----- 
From: "Bany, Michel" <mbany at cincom.com>
To: "The Squeak Enterprise Aubergines Server - general discussion." 
<seaside at lists.squeakfoundation.org>
Sent: Friday, February 09, 2007 4:29 AM
Subject: RE: [Seaside] Image map tag

> > Hey we're trying to figure out the WAImageMapTag.  Is this
> a complete item?
> What do you mean with complete item? Whether it works or it
> maps directly to an html element or it or has room for improvement?

I believe Carl would like WAImageMapTag to provide an api
as complete as WAImageTag's api, i.e. #altText:, #document:,
#mimeType:, #url:, #fileName:

Currently, the only way to supply an image to an WAImageMapTag
is to send #form: with a Form object.

> > It's not clear at all how to use it.
> Have a look at the screenshoot application.

Carl is using VW, there is no screenshot application in VW.

The #form: message cannot be used since VW does not have Form.

> > Do we need to flesh it out?

I agree with Carl that we should add the missing apis.
Maybe with an api like this

(html imageMap)
callback: [:pt | self clickAt: pt];
title: '...';
id: #id;
image: [:image | ... ]

where image is an instance of WAImageTag

If no one else volunteers, I can take care.

Seaside mailing list
Seaside at lists.squeakfoundation.org

More information about the Seaside mailing list