[Seaside] dateInput Question

Ron Teitelbaum Ron at USMedRec.com
Fri Nov 3 03:23:29 UTC 2006


Hello All,

 

I was wondering if you could help me understand something.

 

I'm trying to add a livecallback to dateInput.  It works fine but since I
have a liveCallback now the regular callback doesn't work.

 

I'm trying to understand the following code: 

 

canvas hiddenInput

                        callback:

                                    [value := Date

                                                newDay: (day min: (Date
daysInMonth: month forYear: year))

                                                monthNumber: month

                                                year: year.

                                    callbackBlock value: value];

                        close.

            canvas forgetCurrentBrush.

 

It all makes sense except the part of what triggers the callback in the
first place.  Can someone point me to how this hiddenInput callback is
triggered?  I'd like to modify my liveCallbackYear: to call this code and
the regular callback code and then my liveCallback block.

 

Ultimately I'm trying to have a date with a field next to it that shows age.
If you change the age it changes the date, and if you change the date it
changes the age.  I have the age updating the date just fine.  Now I need
the date changes updating the age.

 

Thanks for your help!

 

Ron Teitelbaum

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20061102/7334f2a1/attachment.htm


More information about the Seaside mailing list