Hello everybody,
I tried the changes suggested by Satyen and I think I made some
progress. However, I run into a new issue.. in fact even though this
time the month and year select boxes do not disappear when the
calendar is rendered, it seems like their change do not fire the
change event. As a result I cannot update the calendar page.
Does anybody have any suggestion about why? I posted an updated
version of the calendar at:
http://pao.light.googlepages.com/calendarOnly.htm
Thanks!
Paola
--- In ydn-javascript%40yahoogroups.com">ydn-javascript
yahoogroups.com, "Paola" <pao_light
...> wrote:
>
> Thanks a lot Satyen,
>
> I will try your suggestions and let you know.
>
> Ideally, I would like to put the select boxes on top of the
calender
> (and also to make them inline). I guess in that case I should
> overwrite the current header.
>
> Thanks again for your advice,
>
> Paola
>
>
> --- In ydn-javascript%40yahoogroups.com">ydn-javascript
yahoogroups.com, "Satyen Desai" <sdesai
>
> wrote:
> >
> > Hey pao_light,
> >
> > > I was trying to understand why the select boxes
> > > are disappearing after a calendar render and how to fix the
> problem..
> >
> > The Calendar/CalendarGroup clears out the contents (innerHTML) of
> the
> > Calendar container DIV every time render() is called.
> >
> > If you want to modify the markup within the Calendar container
DIV,
> > you should do it inside a renderEvent listener.
> >
> > function insertYearMonthDropdowns() {
> > ...
> > }
> > cal.renderEvent.subscribe(insertYearMonthDropDowns);
> >
> > Another alternative, which maybe cleaner if you only want to add
> stuff
> > to the footer, is to over-ride Calendar's default (emtpy)
> > implementation of renderFooter(), similar to the example below:
> >
> >
>
http://yuiblog.com/sandbox/yui/v230/examples/calendar/calendarFooter.h
> tml
> >
> > Hope that helps,
> > Satyen
> >
>
.