[ 35 posts ] Go to page Previous1, 2, 3, 4

Daniel Kipp

  • Username: dck
  • Joined: Wed Aug 18, 2010 11:40 pm
  • Posts: 12
  • Offline
  • Profile

Re: Why no garden variety date picker

Post Posted: Thu Apr 12, 2012 8:12 am
+0-
@Jeff
perfect, it is working now and thanks to your example I was able to set it up and played with it.

Feedback: It almost solves my needs, but...
1. there is a problem with the date output. The number for the month in incorrect. I know, the js month starts at 0. A selected date eg 1.may looks wrong with a 1/4/2012 in the form...

2. manualy changing the date dos not work... In opera the calendar is blocking the input field, FF works. But the calendar dos not reflect the changes in the form.

3. I still need to use a local file, I assumed that with the next build (from 3.5.0pre5 to 3.5.0) the callendar-popup was added to the gallery. Wrong?

Thanks again for your work

Jeff Pihach

YUI Contributor

  • Username: hatch
  • Joined: Wed Dec 08, 2010 9:20 am
  • Posts: 37
  • Twitter: fromanegg
  • GitHub: hatched
  • Gists: hatched
  • IRC: hatch
  • Offline
  • Profile

Re: Why no garden variety date picker

Post Posted: Thu Apr 12, 2012 8:40 am
+0-
Thanks Daniel,

1) I didn't want to make any assumptions as to what you wanted to do with the date so you're simply given the date returned from Y.Calendar. Thanks for pointing that out though I'll be sure to fix it in the demo.

2a) I'm assuming you mean changing the date in the input field doesn't update the calendar? This is a feature request but because of #1 I haven't figured out the proper way to parse that date yet.

2b) I haven't yet tested in Opera, thanks I'll mark that down as a bug

2c) I can't reproduce this using the example, what version of FF and OS please?

3) Yes sorry it still needs to be hosted locally (I messed up the config for the last CDN build) :)

Daniel Kipp

  • Username: dck
  • Joined: Wed Aug 18, 2010 11:40 pm
  • Posts: 12
  • Offline
  • Profile

Re: Why no garden variety date picker

Post Posted: Thu Apr 12, 2012 9:43 am
+0-
Thanks for the fast answer.

I'm using Ubuntu Linux, opera 11.62 and Firefox 11.0.
I have used the example on:
http://examples.fromanegg.com/yui-popup ... mples.html

The bug is:
I cant write to the input field (setting a date without the use of the popup-calendar), the first time is ok. But if the date is chosen twice (set and altered) the input can't get a focus anymore.

Hope that helps

I'll test this tomorrow on a windows PC..

Jeff Pihach

YUI Contributor

  • Username: hatch
  • Joined: Wed Dec 08, 2010 9:20 am
  • Posts: 37
  • Twitter: fromanegg
  • GitHub: hatched
  • Gists: hatched
  • IRC: hatch
  • Offline
  • Profile

Re: Why no garden variety date picker

Post Posted: Thu Apr 12, 2012 10:56 am
+0-
Ahhh yes, in the example you'll see a config property `autoFocusOnFieldFocus: true` right now this is true by default because there is a small bug which causes the calendar to sometimes autohide depending on the browser.

Jeff Pihach

YUI Contributor

  • Username: hatch
  • Joined: Wed Dec 08, 2010 9:20 am
  • Posts: 37
  • Twitter: fromanegg
  • GitHub: hatched
  • Gists: hatched
  • IRC: hatch
  • Offline
  • Profile

Re: Why no garden variety date picker

Post Posted: Thu Apr 12, 2012 1:38 pm
+0-
Status update:

Fixed a few bugs
Added in the functionality to auto focus the calendar or not
Updated the example to allow attribute toggling

Docs: http://fromanegg.com/code/yui-popup-calendar
Code: https://github.com/hatched/yui3-gallery ... p-calendar

Feel free to send me any more bug reports or feature requests.
  [ 35 posts ] Go to page Previous1, 2, 3, 4
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum