Fixes a bug with selection.getDates() (when no format was passed, all dates in the array were set on the last date in selection).
Added Japanese and Portuguese translations.
Note that there is a newer version already.
Fixes a bug with selection.getDates() (when no format was passed, all dates in the array were set on the last date in selection).
Added Japanese and Portuguese translations.
Note that there is a newer version already.
Here's hoping this fills in for my project goal at work, in which case I'll be returning to purchase a commercial license! :)
Firefox 3.0.x issue: when you have disabled dates in a popup calendar, clicking on the disabled date closes the calendar. Doesn't happen in IE 6. Here's my code:
<input id="calendar-inputField" /><button id="calendar-trigger">...</button> <script type="text/javascript">
var DISABLED_DATES = { 20090602: true, 20090605: true, 20090610: true, 20090611: true }; var cal = Calendar.setup({ animation : false, fdow : 0, trigger : "calendar-trigger", inputField : "calendar-inputField", disabled : function(date) { date = Calendar.dateToInt(date); return date in DISABLED_DATES; } }); </script>
I have the same problems I had in 1.5 .. In the next message is the code. The problem I have is described in the 1.5 discussion: http://www.dynarch.com/projects/calendar/download/1.5/#Kcomment-318 . I think it's the same problem "namliw" has: http://www.dynarch.com/projects/calendar/download/1.5/#Kcomment-341
<input id="vencimiento" name='vencimiento'/>
<button type='button' id="calendar-trigger">_ </button> <script> Calendar.setup({ trigger : "calendar-trigger", inputField : "vencimiento", showTime : true, dateFormat : "%Y-%m-%d %k:%M:%S", time : 0000, onSelect : function() { this.hide() }
});
</script>
Is there a way to not show the previous/next month's days in the current month calendar? I know I can hide the days using CSS, however I cannot figure out how to remove the extra line that stll appears for the days in the next month (or the 2 extra lines that appear for months like Feb 2009)
hi i want to use the caleder with time picker like 25-jun-2009. can u send the how to use this type of format. and one click for date that will be display in text box and calender is disappear after i click the calender button the calender is diaply.
In ie6 if the calendar appear over a 'select' field the element is over the calendar
Ola
How do you change a JSCalendar in joomla for this new one?
obrigado thanks
It good for me. but i find a bug for this version. when i use "onSelect:function(){this.hide()}",if the inputField's value isn't empty, it won't be changed. (in chinese: 当我使用“onSelect:function(){this.hide()}”时,如果文本输入框inputField的值不为空,点击日期后日历隐藏掉但并没有改变文本框的值。)
Great tool this. However when I upgraded from 2-1.5 to 2-1.6 the inputField wont change when I select a date, so I reinstalled 2-1.5.
This BUG from version 1.5 isnt fixed: http://www.dynarch.com/projects/calendar/download/1.5/#Kcomment-341
Impossible to change the date when using onSelect event handler -onSelect:function(){this.hide()}-.
i have fixed that for me(Version 1.6), replace the function R() with this: It works!
function R() { this.refresh(); var D = this.inputField, P = this.selection; if (D) { var ar = P.print(this.dateFormat); if (D.value != ar) { (/input|textarea/i.test(D.tagName)) ? D.value = ar: D.innerHTML = ar; this.callHooks("onSelect", this, P) } } }
You should only use D.value if it is an input box or textarea - see the regular expression following the if statement you have inserted. Also note that innerText should be used, not innerHTML. A better replacement would be:
function R() { this.refresh(); var D = this.inputField, P = this.selection; if (D) { var ar = P.print(this.dateFormat); if (/input|textarea/i.test(D.tagName)) { if (D.value != ar) { D.value = ar; this.callHooks("onSelect", this, P); } } else { if (D.innerText != ar) { D.innerText = ar; this.callHooks("onSelect", this, P); } } } }
the following codes is the language package of chinese.
Calendar.LANG("cn", "中文", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "今天",
today: "今天", // appears in bottom bar
wk: "周",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "AM",
PM: "PM",
mn : [ "一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月"],
smn : [ "一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月"],
dn : [ "日",
"一",
"二",
"三",
"四",
"五",
"六",
"日" ],
sdn : [ "日",
"一",
"二",
"三",
"四",
"五",
"六",
"日" ]
});
Thanx, guys!! I usually do not like foreign scripts, but this calendar I use with glad!
Comments are closed
hi it is realy helpfull to me ..................