[Seaside] General subclassing question with regards to
callbacks...
Richard E. Flower
rickf at ca-flower.com
Tue Nov 11 15:17:42 UTC 2008
Thanks Lukas.. I'll look into doing that.. I figured it was something
stupid I was overlooking!
Too much late night coding!
-- Rick
On Nov 11, 2008, at 1:45 AM, Lukas Renggli wrote:
>> "Override the onClick: method to do what we want..."
>> html tableRow id: 'row' , index asString;
>> class: (self classForRowNumber: index);
>> script: (self componentScriptOn: index);
>> onClick: [ self clickBlock ];
>> with: [columns
>> do: [:ea | self
>
> #onClick: expects a Javascript string or object. #onClick is a HTML
> event attribute. You need to wrap the contents of your cells into an
> anchor that uses the block as a #callback:, or restort to JavaScript
> (AJAX).
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list