Note that there is a newer version already.
Note that there is a newer version already.
As far i knw ur earlier version had showTime property which enables the user to configure Time along with the date selected. Is the same present in your latest version .If so could u plz Guide how to use it . Thanks !!
The view is scrolling here and there,Maybe it turn slowly with the same direction.
in my IE8 browser if i clcik on calendar icon the popup will be displayed on top of the page,its not getting in correct position,please give me the solution,its urgent
download for study purpose, and learn how to make good calander
Hello there, this JS library is really beautiful, but i've noticed a strange behaviour. Whenever the calendar popups, it there's a <select> field inside the area of the calendar, the calendar show itself "under" the field. (on a lower layer)
Was it by design ?
Good job! I'll be waiting for the next release with showTime option, it will be useful!
Thanks for this great Calendar
Mehedi PHP Web & Flash Developer of Bangladesh
Great job ! On a disable date, can i put a tooltip (like a reason) ? I've used DATE_INFO and DISABLED_DATES on same dates, but the tooltip didn't appear :). Thanks.
Tks, i've got it. I've removed right part of condition for hover over a date (e.g. !an.getAttribute("disabled") )
I have another question :) When i select into the calendar an interval of days, that contains one or more disabled days, function selection.get().toSource() returns the hole interval. Is there a way that such a selection can be broken in intervals that does not contain disabled days? Or the selection algorithm to "know" not to select a disabled day ? Thank you.
I'll try your code, and i will post the result here. Of course your work deserve payed, but first i will use it on my school project. When i will use it on a comercial site, i'll purchase a licence. Thank you very much
Well, it took me a while (because of yui compressor :D), but i've managed to modify selectRange function. Now, it puts a day in selection collection only if the day it is not disabled. Sorry to reverse your code, but it is not practical nor elegant to deselect a day after it was selected. Maybe you'll add this feature in the next version :). Great job again !
I have found a lot of calenders on the internet, for the website i build for my clients, but i like $(this).calender very much flexible. $("developer").Good Work
Hi, how can i do to change the international date format from (Y-M-D) to (D-M-Y)? Already tried everything, unsuccessfully, i appreciate if you could help
Hi Mihai Bazon, thanks for the quick answer, but I still have the same problem, maybe because the documentation is for 2.0 version and joomla 1.5 only suports the version 1.0. could you tell me how to replace the older?
For study....let me try it out... whther competible with drupal or not
study, doesn't it trigger on a input field, like prevous version? <input id="calendar-input" /> <script> Calendar.setup({ trigger : "calendar-input", inputField : "calendar-input" }); </script>
It works in a normal page, but I first tried it in a div that i load with HTML ( the ajax way). So I try to find a way to trigger the JSCal2 in a div that I load with the innerHTML. Any ideas?
Dear Mihai,
I am working on a project for a company which requires a very felxible date picker. Happily, JSCal2 fulfills the role by 99%, it is an amazing piece of software, really the best date picker out there. I am almost certain that we will buy and use this.
The missing 1% is an object property or method which I could use in onSelect() to get the latest selected date. (Multi selection does not apply in my case.)
LEFT_CAL.addEventListener("onSelect", function(){ var ta = document.getElementById("f_selection"); ta.value = this.selection.countDays() + " days selected:\n\n" + this.selection.print("%Y/%m/%d").join("\n"); });
I found this code in the example, and I can use that for the purpose, but is there any more convenient way to do it, like a vCalendarObject.getLastSelectedDate() or vCalendarObject.lastSelectedDate ? I need a functionality like that to split the date and put the day, month and year into three different containers. )(And also it could be put into the Global (static) utility functions.)
Just for convenience, to save an eventListener...
Any thoughts?
Also, would you consider adding some kind of onBeforeDraw event, so I could call a function which would assemble the dates from the three fields and set the calendar to show that field as the selected one?
Ok, forget it, I can do it an other way, I won't use 3 date fields, just one, formatted.
If you have some weird, multi-layered layout with divs and ul-lis's and what not, you may experience the calendar layout to be worng, some items are left-aligned, like the month and year selector button, the today button at the bottom and the whole month and year selector div. A solution for that:
.DynarchCalendar table { margin: auto; }
table.DynarchCalendar-titleCont { margin: -6px auto auto auto; /* -6px; is the original value */ }
.DynarchCalendar-bottomBar-today { margin: auto; }
Hi from Russia! Thanks for calendar, I'll use it in my projects.
Your Cal interface is very nice. I put it in a form I have, and it functions well in IE7. But when used in Firefox 3.0.11, as soon as I click the button to launch the calendar, it submits the form. Here's what I have. Any ideas? Thanks, Joe...
<input id="field_6" name="field_6" /> <button class="calendarStyle" id="fieldDateTrigger_6"></button> <script type="text/javascript"> var myCal = Calendar.setup({ inputField : "field_6", dateFormat : "%m-%d-%Y", trigger : "fieldDateTrigger_6", min : 18900101, max : 20090101, date : 20000101, onSelect : function() { this.hide() } }); myCal.setLanguage('ru'); </script>
Hi, I'm trying to implement this calendar on a site I'm working on, but in IE the dropdown menu to pick the month or the year doesn't take te opacy attribute, any ideas why is this happening ( works fine in Firefox )
thanks in advance
Forget It, since I'm generating the html code with php I forgot to put the !Doctype header
Hi, I like this solution, but now I have a little problem with disabled dates through Range Selection (without Ctrl or Shift). We can not click on the disabled dates, but if we click before and over the disabled dates, we get successfully the whole selection, with disabled dates... Can anybody say a solution? Thx. CoManch
I like this calendar most, but i wanted date and time picker both, if you can add this facility in this kind of date picker that will be very very useful to us.
Hello, great class. Here is a small bug (I think).
css style for weekend days (.DynarchCalendar-weekend) seems to be unused. Style from .DynarchCalendar-day-othermonth.DynarchCalendar-weekend is used on ALL weekdays instead (this month and others).
You're right, IE6 is leaving, but it still here. At least in my case.
There is a Jquery plugin called bgiframe that can fix IE6 z-order bug. May be there is an object (created div) in Calendar so I could apply bgiframe to it (immediately after calling setup())? (i.e. make something like $("#calendar_div_id").bgiframe() )
Hi, Mihai.
Very nice job, indeed. There is one issue I could not fine in your documentation: in the case of the popup calendar can it get the default selected value from the value of the attached inputField ? And, as a general information, the 'date' or 'selection' configuraton values are not related to dateFormat of the calendar?
Thank you
Comments are closed
for study