<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Ron,<BR><DIV><BLOCKQUOTE type="cite"><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">I was wondering if you could help me understand something.</SPAN></FONT></P></DIV></BLOCKQUOTE>You do not provide enough background information.</DIV><DIV>Are you using Squeak or VW ?</DIV><DIV>Are you using SeasideAsynx of Scriptaculous ?</DIV><DIV><BR><BLOCKQUOTE type="cite"><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">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.</SPAN></FONT></P></DIV></BLOCKQUOTE>Since you are refering to liveCallback, it looks as if you are using SeasideAsync.</DIV><DIV>Also, the code you are wondering about is using the canvas api.</DIV><DIV>However, live callbacks are not implemented (yet) for the canvas api.</DIV><DIV>Are you implementing it ?</DIV><DIV>Did you copy/paste some code into your component ?<BLOCKQUOTE type="cite"><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">I’m trying to understand the following code:</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">canvas hiddenInput<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                        callback:<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                                    [value := Date<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                                                newDay: (day min: (Date daysInMonth: month forYear: year))<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                                                monthNumber: month<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                                                year: year.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                                    callbackBlock value: value];<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">                        close.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">            canvas forgetCurrentBrush.</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">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.<O:P></O:P></SPAN></FONT></P></DIV></BLOCKQUOTE>Regular callbacks are triggered by the submission of the form.</DIV><DIV>i.e. click a submit button, hit the return key, execution of a submit() javascript.</DIV><DIV>Therefore you need a form if you want regular callbacks triggered.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The dateInput composite is made up of four html elements</DIV><DIV>a select for the month, an input for the day, an input for the year and</DIV><DIV>the hidden input, each with a callback. The first three callbacks</DIV><DIV>are for collecting the input values. The fourth callback assembles</DIV><DIV>the input values into an instance of Date and passes it to</DIV><DIV>the component callback.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BLOCKQUOTE type="cite"><DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">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.</SPAN></FONT></P></DIV></BLOCKQUOTE><DIV>HTH</DIV><DIV>Michel.</DIV><BR></DIV><BR></BODY></HTML>