Hi,
when I try calendar demo with time picker, i see only calendar without time.
I downloaded dhtmlxtimepicker from this forum: ext.zip
dhtmlxcalendar.js and dhtmlxform_item_calendar.js files included.
Standalone calendar work fine
[code]
mCal = new dhtmlxCalendarObject(‘dhtmlxCalendar’);
mCal.draw();
mCal.enableTime(true);
tp = mCal.tp;[/code]
What is wrong?
<title>dhtmlxCalendar</title>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxform_dhx_skyblue.css">
<link rel="stylesheet" type="text/css" href="../../dhtmlxCalendar/codebase/ext/dhtmlxtimepicker.css">
<link rel="stylesheet" type="text/css" href="../../dhtmlxCalendar/codebase/dhtmlxcalendar.css">
<link rel="stylesheet" type="text/css" href="../../dhtmlxCalendar/codebase/skins/dhtmlxcalendar_dhx_skyblue.css">
<script src="../../dhtmlxCalendar/codebase/dhtmlxcalendar.js"></script>
<script src="../../dhtmlxCalendar/codebase/ext/dhtmlxtimepicker.js"></script>
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxform.js"></script>
<script src="../../codebase/ext/dhtmlxform_item_calendar.js"></script>
<script>
var myForm, formData;
function doOnLoad() {
formData = [
{type: "settings", position: "label-left", labelWidth: 120, inputWidth: 120},
{type: "input", label: "date", value: ""},
{type: "password", label: "Password", value: "123"},
{type: "select", label: "Session", options:[
{value: "1", text: "Administration"},
{value: "2", text: "Design"},
{value: "3", text: "Manage Articles"}
]},
{type: "calendar", dateFormat: "%Y-%m-%d %H:%i", name: "start_date", label: "Start Date", readonly: true, options:{
yearsRange: [2010, 2015],
enableTime: true,
isMonthEditable: true,
isYearEditable: true
}},
{type: "calendar", name: "end_date", label: "End Date", readonly: true}
];
myForm = new dhtmlXForm("myForm", formData);
}
</script>