Hi again,

I was able to solve the problem with the code provided.

I had to use a function which was part of the calendar to make the
changes take effect.
So in the end I had to use the following code.

myCal_datum.options.blocked = ['14-30 11 2010'];
myCal_datum.changed( myCal_datum.calendars[0] );

Thanks for the help!

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