Hello again,

I tried the code and it does the same thing as
"myCal.setOptions({blocked: ['14-30 11 2010']});"
It works but it doesn't load the new values immediately. I need to
again click on the next button of the month and come back to the
previous month to see the results.

I tried adding an extra line to reload the calendar display but with
no luck
myCal_datum.options.blocked = ['14-30 11 2010'];
myCal_datum.display( myCal_datum.calendars[0] );

Here is a link to the form using the calendars.
http://www.rmc-rotterdam.nl/index.php?option=com_content&view=article&id=85&Itemid=15

The first calendar when you click on the icon you will see that the
calendar is not blocked from the 14th till 30th of November, but when
you go to december and come back to november it shows as blocked.

I am using this calendar to be more exact. I am using this because it
is part of a component that I am using.
http://electricprism.com/aeron/calendar/

I hope someone can help me out with this, I am on a schedule and I am
afraid I will not get it to work.

On Nov 4, 7:12 pm, Gafa <[email protected]> wrote:
> Take a look:
>
> http://jsfiddle.net/AVtyc/1/
>
> You can reference the options from your class instance object.
>
> Gafa
>
> On Nov 4, 9:07 am, moleculezz <[email protected]> wrote:
>
> > Ok.. so I continued my search and came across this piece of code.
>
> > myCal.setOptions({blocked: ['14-30 11 2010']});
>
> > So now it works, but not completely like it should.
> > What happens is, when I click on the button to popup the calendar it
> > does allow me to select the dates I specified to be blocked. But when
> > I click on the arrow to go to the next month and click again on the
> > arrow to go back to the previous month, it shows the blocked dates.
>
> > How can I solve this problem?
>
> > On Nov 4, 1:51 pm, moleculezz <[email protected]> wrote:
>
> > > Oh, and btw I'm using mootools 1.12, can't upgrade at the moment
>
> > > On Nov 4, 1:40 pm, moleculezz <[email protected]> wrote:
>
> > > > Hello,
>
> > > > I am pretty new at mootools. But I have a problem with a calendar
> > > > component. The class has some "options". And the calendar creates the
> > > > object with specific options set. I want to change one of the option
> > > > values after the object has already been created.
>
> > > > I did figure out that the class uses "this.setOptions(options)" in
> > > > "initialize". So my question is how do you re initialize with the new
> > > > option value?
>
> > > > I figured this was my problem since I was able to change the option
> > > > value but it would not take effect.

Reply via email to