Problem getting date picker working

117 views
Skip to first unread message

lmorris99

unread,
May 3, 2011, 4:56:33 PM5/3/11
to actives...@googlegroups.com
I'm using
active_scaffold_config_list_vho (3.0.2)
active_scaffold_vho (3.0.18)
rails 3.0.0
ruby 1.8.7 (2010-04-19 patchlevel 253)
I have jquery.js, jquery-ui.js, and date-picker-bridge.js installed.
"view source" shows all 3 of them loaded in my page. My development log has no complaints.
But when I click Search, the datetime fields just show the standard "Past / Future / Range" dropdown, with text fields for the dates.
I have not overridden search_ui in my controller.
Can't figure out what's going on.  Any ideas?

lmorris99

unread,
May 3, 2011, 5:05:19 PM5/3/11
to actives...@googlegroups.com
Looking closer, the javascript console says "missing ; before statement".
Maybe that helps.

vhochstein

unread,
May 4, 2011, 3:28:08 AM5/4/11
to ActiveScaffold : Ruby on Rails plugin
Hi,

would be great if you could tell us in which file the "missing ;
before statment" error occurs??

--
Volker

lmorris99

unread,
May 4, 2011, 11:42:30 AM5/4/11
to actives...@googlegroups.com
It's in jquery-ui.js (version 1.8.12).  I ran jslint on it, which complained similarly:
    Problem at line 10 character 154: Expected ';' and instead saw '}'.
     (function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(...
So I fell back to the older version of jquery-ui.js (1.7.3) and of jquery.js (1.3.2).
Now there is NO complaint about "missing ; before statement". That's good.
But still there's no date-picker when I click Search, just the drop-down for "Past, Future, Range..." and text boxes.
Is there some way I can be sure that the function in date_picker_bridge is really being called?

vhochstein

unread,
May 5, 2011, 8:33:27 AM5/5/11
to ActiveScaffold : Ruby on Rails plugin
Hi,

Can you please take a look at :
http://vhochstein.wordpress.com/2010/09/18/activescaffold-using-dates-with-jquery/

and create the mentioned example app. Would be great to know if it s
working in my example app.

--
Volker

Lindsay Morris

unread,
Jun 19, 2011, 1:36:34 PM6/19/11
to actives...@googlegroups.com
It's working now.
"View source" from my browser showed that I wasn't including some of the javascript libraries that your example included.
Thanks (again!) 
Reply all
Reply to author
Forward
0 new messages