[Seaside] onKeyUp: -> do check and enable button
maxleske at gmail.com
Thu Jul 11 06:07:12 UTC 2013
On 10.07.2013, at 11:08, "jtuchel at objektfabrik.de" <jtuchel at objektfabrik.de> wrote:
> Hi Max,
> Am 10.07.13 11:03, schrieb Max Leske:
>> Hi Sabine
>> We use some similar code. I simply copied it from our productive environment, so you'll have to figure out the details for yourself :)
>> #customOrderCountChangedOn: basicly answers the script I pasted second.
>> html textInput
>> id: 'custom-order-amount';
>> onKeyUp: (self customOrderCountChangedOn: html).
> Is your code from Amber?
No, from Seaside 2.8.
> This looks strange to me. Shouldn't the parameter to onKeyUp be some JSObject that will be renderered onto the outpur stream? In your code it looks like a callback into Smalltalk…
The argument to #onKeyUp: is an SUObject. The same would be true for #onChange: #onSelected: etc. I'd like blocks more myself too :)
> But even in Amber I'd expect the parameter to be a Block...
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside