[Seaside] WAImageMapTag problem with Scriptaculous?
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:
onClick: (html scriptaculous evaluator
callback: [ :script | self x > 200 ifTrue: [ self nextPage ]
ifFalse: [ self previousPage ]];
callback: [ :point | self x: point x ];
with: [ html image id: #WWW; url: MMAFileLibrary / self
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...
More information about the seaside