[Seaside] WAImageMapTag problem with Scriptaculous?

John Chludzinski john.chludzinski at gmail.com
Tue Nov 10 22:10:02 UTC 2009

I trying to use an instance of WAImageMapTag to hold a slide (in a
presentation).  Instead of using buttons (on an iPod), I'm trying to advance
to the next slide by clicking on the right half of the slide or going back
to the previous slide by clicking on the left half.   This requires I have
access to 'point' in 'callback: [ :point | ... ]' associated with the
instance of WAImageMapTag. But when using Scriptaculous, I'd like to have
something like this:

   html map
      onClick: (html scriptaculous evaluator
         callback: [ :script | self x > 200 ifTrue: [ self nextPage ]
ifFalse: [ self previousPage ]];
         return: false);
      callback: [ :point | self x: point x ];
      with: [ html image id: #WWW; url: MMAFileLibrary / self
getCurrentPageFile ]].

This doesn't work (my conclusion?) because the #callback: in the
Scriptaculous evaluator: "Registers aBlock as a primary callback of the
receiver." and the other callback ([ :point | self x: point x ]) is never
invoked?  Is there a solution to this Catch-22?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091110/4c28ea76/attachment.htm

More information about the seaside mailing list