Search and Top Navigation
#2108 closed bug (fixed)
Opened January 03, 2008 07:13AM UTC
Closed March 15, 2008 09:29PM UTC
Last modified February 26, 2009 11:22AM UTC
Problem in Ui/Datepicker
Reported by: | manjula | Owned by: | kbwood |
---|---|---|---|
Priority: | major | Milestone: | 1.5 |
Component: | ui.core | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
I'm using rails 2.0.1 with jrails and jquery. I'm trying to use UI/Datepicker. While running i'm getting the error as
$.datepicker has no properties
[Break on this error] for (attrName in $.datepicker._defaults) {
in ui.datepicker.js (line 1419)
Please tell me how to resolve it.
Attachments (0)
Change History (6)
Changed January 14, 2008 07:03PM UTC by comment:1
component: | core → ui |
---|---|
owner: | → paul |
Changed January 14, 2008 11:21PM UTC by comment:2
owner: | paul → kbwood |
---|
Can you provide the code for or a URL to a page that demonstrates the problem?
Changed January 31, 2008 12:54AM UTC by comment:3
Replying to [ticket:2108 manjula]:
I'm using rails 2.0.1 with jrails and jquery. I'm trying to use UI/Datepicker. While running i'm getting the error as $.datepicker has no properties
I think your problem (and mine, a few minutes ago, but without jrails) is that you're trying to call Datepicker before it gets instantiated. Datepicker has an onready event near the end that sets up the library. If, like me, you're including it later in your page (say, using content_for), but your event that wants to build a datepicker comes first, it dies.
Try moving your include for datapicker sooner in your page. That worked for me!
(btw, never heard of jrails before, sounds like something I've been looking for, thanks!)
Changed March 15, 2008 09:29PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | new → closed |
Changed May 24, 2008 03:39AM UTC by comment:5
milestone: | 1.2.2 |
---|
Milestone 1.2.2 deleted
Changed February 26, 2009 11:22AM UTC by comment:6
milestone: | → 1.5 |
---|