<div>If I use:<br></div><div><br></div><div><div>   html map</div>
<div>      callback: [ :point |  point x &gt; 200 ifTrue: [ self nextPage ] ifFalse: [ self previousPage ]];<br>      with: [ html image id: #WWW; url: MMAFileLibrary / self getCurrentPageFile ]].</div><div><br></div><div>
This works BUT the entire page in re-rendered.  Not what I want.</div><div><br></div><div>If I use:</div><div><br></div><div><div>   html map</div><div>      onClick: (html scriptaculous evaluator <br>                        callback: [ :script | self nextPage ];<br>
                        return: false);</div><div><br></div><div>This updates the instance of WAImageMapTag with the next slide (without re-rendering the entire page) BUT I don&#39;t have access to &#39;point&#39; to determine whether to invoke either #nextPage or #previousPage.</div>
</div><div><br></div><div>---John</div></div><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 5:10 PM, John Chludzinski <span dir="ltr">&lt;<a href="mailto:john.chludzinski@gmail.com">john.chludzinski@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>I trying to use an instance of WAImageMapTag to hold a slide (in a presentation).  Instead of using buttons (on an iPod), I&#39;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 &#39;point&#39; in &#39;callback: [ :point | ... ]&#39; associated with the instance of WAImageMapTag. But when using Scriptaculous, I&#39;d like to have something like this:<br>

</div><div><br></div><div>   html map</div><div>      onClick: (html scriptaculous evaluator <br>                        callback: [ :script | self x &gt; 200 ifTrue: [ self nextPage ] ifFalse: [ self previousPage ]];<br>                        return: false);</div>

<div>      callback: [ :point | self x: point x ];<br>      with: [ html image id: #WWW; url: MMAFileLibrary / self getCurrentPageFile ]].<br><br></div><div>This doesn&#39;t work (my conclusion?) because the #callback: in the Scriptaculous evaluator: &quot;Registers aBlock as a primary callback of the receiver.&quot; and the other callback ([ :point | self x: point x ]) is never invoked?  Is there a solution to this Catch-22?</div>

<div><br></div><font color="#888888"><div>---John</div>
</font></blockquote></div><br>