In version 5.3.x (or before, not sure), the Tapestry will let document to fire a Tapestry.FOCUS_CHANGE_EVENT after the value gets changed in a DateField, as:
document.fire(Tapestry.FOCUS_CHANGE_EVENT, this.field); So you could capture this event and do something you want. The 5.4.x changed it, so this way won't work anymore. On Sat, Jul 13, 2013 at 8:02 AM, John <[email protected]> wrote: > I should of copied your onchange="$(this).closest('form').submit();" js > (not used the form name) > > submitting the form is not an option for me because I'm using kaptcha and > don't really want to submit the whole form each time - really need an ajax > solution?! > ----- Original Message ----- > From: Boris Horvat > To: Tapestry users > Sent: Saturday, July 13, 2013 12:24 PM > Subject: Re: zoneUpdate on datefield > > > It could be that one of them works only for jquery events. Anyway you can > do the same as me. User either bind mixin or normal form and zone > > > On Sat, Jul 13, 2013 at 1:08 PM, John <[email protected]> wrote: > > > ok, I see the jscalendar does fire onchange as your code below works, > but > > the t:clientEvent="change" for the zoneUpdater doesn't capture the > event - > > I find that a bit confusing? > > ----- Original Message ----- > > From: John > > To: Tapestry users > > Sent: Saturday, July 13, 2013 11:54 AM > > Subject: Re: zoneUpdate on datefield > > > > > > I think I need to modify the actual datepicker components js to > trigger > > the onchange event as well. > > ----- Original Message ----- > > From: Boris Horvat > > To: Tapestry users > > Sent: Saturday, July 13, 2013 11:29 AM > > Subject: Re: zoneUpdate on datefield > > > > > > This is what I use > > > > <t:datefield t:id="datefield" > t:mixins="jquery/customdatepicker" > > t:value="dateValue" onchange="$(this).closest('form').submit();"/> > > > > > > > > On Sat, Jul 13, 2013 at 12:29 PM, John <[email protected]> wrote: > > > > > thanks, I'll look into your suggestions I am using jquery > > > > > > the onchange event only seems to trigger when the input receives > > focus, is > > > keyed and then loses focus (the date picker popup does none of > > these, maybe > > > it should!?) > > > > > > John > > > ----- Original Message ----- > > > From: Boris Horvat > > > To: Tapestry users > > > Sent: Saturday, July 13, 2013 11:18 AM > > > Subject: Re: zoneUpdate on datefield > > > > > > > > > You dont have to use zoneUpdater, just use normal form and > submit > > it > > > when a > > > user changes a value. or you can use bind mixin (assuming that > you > > are > > > using tapestry5-jquery) > > > > > > > > > On Sat, Jul 13, 2013 at 11:51 AM, John <[email protected]> > wrote: > > > > > > > I tried that first, it does nothing - not what I expected? > > > > ----- Original Message ----- > > > > From: Boris Horvat > > > > To: Tapestry users > > > > Sent: Saturday, July 13, 2013 10:43 AM > > > > Subject: Re: zoneUpdate on datefield > > > > > > > > > > > > try using onchange event > > > > > > > > > > > > On Sat, Jul 13, 2013 at 11:44 AM, John <[email protected]> > > wrote: > > > > > > > > > I am trying to catch changes to a datefield using the > > zoneUpdater > > > > mixin. > > > > > > > > > > The keyup event is fine for typing, but is there a way to > > capture > > > the > > > > > value change when it's done using the date pickup popup? > > > > > > > > > > John > > > > > > > > > > > > > > > > > > > > -- > > > > Sincerely > > > > *Boris Horvat* > > > > > > > > > > > > > > > > -- > > > Sincerely > > > *Boris Horvat* > > > > > > > > > > > -- > > Sincerely > > *Boris Horvat* > > > > > > -- > Sincerely > *Boris Horvat* >
