[Seaside] Re: onKeyUp: -> do check and enable button

Sabine Knöfel sabine.knoefel at gmail.com
Wed Jul 10 09:26:08 UTC 2013


Hi Max,

thanks. 3 questions:
1) what is in aBlock?
2) is id the id of the textInput?
3) can you send (the relevant part) of updateSideContainerOn?

Sabine

On Wed, Jul 10, 2013 at 11:04 AM, Max Leske [via Smalltalk]
<ml-node+s1294792n4698113h98 at n4.nabble.com> wrote:
> 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).
>
> (html evaluator
>                 callback: [ :script | self updateSideContainerOn: script ];
>                 callback: aBlock
>                         value: (html formElement id: id) value;
>                 yourself) asString
>
> HTH (ask again if you're having troubles),
> Max
>
> On 10.07.2013, at 10:35, Sabine Knöfel <[hidden email]> wrote:
>
>> Hi,
>>
>> in a "register new user" page, I have a textInput where I want to check
>> the
>> validity of an email address each time the user types in one character. If
>> the email adress is valid, the "register" button should enable.
>>
>> How would you do this? Does anybody have a text snippet for me?
>>
>> html textInput
>> ....
>> onKeyUp: ????
>>
>> Sabine
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/onKeyUp-do-check-and-enable-button-tp4698098.html
>> Sent from the Seaside General mailing list archive at Nabble.com.
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://forum.world.st/onKeyUp-do-check-and-enable-button-tp4698098p4698113.html
> To unsubscribe from onKeyUp: -> do check and enable button, click here.
> NAML




--
View this message in context: http://forum.world.st/onKeyUp-do-check-and-enable-button-tp4698098p4698123.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130710/5c7cb6d9/attachment.htm


More information about the seaside mailing list