enableTime in form 3b problem


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

mCal = new dhtmlxCalendarObject(‘dhtmlxCalendar’);

	tp = mCal.tp;[/code]

What is wrong? :confused:

	<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>
		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);

Hi, ram_sk!
Localy your code works perfectly. Time displays without any issue.
Try to replace your dhtmlxfom.js file with file from attachment
dhtmlxform.zip (14.7 KB)

Hi again,

  after long time spend with testing, I found where is problem. Its dhtmlxcalendar.js.

   Original version (standart or pro) doesn't work with form 3b (dhtmlxtimepicker.js call is broken). 

But I found in this forum demo.zip with bigger dhtmlxcalendar.js file (59,4 KB) and … its works.

Anyway thanks for help

hi Ram_sk…

where did you find demo.zip file??

can you send it again here…

I have same problem with you…

Thanks. :slight_smile: