> I commented  "el.readOnly = true;" now i can edit but value isn't
> updated when calendar appears
Ah, you said nothing about that in your original question.
>From what I can tell of the code (I haven't pent too long analyizing
it) the code creates an array of the calendar required on the page and
then it stores the dates as they are picked.
There is a "changed" function that appears to "re-read" the input
field so you could call this each time the calendar is toggled
displayed.

Right below the readOnly line that you just commented out you should
see this line:

el.addEvent('focus', function(cal) {this.toggle(cal); }.pass(cal,
this));

change that to this:

el.addEvent('focus', function(cal)
{this.changed(cal);this.toggle(cal); }.pass(cal, this));

A quick test on my server got this to update the popup calendar's
selected date once it has lost focus then regains it.

Chris

On 25 mayo, 19:36, rainweb <[email protected]> wrote:
> Ok, i've setup all herehttp://jsfiddle.net/nBJDC/
> I commented  "el.readOnly = true;" now i can edit but value isn't
> updated when calendar appears
>
> On 25 Mag, 17:57, cbolson <[email protected]> wrote:
>
> > A very quick look at the calendar source code found this line:
> > el.readOnly = true;
> > Remove or comment out that line and it will allow you to edit the date
> > fields.
>
> > Chris
>
> > On 25 mayo, 17:20, Piotr Zalewa <[email protected]> wrote:
>
> > > I'll just shortly explain why it is important to put there
> > > (mooshell/jsfiddle)
> > > On these sites we are able to see the whole picture AND change things to
> > > make it work for you.
>
> > > Piotr
>
> > > On 05/25/10 15:44, Matthew Hazlett wrote:
>
> > > > That doesn't help, it needs to be on jsfiddle or mooshell
>
> > > > -----Original Message-----
> > > > Subject: [Moo] Re: areon's mootools calendar - manual input editing
>
> > > > Thanks for your attention, you can look here
> > > >http://fdemo.netsons.org/calendar/
>
> > > > On 23 Mag, 10:44, Oskar Krawczyk <[email protected]> wrote:
>
> > > >> Set-up an example page on jsfiddle.net then paste back a link.
> > > >> On 23 May 2010, at 09:17, rainweb wrote
> > > >>> I need to enable manual editing for input field together with
> > > >>> calendar.
> > > >>> How can i do this?
> > > >>> Thanks
>
> > > --
> > > blog  http://piotr.zalewa.info
> > > jobs  http://webdev.zalewa.info
> > > twit  http://twitter.com/zalun
> > > face  http://facebook.com/zaloon

Reply via email to