JSCal2-1.6

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.

Download JSCal2-1.6.zip.


23 comments so far (add yours)

JSCal2-1.6
by Parvez Vhora
2009-06-23 14:32

hi it is realy helpfull to me ..................

JSCal2-1.6
2009-06-23 15:03

looking to demo this item...

JSCal2-1.6
by Pierre
2009-06-23 20:39

Merci...

JSCal2-1.6
by TG
2009-06-24 04:20

Here's hoping this fills in for my project goal at work, in which case I'll be returning to purchase a commercial license! :)

JSCal2-1.6
by DJM
2009-06-24 05:48

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>

JSCal2-1.6
by Nicolas
2009-06-24 06:00

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

JSCal2-1.6
by Nicolas
2009-06-24 06:01
                  &lt;input id="vencimiento" name='vencimiento'/&gt;

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

JSCal2-1.6
by DJM
2009-06-24 06:34

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)

JSCal2-1.6
by ramakrishna
2009-06-24 10:47

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.

JSCal2-1.6
2009-06-24 16:41

In ie6 if the calendar appear over a 'select' field the element is over the calendar

JSCal2-1.6
by gongyiqun
2009-06-29 04:01

need JSCal2-1.6

JSCal2-1.6
by megaroc
2009-07-03 03:15

Ola

How do you change a JSCalendar in joomla for this new one?

obrigado thanks

JSCal2-1.6
by Jory
2009-07-03 10:32

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的值不为空,点击日期后日历隐藏掉但并没有改变文本框的值。)

JSCal2-1.6
by pepito
2009-07-06 11:44

nice

JSCal2-1.6
2009-07-07 17:13

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.

JSCal2-1.6 / 1.5 BUG
2009-07-08 05:51

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()}-.

Re: JSCal2-1.6 / 1.5 BUG
by Mike
2009-07-08 12:32

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

Re: JSCal2-1.6 / 1.5 BUG
2009-07-08 23:26

Tks!!

Re: JSCal2-1.6 / 1.5 BUG
by Dave
2009-07-09 23:28

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

JSCal2-1.6
by chinese
2009-07-08 12:56

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 : [ "日",
             "一",
             "二",
             "三",
             "四",
             "五",
             "六",
             "日" ]

});

JSCal2-1.6
by Chinmaya Champatiray
2009-07-13 13:47

JSCal is mind blowing....

really it helped me a lot

JSCal2-1.6
by nord_ua
2009-07-13 23:38

Thanx, guys!! I usually do not like foreign scripts, but this calendar I use with glad!

JSCal2-1.6
by kmut
2009-07-15 21:06

very good^^

Comments are closed