[Seaside] Re: WAImageMapTag problem with Scriptaculous?
Igor Stasenko
siguctua at gmail.com
Wed Nov 11 07:53:55 UTC 2009
2009/11/11 John Chludzinski <john.chludzinski at gmail.com>:
> This works:
>
> html map
> onClick: (html scriptaculous evaluator
> callback: [ :x | x asInteger < 200 ifTrue: [ self previousPage ]
> ifFalse: [ self nextPage ]]
> value: (JSStream on: 'arguments[0].x');
>
> callback: [ :script | true ];
> return: false);
>
> with: [ html image id: #WWW; url: MMAFileLibrary / self
> getCurrentPageFile ].
>
> The calls to #previousPage and #nextPage have the script to update the DOM
> element with the previous or next slide.
> Tried before to use #callback:value: (as a "secondary callback") but didn't
> add the additional #callback: (as a "primary callback"). That doesn't work!
>
what about using
<form action="javascript:foo()">
<input type="image" ...>
</form>
?
Then you could simply check what side of image get clicked in your
javascript function.
> Thanks Julian!
> ---John
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
--
Best regards,
Igor Stasenko AKA sig.
More information about the seaside
mailing list