Calendar attaching to layout cell is not showing

I am trying to attach a calendar to a cell in a layout this way

       layout.cells("c").attachObject("CalObj");
       var calendar = new dhtmlXCalendarObject("CalObj");
       calendar.show;
       calendar.setDate('2011-09-25');

CalObj is a div id. As far as i can tell i am doing everything right
… but the calendar is not showing up in
layout.cells(“c”).

Could you advise?

show is a method. here is how it should be called:

var calendar = new dhtmlXCalendarObject(“CalObj”);
calendar.show();

Da! That was easy! Thank you! :smiley: :astonished: