[web2py] datepicker preserve selecred date after postback
How to preserve datepicker selected date after postback using web2py in a javascript view... I think it's a javascript problem but I don't know how to fix it. thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Datepicker
Your field need to be of type date in order to the datepicker widget to trigger. You may also set a widget on your field if your field is not of type widget. I suspect that you only store de the mouth and day and not a date... Richard On Mon, Jun 17, 2013 at 9:22 PM, wrote: > I am following some examples and created a table with a date of birth > field. In my form I cannot seem to get the datepicker set to show when > selecting that field. Is there something special to do to get that to work > like that? > > Thanks > > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Datepicker
I am following some examples and created a table with a date of birth field. In my form I cannot seem to get the datepicker set to show when selecting that field. Is there something special to do to get that to work like that? Thanks -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] DatePicker
I am a bit confused on what I may be missing but how do I have a datepicker in my form? My db.py: b.define_table('patient', Field('first_name', requires=IS_NOT_EMPTY()), Field('last_name', requires=IS_NOT_EMPTY()), Field('phone', requires=IS_NOT_EMPTY()), Field('date_of_birth', required=IS_DATE(), requires=IS_NOT_EMPTY())) My Controller: def display_your_form(): form = SQLFORM(db.patient) return dict(form=form) and my html: Web Form Inputs: {{=form}} Submitted variables: {{=BEAUTIFY(request.vars)}} Just doing this for example but was curious of there is more that I have to do to make this work so when a user selects date of birth the datepicker appears. Thanks, Tom -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Datepicker not showing up for simple input field
Hello, I know I am probably overlooking something really obvious, but I can't get the datepicker to show up for a simple search field. The search seems to work ok, but I have to manually enter the date. my controller function is: *** def search(): form=FORM(INPUT(_name='datestamp', _class='date', requires=IS_DATE()), INPUT(_type='submit')) if form.accepts(request.vars, session): entry = db(db.log_entry.datestamp==form.vars.datestamp).select().first() if entry: session.flash='Found it!' redirect(URL('edit', args = entry.id)) else: response.flash="Can't seem to find it..." elif form.errors: response.flash='there was a problem...' else: response.flash='Enter something!' return dict(form=form) my view is just: {{extend 'layout.html'}} This is the default/search.html template {{=form}} I know it is probably an obvious noob mistake, but I just don't see it... Thanks
[web2py] datepicker js littles issues first day name of week don't get hilite class and build up hilite and active class when mouse over buttons
Hello, I notice that the datepicker js is not setting the hilite class properly to the first day name of the week when passing over it. Also when passing over the buttons ("?" and the "x") the js adds hilite class and active class as long as it detect movement, so there is a build up of hilite class and active class until on mouse over... Richard
[web2py] DatePicker not working
Something is wrong in my app. The date picker is not working. Which web2py files that come standard in web2py I might have edited?? the picker is just not showing and I dont get any error. THanks
[web2py] Datepicker to UTC time
Does/Can web2py store tzinfo in the datetime by the datepicker so that we can do time conversion easily to server time or UTC time. Time conversion was hell for me for the past two days. How is this issue typically approached? For my case, it has to be accurate as tasks are scheduled client side so that it is accurately executed as per server time in UTC (on GAE actually). Atm, I'm using a timedelta offest hack based on my client's fixed timezone. Weirdly I have to provide a minus 20 minutes on top of the +8 hours to approximately synchronise to the server time. I know, its bad and its a hack.
[web2py] Re: built in web2py datepicker bug with Google Chrome
Hi everyone, Tips: the patch is accepted in trunk. But, "hg pull; hg update" is not enough to make it work. You need to tell web2py to reload the new scaffold app by manually touch a file /home/you/web2py/NEWINSTALL and then restart your web2py. On Jul1, 8:01pm, Iceberg wrote: > > > I met this issue recently. And thank you so much for the nudge about > > > suspecting Chrome. That gave me the direction, then I found comment > > > 232 of this thread: > > > http://www.dynarch.com/projects/calendar/old/ > > > > I think Massimo need to include that patch into web2py's welcome app. > > > > Regards, > > > Iceberg
[web2py] Re: built in web2py datepicker bug with Google Chrome
No. I did not get it. On 3 Lug, 06:28, Iceberg wrote: > On Jul1, 8:01pm, Iceberg wrote: > > > > > On Jun30, 4:56am, Jean-Guy wrote: > > > > Hello, > > > > Is there other user that are having datepicker coming blank when > > > changing the year or mouth couples of time with Google Chrome? > > > > I test it with firefox no problem. > > > > I use web2py 1.7.8 > > > > Jonhy > > > Thank you, Jonhy!!! > > > I met this issue recently. And thank you so much for the nudge about > > suspecting Chrome. That gave me the direction, then I found comment > > 232 of this thread: > > http://www.dynarch.com/projects/calendar/old/ > > > I think Massimo need to include that patch into web2py's welcome app. > > > Regards, > > Iceberg > > Hi Massimo, I've sent you the patch. Did you get it? You might need to > check your spam folder. :-/
[web2py] Re: built in web2py datepicker bug with Google Chrome
On Jul1, 8:01pm, Iceberg wrote: > On Jun30, 4:56am, Jean-Guy wrote: > > > Hello, > > > Is there other user that are having datepicker coming blank when > > changing the year or mouth couples of time with Google Chrome? > > > I test it with firefox no problem. > > > I use web2py 1.7.8 > > > Jonhy > > Thank you, Jonhy!!! > > I met this issue recently. And thank you so much for the nudge about > suspecting Chrome. That gave me the direction, then I found comment > 232 of this thread: > http://www.dynarch.com/projects/calendar/old/ > > I think Massimo need to include that patch into web2py's welcome app. > > Regards, > Iceberg Hi Massimo, I've sent you the patch. Did you get it? You might need to check your spam folder. :-/
[web2py] Re: built in web2py datepicker bug with Google Chrome
On Jun30, 4:56am, Jean-Guy wrote: > Hello, > > Is there other user that are having datepicker coming blank when > changing the year or mouth couples of time with Google Chrome? > > I test it with firefox no problem. > > I use web2py 1.7.8 > > Jonhy Thank you, Jonhy!!! I met this issue recently. And thank you so much for the nudge about suspecting Chrome. That gave me the direction, then I found comment 232 of this thread: http://www.dynarch.com/projects/calendar/old/ I think Massimo need to include that patch into web2py's welcome app. Regards, Iceberg
[web2py] built in web2py datepicker bug with Google Chrome
Hello, Is there other user that are having datepicker coming blank when changing the year or mouth couples of time with Google Chrome? I test it with firefox no problem. I use web2py 1.7.8 Jonhy