Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2592 closed bug (fixed)

jquery.datepicker undefined

Reported by: atlithorn Owned by: paul
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: datepicker Cc:
Blocked by: Blocking:


Using datepicker version 3.4. In IE the jquery.datepicker object is undefined in the onload handler for a page we were building. What worked for us was to simply move the singleton instantiation

$.datepicker = new Datepicker()

out of the $(document).ready handler.

So the code now looks like this:

/* Initialise the date picker. */
$.datepicker = new Datepicker(); // singleton instance

$(document).ready(function() {


This works perfectly for us.

Change History (4)

comment:1 Changed 15 years ago by Scott González

Resolution: fixed
Status: newclosed

Already fixed in SVN.

comment:2 Changed 15 years ago by kae

I just fixed a copy of datepicker with probably the same problem.

In my case, I moved the "$.datepicker = new Datepicker();" line to before the "$(document).ready()" line above it.

in my case, the problem was that I was loading the ui.datepicker.js file dynamically, so document.ready() was run before datepicker was added to jQuery.

I believe this is the same problem noted here.

version 3.4.3

comment:3 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:4 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.