awong
Thu Jan 06 15:13:04 CST 2005
Hi Michael,
Thanks to your email.
I understand why I got the error message.
I just don't know what should be the correct syntax to retrieve/to pick the
Calendar date.
I searched and the solution I can find so far is using Java date picker:
http://www.itechcentral.net/java/Calendars/popup-date-picker.html
I would be very surprise if I can't pick the date I want with the Calendar
control.
Any idea?
Thanks.
Abel Chan
"Michael Harris (MVP)" wrote:
> > ...
> > <script language=vbscript>
> > sub Calendar1_OnClick
> > rem Try to retrieve selected date value. Calendar1.value is an
> > invalide statement.
> > rem msgbox Calendar1.value
>
> You probably get that error because the <object> element itself (as opposed
> to the ActiveX object it is exposing) does not have a value property.
>
> For object's that expose properties with names that match common html
> element attribute names (like value), you should be able to use the syntax
>
> Calendar1.object.value
>
> to get at the underlying object's value property. The object attribute of
> and object element exposes the contained object, i.e., the calendar control
> in this case.
>
> > end sub
> > </script>
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
>
>