Hi,
I have simular problems in the Calendar control.
In my scenario I have two different calendar controls on one page. These controls both have their own input box. One Calendar is used to show the “orderdate” of a product and the other Calendar is used to show the “shippeddate”. I am not using the double Calendar since there is no relationship between the two different dates.
Scenario: the user enters the first date, the first calendar appears (ok!). Then the user clicks enters the second date. The second calendar appears (ok!). The first calendar is still there so the second is overlapping the first one (not ok!).
Both calendars are loaded with a similar script in the load function of the page:
function calendar_load_shippedDate()
{
mCall_shippedDate = new dhtmlxCalendarObject(‘shippedDate’, false, {isYearEditable:true, isMonthEditable:true, yearsRange:[2000, 2020]});
mCall_shippedDate.setDateFormat(’%Y-%m-%d’);
dhtmlxCalendarLangModules[‘myLanguageModule’] = {
langname: ‘myLanguageModule’,
monthesFNames: [“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”],
monthesSNames: [“Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”],
daysFNames: [“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”],
daysSNames: [“Su”, “Mo”, “Tu”, “We”, “Th”, “Fr”, “Sa”],
weekend: [0, 6],
weekstart: 1,
msgClose: “Close”,
msgMinimize: “Minimize”,
msgToday: “Today”
}
mCall_shippedDate.loadUserLanguage(“myLanguageModule”);
mCall_shippedDate.attachEvent(“onClick”, mCall_shippedDate_handleClick);
mCall_shippedDate.draw();
}
I am using the Calendar control dhtmlxSuite_v25_pro_91111.
I prefer not to change the source code to dhtmlSuite.
Any hints or workarounds?
BR
Jelte
p.s.
My organization bought a license this year. If you would like to know more about this license and my organization please contact me privately.