Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rambomaster on Jul 09, 2008 06:04
open dhtmlx forum
Incorrect Position

I tried to attach the calendar to a text input field with this code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
    <head>
        <title>dhtmlXCalendar Test</title>
        <link rel="stylesheet" type="text/css" href="css/dhtmlxcalendar.css" />
        <link rel="stylesheet" type="text/css" href="css/dhtmlxcalendar_skins.css" />
        <script type="text/javascript" src="js/dhtmlXCommon.js"></script>
        <script type="text/javascript" src="js/dhtmlXCalendar.js"></script>
        <script type="text/javascript">
            window.dhx_globalImgPath="css/imgs/";
        
            var cal1;
            
            window.onload = function () {
                cal1 = new dhtmlxCalendarObject('calInput1');
            }
        </script>
    </head>
    <body>
        <div>
            <input type="text" id="calInput1" name="calInput1" />
        </div>
    </body>
</html>

With this code it looks like on this screenshot: http://img299.imageshack.us/img299/9933/dhtmlxcalendarzk7.png
But the calendar should positioned directly right to the text input field.
Answer posted by Support on Jul 09, 2008 07:33
The issue is not reconstructable with latest version of calendar. The same code works correctly in local samples.
Attachments (1)
Answer posted by Rambomaster on Jul 09, 2008 08:12
Hmm it works with the attached File.
I downloaded again the official Calendar from http://www.dhtmlx.com/docs/download/dhtmlxCalendar.zip for testing and again the same bug.
I took the file dhtmlxCalendar\sources\dhtmlxcalendar.js. Maybe is there a bug in the official Download?

Thanks for the new File and the fast answer.
Answer posted by Support on Jul 09, 2008 09:15
>>Thanks for the new File and the fast answer.
The file attached to previous post, is latest dev. version with all fixes after last official release. Version at dhtmlx.com will be updated with same fixes in nearest time.