shtml_calandar demo

2 views
Skip to first unread message

smtm

unread,
Nov 9, 2006, 9:58:14 AM11/9/06
to Ruby on Rails: DHTML Calendar
Have you got the dhtml_calendar running on a demo site somewehere .
I am havin trouble with the integration. The date field is passed along
ok
but the .js files do not spring into when preeing the link to get the
popup calendar

dry

unread,
Nov 9, 2006, 10:57:38 AM11/9/06
to Ruby on Rails: DHTML Calendar
Apologies for not having a good demo available.

Could you try adding:

:form_name => 'custform',

to your :options on the calendar call? Where 'custform' is the name of
your form.

I think a bug was introduced when functionality was added to allow for
multiple forms on the same page.

Let me know if this resolves the issue.

Thanks.

smtm

unread,
Nov 9, 2006, 11:46:33 AM11/9/06
to Ruby on Rails: DHTML Calendar
Hello dry,

I have done the following by adding
:form_name => 'events',
:form_Name => 'events'
:formName => 'events'
both to the 3rd and the 4th block of:

<%= popup_calendar 'event', 'date',
{ :class => 'date1',
:field_title => 'Date Start',
:button_image => 'calendar.gif',
:formName =>'event',
:button_title => 'Show Calenadr' },
{ :firstDay => 1,
:range => [2006, 2012],
:step => 1,
:showOthers => true,
:cache => false }
%>

And I always get to line 10 nil error.
None of that worked.
Is this what you meant?

dry

unread,
Nov 9, 2006, 5:53:22 PM11/9/06
to Ruby on Rails: DHTML Calendar
A change to facilitate multiple forms on a page introduced the
:form_name option to the html options of the calendar method.
Unfortunately, that broke those that are using the calendar in a
non-named form.

This has been fixed and the svn has been updated.

Sorry for the oversight.

Thanks.

smtm

unread,
Nov 9, 2006, 6:12:27 PM11/9/06
to Ruby on Rails: DHTML Calendar
Thanx for the fix, I installed from the repository (rev 14) and it
works fine now.
thx ro
Reply all
Reply to author
Forward
0 new messages