#2108 closed bug (fixed)
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.
Change History (6)
comment:1 Changed 15 years ago by
Component: | core → ui |
---|---|
Owner: | set to paul |
comment:2 Changed 15 years ago by
Owner: | changed from paul to kbwood |
---|
comment:3 Changed 15 years ago by
Replying to 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!)
comment:4 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 Changed 14 years ago by
Milestone: | → 1.5 |
---|
Can you provide the code for or a URL to a page that demonstrates the problem?