Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by miral on Jun 30, 2008 08:10
open dhtmlx forum
How to use Calandar control

I have tried but somehow it display calendar window which is not proper and some other window with page cannot be displayed. Here is the code that I have tried.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>datepicker</title>

</head>
<script language="JavaScript" src="include/dhtmlxcalendar.js"
    type="text/javascript"></script>

<script language="JavaScript" src="include/dhtmlxcommon.js"
    type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="/include/dhtmlcalendar.css">



<input type="text" id="calInput1" class="dhtmlcalendar">

<script>
    cal1 = new dhtmlxCalendarObject('calInput1');
</script>

<body>

</body>
</html>
Answer posted by Support on Jun 30, 2008 09:53
a) to be safe, always include dhtmlxcommon.js at first
b) in your HTML layout input tag placed outside of BODY

Whe two, mentioned above, problems fixed - all works correctly.
Sample attached
Attachments (1)