calendar_select does not update fields

4 views
Skip to first unread message

RickEEE

unread,
Apr 19, 2007, 9:50:18 PM4/19/07
to Ruby on Rails: DHTML Calendar
calendar_box works fine but I can't get calendar_select to work. When
I use calendar select, it does not update the fields after I click on
a new date. Anybody get it to work? The code I use is:

<%= calendar_select 'service', 'eval',
{ :class => 'date' },
{ :firstDay => 1,
:range => [1920, 2007]} %>

I threw in alerts in calendar-setup.js like so:

function onSelect(cal) {
alert ("Select");
var p = cal.params;
var update = (cal.dateClicked || p.electric);

if (update){
alert ("Update");
}

. . . . . . .

if (update && p.inputFieldDay) {
alert ("Day");


I get the "Select" and "Update" alerts but not the "Day" alert.

Any help appreciated. Thanks!

Reply all
Reply to author
Forward
0 new messages