List Info

Thread: Re: Problems with calendar and select boxes




Re: Problems with calendar and select boxes
country flaguser name
United States
2007-09-19 16:27:00

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-javascriptyahoogroups.com, "Satyen Desai"; <sdesai...>
wrote:
>
&gt; 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
&gt; 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:
&gt;
>
http://yuiblog.com/sandbox/yui/v230/examples/calendar/calendarFooter.h
tml
&gt;
> Hope that helps,
&gt; Satyen
&gt;

__._,_.___
.

__,_._,___
Re: Problems with calendar and select boxes
country flaguser name
United States
2007-10-24 15:34:20

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-javascriptyahoogroups.com, "Paola" <pao_light...> wrote:
&gt;
> 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
&gt;
>
> --- In ydn-javascript%40yahoogroups.com">ydn-javascriptyahoogroups.com, "Satyen Desai"; <sdesai>
> wrote:
&gt; >
>; > 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
&gt; > to the footer, is to over-ride Calendar's default (emtpy)
> > implementation of renderFooter(), similar to the example below:
&gt; >
> >
>
http://yuiblog.com/sandbox/yui/v230/examples/calendar/calendarFooter.h
> tml
> >
> > Hope that helps,
&gt; > Satyen
&gt; >
>;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )