always show calendar

10 views
Skip to first unread message

Fladi

unread,
Jul 31, 2007, 6:52:07 AM7/31/07
to Ruby on Rails: DHTML Calendar
Hi there!

I just got this wonderful plugin working.

I used this code in order to pop-up the calendar when the image is
"mouse-overd".

<%= popup_calendar 'resource', 'date',
{ :class => 'date',
:field_title => 'resource',
:button_image => 'calendar.gif',
:button_title => 'Show calendar' },
{ :firstDay => 1,
:range => [2007, 2008],
:step => 1,
:showOthers => true,
:cache => true,
:eventName =>'mouseover',
:electric => false}
%>

It works great. Now I would like to show the calendar always. Is there
a way to do this? I tryed to use just <%= calendar .... but this isn't
working. I would like to have it as a date picker as on
http://37signals.blogs.com/products/2007/06/improved_date_p.html .

Any ideas?

Thanks
-Tim

Ed Moss

unread,
Jul 31, 2007, 9:45:09 AM7/31/07
to Ruby on Rails: DHTML Calendar
hmm, I think :flat is not working properly. Let me have a look.

Thanks for the mouseover example!

Fladi

unread,
Jul 31, 2007, 1:52:44 PM7/31/07
to Ruby on Rails: DHTML Calendar

Hi Ed,

> hmm, I think :flat is not working properly. Let me have a look.

ok.

:eventName => 'load' is working fine. Unfortunately only the first
time the page loads. After selecting a date, the calendar closes.

> Thanks for the mouseover example!

thanks for the great plugin ;-)


Ed Moss

unread,
Aug 7, 2007, 12:49:31 AM8/7/07
to Ruby on Rails: DHTML Calendar
:flat is fixed.

try it now.

Fladi

unread,
Aug 8, 2007, 6:16:12 AM8/8/07
to Ruby on Rails: DHTML Calendar
Hi!

> :flat is fixed.
> try it now.

Ah, great. The calendar shows up as wished ;-) Unfortunately the input-
field is no loger updated with the value clicked. Did I miss
something?

<%= calendar 'resource', 'date',
{ :class => 'date',
:form_name => 'sform'},
{ :firstDay => 1,
:range => [2007, 2009],


:step => 1,
:showOthers => true,

:electric => true,
}
%>

The input-tag is correctly inserted in the rendered page. Any clue?

thanks for the fix

regards
Tim

Ed Moss

unread,
Aug 9, 2007, 2:43:57 PM8/9/07
to Ruby on Rails: DHTML Calendar
Can you check your calendar.js to make sure you got the fix "too much
recursion" fix?

if ( !Date.prototype.__msh_oldSetFullYear ) {....

Thanks

Fladi

unread,
Aug 10, 2007, 2:21:55 AM8/10/07
to Ruby on Rails: DHTML Calendar
Hi,

> Can you check your calendar.js to make sure you got the fix "too much
> recursion" fix?

Yes it's there. ....

if ( !Date.prototype.__msh_oldSetFullYear ) {
Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) {
var d = new Date(this);
d.__msh_oldSetFullYear(y);
if (d.getMonth() != this.getMonth())
this.setDate(28);
this.__msh_oldSetFullYear(y);
};
}

Burford2k

unread,
Aug 13, 2007, 1:21:04 PM8/13/07
to Ruby on Rails: DHTML Calendar
Can you provide me this plugin and give me some first steps to use it?

Thanks in advance

On Jul 31, 4:52 am, Fladi <derfl...@gmail.com> wrote:
> Hi there!
>
> I just got this wonderful plugin working.
>
> I used this code in order to pop-up the calendar when the image is
> "mouse-overd".
>
> <%= popup_calendar 'resource', 'date',
> { :class => 'date',
> :field_title => 'resource',
> :button_image => 'calendar.gif',
> :button_title => 'Show calendar' },
> { :firstDay => 1,
> :range => [2007, 2008],
> :step => 1,
> :showOthers => true,
> :cache => true,
> :eventName =>'mouseover',
> :electric => false}
> %>
>
> It works great. Now I would like to show the calendar always. Is there
> a way to do this? I tryed to use just <%= calendar .... but this isn't

Fladi

unread,
Aug 13, 2007, 1:53:32 PM8/13/07
to Ruby on Rails: DHTML Calendar

> Can you provide me this plugin and give me some first steps to use it?

You can download the latest version via SVN. The URL is:
http://dhtml-calendar.googlecode.com/svn/trunk/

The plugin is shipped with a good documentation...

Regards
Tim

Ed Moss

unread,
Sep 20, 2007, 3:19:26 PM9/20/07
to Ruby on Rails: DHTML Calendar
Where do we stand on this issue? Is it fixed?

Thanks.

Reply all
Reply to author
Forward
0 new messages