Giter Club home page Giter Club logo

birthdaypicker's People

Contributors

abecoffman avatar albanr avatar asser avatar bryant1410 avatar kidsil avatar lookfirst avatar neagle avatar renyi avatar waywardspooky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

birthdaypicker's Issues

Chrome browser is causing a day in default date to be behind.

Using the below, it alleviates the strange issue of chrome parsing the date differently.

function parseDate(input) {
var parts = input.match(/(\d+)/g);
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[0], parts[1]-1, parts[2]); // months are 0-based
}

accessing the hidden date

I just realized that it would be really awesome if I could more easily access the hidden date from within the birthdaypicker instance itself instead of having to select the data from the hidden input field.

bdaypicker = $('foo').birthdaypicker(options)

Date date = bdapypicker.getDate()

and/or:

date = bdapypicker.getDateString()
date is then in: 'yyyy-mm-dd' format (or whatever the date format is from the options)

IE 9/10 does not load code into div.

I use this for load birthdaypicker.

$(document).ready(function() {
$("#picker1").birthdaypicker({});
});

It does not load/display in IE 9 and 10

Default date always a day behind

Your defaultDate functionality isn't using the UTC get year/month/date methods so if a defaultDate is supplied, your drop down list will always be a day behind.

Day reset when current year selected

The day is reset when the current year is selected, and FutureDates is not on.
This is the code that does it:
// reset the day selection
$day.children(":first").attr("selected", "selected");

Is this necessary? It doesn't seem to be.

Date Format

Currently the date value can be formatted like this YYYY-M-D depending on the day and month. How can I change it so that it is always YYYY-MM-DD?

Unwanted margin/padding

Hi, I'm getting a left margin/padding that I don't know how to remove. I have no css on this page except for "fieldset { padding: none; border: none; }" to remove the border.

Any idea?

Untitled

hiddenDate is all messed up when a defaultDate is passed in

Let's say I pass in a defaultDate of format 'YYYY-MM-DD'. That sets hidden date to that format.

However, if my dateFormat is not bigEndian, then the date format gets moved around as soon as something in the popup changes.

Really what should have been done is that the hiddenDate stays one single format (preferably, YYYY-MM-DD) regardless of whatever dateFormat is. Or there should be a hiddenDateFormat setting.

Picker always rendered last

I have quite a bit of different scripts loaded in specific order. I want to set up an event listener for date drop-downs, but problem is that they always render last. Is this expected behaviour?

Fails on Safari on Mac

Dependency on Date(string) constructor which does not have a standardized behaviour (i.e. spec on what formats are parsable).
yyyy-mm-dd is not (on a Mac). Perhaps yyyy-mm-dd fails someplace else but mm-dd-yyyy works ?

Something like: (from http://stackoverflow.com/questions/3085937/safari-js-cannot-parse-yyyy-mm-dd-date-format)

function parseDate(input, format) {
format = format || 'yyyy-mm-dd'; // default format
var parts = input.match(/(\d+)/g),
i = 0, fmt = {};
// extract date-part indexes from the format
format.replace(/(yyyy|dd|mm)/g, function(part) { fmt[part] = i++; });

return new Date(parts[fmt['yyyy']], parts[fmt['mm']]-1, parts[fmt['dd']]);
}

might work. Trying it now !

Having an infrequent, but problematic issue with appendTo

Occasionally, the plugin fails on line 100, with the error, "Object has no method 'appendTo'" which is obviously crazy, since it does. It happens sporadically, on all browsers. I can't seem to find a rhyme or reason to it yet.

We're using jQuery 1.8.3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.