I think this problem was fixed in trunk -- you can try the current trunk version of anytime.js: http://code.google.com/p/web2py/source/browse/applications/welcome/static/js/anytime.js (if you look at the most recent diff, you'll see it was just one small change, so you can probably just make the change to your version).
Anthony On Tuesday, November 1, 2011 9:46:44 PM UTC-4, Samuele Santi wrote: > > I am creating a search form in which I let the user optionally specify a > datetime range to be used to filter results. > The plan was to check whether the user choose a date, and if that's the > case, add a filter to the search query. > > Problem is: if the user clicks on the datetime field, or even tabs into > it, a date is automatically filled in, and apparently there's no way to > blank the field again without refreshing the page (and, from the user > perspective, no way at all if I use GET and then populate form defaults > from request.vars...). > > Is there an hidden way to blank datetime fields, or it just cannot be > done? It would be nice to have a "clear field" button, or so.. > Also, I'm not sure that opening the date selector on focus (that is, > even when accessing with tab) is the most accessible way (it requires 6 > more Tab presses to get on the next field..). > > -- > Samuele ~redShadow~ Santi > ---------------------------------------------------------------- > redshadow[at]hackzine.org - redshadowhack[at]gmail.com > > Blog: http://hackzine.org > > GPG Key signature: > 050D 3E9F 6E0B 44CE C008 D1FC 166C 3C7E EB26 4933 > ---------------------------------------------------------------- > /me recommends: > Squadra Informatica - http://www.squadrainformatica.com > ---------------------------------------------------------------- > - Proud ThinkPad T-Series owner > - Registered Linux-User: #440008 > * GENTOO User since 1199142000 (2008-01-01) > * former DEBIAN SID user > ---------------------------------------------------------------- > "Software is like sex: it's better when it's free!" > -- Linus Torvalds > >

