[Seaside] Canvas api for a button

Brian Brown rbb at techgame.net
Fri Nov 3 16:17:05 UTC 2006


On Nov 3, 2006, at 9:13 AM, Ramon Leon wrote:

> Try this...
>
> html button callback: [self answer: true]; text: 'Cancel';
>
> Remember, #text: is a synonym for #with:, which closes the tag, it  
> must
> always come last.

Ok, I followed the text: and it was sending #value:, but I should  
have kept going :)

Thanks!

Brian

>
> Ramon Leon
> http://onsmalltalk.com
>
>> -----Original Message-----
>> From: seaside-bounces at lists.squeakfoundation.org
>> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf
>> Of Brian Brown
>> Sent: Friday, November 03, 2006 9:11 AM
>> To: The Squeak Enterprise Aubergines Server - general discussion.
>> Subject: [Seaside] Canvas api for a button
>>
>> Hello all,
>>
>> I'm trying to create a simple cancel button on a form. I want
>> it to perform "self answer: true" when clicked. This is my
>> latest iteration:
>>
>> 	html button text: 'Cancel'; callback: [self answer: true].
>>
>> but when I click it, it doesn't send the answer to the
>> component, it doesn't do anything :)
>>
>> Any thoughts?
>>
>> Regards,
>>
>> Brian
>>
>>
>> _______________________________________________
>> Seaside mailing list
>> Seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the Seaside mailing list