Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Date arithmetic Date: Thu, 13 Nov 2014 01:18:43 +0100 Organization: solani.org Lines: 23 Message-ID: References: <87d28szh5a.fsf@bsb.me.uk> <5785626.gmMvSiFopG@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1415837917 26816 eJwFwYEBwCAIA7CX2IRWzlGg/59gEgsfio6Ah0JLR7nBljC8+/xayMzpdpuw672RxSmKlnwxfBGY (13 Nov 2014 00:18:37 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 13 Nov 2014 00:18:37 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 X-User-ID: eJwFwQkBACAIA8BK8lMHpusfwbuwlER5RnowWAvno0BbSvVwGxs9MXqMHObVWeDt1nWTDzODEjw= In-Reply-To: <5785626.gmMvSiFopG@PointedEars.de> Cancel-Lock: sha1:phSn+pPfftsqbAYWNN0Pgs9hkww= X-NNTP-Posting-Host: eJwNw4kRACEIBLCWkGdxyxGF/ku4y0zCsHDTEfCYmJcUVZ7yzs1/t8BK2y6QbezFnKeVW3joHxYUEMg= Xref: csiph.com comp.lang.javascript:26129 Thomas 'PointedEars' Lahn wrote: > Christoph M. Becker wrote: > >> Ben Bacarisse wrote: >>> You might add a listener to the change event for these three fields (you >>> might even listen for key presses to get more immediate results). >> >> The input event[1] might come in handy here. >> >> [1] > > Given that this would run in Chrome, which does support HTML5, the “input” > event should suffice. Otherwise, mouse and keyboard events and the “change” > event should be considered; see also <9271849.S5ITpJ9GIt@PointedEars.de>. AFAIK, the "input" event is available in several other browsers (actually, DOM implementations) as well, see . -- Christoph M. Becker