JSCal2-1.9

This release fixes a few issues and adds a few minor features. Fixes:

  • various fixes in date/time parsing and initialization: it now no longer depends on DST, and handles better non-ASCII (accented) characters in the month name (note, this still doesn't seem to work fine for Chinese).
  • automatically add type="submit" when the trigger element is a button (otherwise, when it was embedded in some FORM element it caused the form to submit, the visible effect being that the calendar disappeared immediately).
  • fixed language setting in the demo page for popup calendars

What else is new:

  • added fixed and noScroll constructor arguments.
  • switched to UglifyJS for compression. The minified code is now only 32K, going down to 10K if your server can do GZip compression.

Download JSCal2-1.9.zip.


128 comments so far (add yours)

JSCal2-1.9
by David H
2011-03-10 13:41

Seems that the latest download with the pop up does not work on IE 8 .. Even on your website the pop up does not work

Re: JSCal2-1.9
by Mihai Bazon (page author)
2011-03-11 21:48

Thanks for the heads up. It's a regression in 1.9.. I'll push a fix for it tomorrow.

Re: JSCal2-1.9
by Marc van B
2011-08-26 13:03

The calendar popup stll doesn't work on IE8. Did you place the fix somewere? Thanks for your support!

Re: JSCal2-1.9
by Marc van B
2011-09-11 11:14

The calender works.. It was a bug in IE8. I disabled the safemode from IE8, then the calender worked. After this I enabled safemode again, and the calender worked.. Very strange, but I'm happy now

Re: JSCal2-1.9
by JInce
2011-12-15 11:32

Cool stuff. Nice UI. Thanks

Re: JSCal2-1.9
by Jince
2011-12-15 11:36

In IE7 the calender popup get aligned just below the button. In other browsers it was aligned just below the input. I have used input type as button.

Re: JSCal2-1.9
by aa
2011-12-13 02:49

adf

Re: JSCal2-1.9
by asd
2012-01-10 09:31

asd

Re: JSCal2-1.9
by jay
2012-02-10 09:02

perfect calendar component.

JSCal2-1.9
by Ezequiel
2011-03-12 06:19

Hi, thank you for fix some previous bugs, now works better than great! BUT, i'm working with html5 statment and if I setup all about tags that i have to reset (header,article,setcion,etc) some other old tags like table (table,tbody,tfoot,th,thead,tr,tt) won't work whith the new version, for example if i setup those tags with:

margin:0; pading:0; border:0;

the year's menu and today's buttons will align to the left... but, If I remove only the table's tags everything works fine...

JSCal2-1.9
by Gilles
2011-03-12 18:50

Hi Thank you for this great calendar. I am trying to implement. I get this error in firebug : i.__ is undefined.

Any idea what could be missing in my setup?

JSCal2-1.9
by Gilles
2011-03-12 19:05

Sorry about that, I had the language file called before the calendar file. It is working now.

JSCal2-1.9
by Sean
2011-03-15 02:24

I was wondering if you knew how to modify the text area in the online demo to show each multiple date with a comma. for example 04/01/2011,04/02/2012 and so on? I dont want to use a "-->" if I have a date range. Just simply want to list each multiple date separated by a comma. Any ideas? thanks! I love your code!!! Happy Coding!

Re: JSCal2-1.9
by Mihai Bazon (page author)
2011-03-15 10:31

You can use the getDates() method on the selection object to retrieve an array of JavaScript Date objects.

JSCal2-1.9
by philippe
2011-03-15 11:57

hello how can we change the input format ? i want to format the date with the french format (dd/mm/yy) and when I select back on the trigger, I will have an inversion of day and month do you have a solution for that ?

JSCal2-1.9
by Sean
2011-03-15 13:04

Mihai, this is wonderful.

Doyou have an example of the syntax used for the getDates() function to output in a text box?

Thank you!!!

Disable Future Day
by Scott
2011-03-21 05:05

how to disable future day, all days should be disbale from tomorrw's date.. next of current day

JSCal2-1.9
by Noka
2011-03-22 07:43

Fantastic work! I think there has been a few ppl waiting for this release for a while. I'm glad its here and the initialize time bug has been fixed.

JSCal2-1.9
by Cloudy
2011-03-22 10:14

It is a cool calendar, but it seem that the code of javascript conflict with other library.

im using wordpress for my website and many javascript libraries included in the wordpress (default and plugin) and the error is shown that "Calendar is not define". So it could be the conflict with other script. Thanks :)

Re: JSCal2-1.9
by Mihai Bazon (page author)
2011-03-22 10:35

It doesn't interfere with anything; the only global stuff that it creates is the Calendar function, which constructs a Calendar object. My guess is that you aren't loading it right.

Also, if you load a lot of third-party stuff you might encounter problems related to the CSS. Our calendar carefully defines CSS that will not change the appearance of your pages, but the general quality of other libraries out there is not that high; for example if a library defines:

  * { margin: 0; padding: 0 } // or
  td { padding: 0 !important } // or
  table { width: 100% } // etc.

(I've seen that a lot) those declarations will affect the way calendar shows up and there's nothing reasonable I can do about it...

JSCal2-1.9
by Cloudy
2011-03-22 10:49

Alrite, the problem is that when i put the calendar script at the top (head) it will work fine, just encounter a few css, but if i put the calendar at the bottom (footer) the error will occur as mention above (all the javascripts were loaded - i checked it one by one using firebug) ... one more thing, i didn't change anything of ur code, just copy all ur code in order to paste in my plugin....

Re: JSCal2-1.9
by Mihai Bazon (page author)
2011-03-22 10:55

Perhaps pecause you're calling Calendar.setup before the script was loaded. It's normal not to work in this case. <script> tags are executed sequentially as they're encountered. Why not loading it in the <head>?

Re: JSCal2-1.9
by Cloudy
2011-03-22 11:16

maybe like this. oh... yes, all the javascripts i put it at bottom of the website because of many reasons: the bandwidth here is very low ( the avg: 128 -> 256kbps ), so that i have to make the browser load the content first before loading any file such as javascript. The YSlow also recommended all the javascripts should put at the bottom of the website. (see the facebook script, most of the javascripts are at the bottom of the site) :)

Re: JSCal2-1.9
by Mihai Bazon (page author)
2011-03-22 11:25

In this case, delay calling Calendar.setup until all files are loaded. With jQuery for instance you would do it like this:

  $(document).ready(function(){
      Calendar.setup({ ... });
  });
Re: JSCal2-1.9
by Cloudy
2011-03-22 11:29

Thanks for many help ... ^_^

JSCal2-1.9
2011-03-23 14:08

Hi All,

I am using a dynarch calendar where I want to disable dates between March to April, when I select dates using shift key it is showing the disable dates also. Can any one provide me a solution to disable shift key or it should not select the particular date which is disable.

JSCal2-1.9
by Sam
2011-04-02 06:12

Thanks a lot! Great work!

Find month and year when change calendar page
by Ovidiu Isac
2011-04-05 22:14

I was wondering if you knew how find month and year when change calendar page (with navigation buttons or menu) ?

Mac environment
by Tom
2011-04-07 20:51

Just a suggestion. Using ctrl to select multiple, separate days is a windows convention. The "command" is used for the same purpose in mac os. It would be very helpful if the ctrl functions were duplicated for the command key to support cross OS compatibility.

Re: Mac environment
by Shaa
2012-01-23 12:11

Suggest any solution for this issue..

JSCal2-1.9
2011-04-08 16:08

How do we auto close calender pop up after choosing the date?

JSCal2-1.9
by sheng
2011-04-19 10:16

aaa

JSCal2-1.9
2011-04-19 16:07

Hi, first thank you for calendar, it's the best! i'm trying to use it on my site http://www.unforgettablerome.it/poupcalendario.html but i need to enable in the first calendar just the only dates greater than today, and in the second calendar just the dates greater than the date choose in the first calendar. is it possible? if yes i need the full code to implement in my calendar, cause i'm begginer and i'm not able to do it alone. thank you in advance

Today on calendar 1, beyond cal 1 on cal 2
by Robert Ameeti
2011-08-15 16:39

Is what this person needs easily doable? There are a lot of questions that appear to go unanswered. Once a selection is made on 1 calendar, is a 2nd calendar able to easily only allow for selections beyond the 1st calendar's selection?

JSCal2-1.9
by Ronald
2011-04-20 06:12

I notice that if the text input was populated with a invalid numerical value (e.g. 123123), the calendar will fail to popup and raise an uncatch exception. Is there anyway to get around that?

JSCal2-1.9
by lzcthanh
2011-04-24 11:00

thnks!!!!!!!!

JSCal2-1.9
by Mark Richards
2011-04-27 21:01

The following code:

<SCRIPT TYPE="text/javascript">
dDate=Date(); Calendar.setup({ inputField: "startdt", showTime: true, weekNumbers: false, button: "startdt_date_button", ifFormat: "%m/%d/%Y %H:%M", dateFormat: "%m/%d/%Y %H:%M", trigger: "startdt", date: dDate }); </SCRIPT>

yields a nice calendar which pops up when the field is clicked.

Unfortunately if ONLY the time is changed in the calendar control and one exits the calendar (clicks on next field) the time in the target field (startdt) is NOT updated. If the DATE is changed the time will then be updated. Ideally the calendar should respond to a change of time only, as sometimes this is all that is needed to change.

This looks like a bug.

JSCal2-1.9
by Mark Richards
2011-04-27 21:41

Regarding message 28, I tried to set the field on the onTimeChange event within the setup code. This fails with the error:

Error: a.getMonth is not a function Source file: https://207.126.57.181/AEM/javascript/JSCal2-1.9/src/js/jscal2.js Line: 11

Init code below.

I figured maybe the Calendar object was not fully initialized so tried this after the Init..

Calendar.onTimeChange:function(cal) {$('#startdt').val(Calendar.printDate(cal.getTime(),'%m/%d %H:%M'));};

This fails with "invalid label".. so appears I can't set a property other than through the init function.

The old version of this calendar worked fine and I did not have these issues.

<SCRIPT TYPE="text/javascript"> dDate=Date(); Calendar.setup({ inputField: "startdt",
showTime: true, minuteStep: 1, weekNumbers: false, button: "startdt_date_button", dateFormat: "%m/%d/%Y %H:%M", trigger: "startdt", date: dDate, onTimeChange : function(cal) {$('#startdt').val(Calendar.printDate(cal.getTime(),'%m/%d %H:%M'));} }); </SCRIPT>

JSCal2-1.9
by Damian
2011-05-03 21:01

Hello

I'm using Internet Explorer 6 and I've seen that type Select items are positioned above calendar. Greetings

JSCal2-1.9
by DN
2011-05-04 13:48

You can use sprites? http://spritegen.website-performance.org/

JSCal2-1.9
by Panda Hsu
2011-05-08 18:14

Hi, first thank you for calendar

JSCal2-1.9
by Fazeel
2011-05-10 14:55

Hi..! Thanks for your wonderful calender.

I have a issue . In CSS you have build it according to the table but if I remove all the table tag the Calender POP ABOVE the text box. How can I Pop up the calender below the text box without using the Table tag.

Please reply ASAP.

Thanks in advance.

Re: JSCal2-1.9
by Fazeel
2011-05-10 15:13

This happens only in Mozilla 4 browser. how can I fix this ..Please help.

JSCal2-1.9
by Fazeel
2011-05-10 15:12

This happens only in Mozilla 4 browser. how can I fix this ..Please help.

JSCal2-1.9
by Dawson
2011-05-10 17:24

I'm Looking for a calender that when a date is clicked, it displays event information in a separate box on the same page for that date. Can anyone direct me?

JSCal2-1.9
by Corey
2011-05-11 16:45

hello, I was wondering if there was a way to have the pop-up box hide when the date is selected. Right now you have to click off the calendar to remove the popup.

Thanks!

Re: JSCal2-1.9
by Noka
2011-05-24 09:15

Hey Corey, When you create the calendar use onSelect: function(cal) { cal.hide(); } as one of the parameters. ie. <!-- var cal1 = Calendar.setup({ onSelect: function(cal) { cal.hide(); } }); -->

JSCal2-1.9
by Noka
2011-05-17 09:20

Hi guys I think this calendar is great.. But.. Is there any way of setting the popup(anchor, align) on a manageFields(trigger, inputField, dateFormat).

Im trying to bind 2 elements to the one calendar and have the calendar display in the same position for both (one textbox and one button). Thanks for your help. Noka.

Re: JSCal2-1.9
by Noka
2011-05-20 11:48

I have change the e.popup(b) to e.popup(c) witch makes the anchor the inputField in manageFields(trigger, inputField, dateFormat) which has fixed my issue with minimum changes.

JSCal2-1.9
by Noka
2011-05-17 09:22

Is there a toggle for each calendar so i can show / hide using a button.

JSCal2-1.9
by Ringo
2011-05-24 16:29

Can i use this jscal without a license?

JSCal2-1.9
by z0582
2011-05-31 11:03

Hello,why always show the following error in ie9 ? 对象不支持此属性或方法(the object can't support this attribute or method) b&&b.getAttribute&&!b.getAttribute("dyc-type")

JSCal2-1.9
by panyi
2011-06-10 11:19

感觉很强大哦

JSCal2-1.9
by ebi
2011-06-12 15:14

Hi How install it in Joomla Site? Pleas answer complete path.

tanks.

JSCal2-1.9
by vale
2011-06-12 23:37

multumesc

JSCal2-1.9 - refresh/redraw problem
by tomek
2011-06-13 16:51

Hi everybody.I've got a problem with JScalendar under IE (currently 8.0). I try to refresh it after setting up new DISABLED_DATES (without refreshing site). I try to eun myCalendar.refresh(false); OR myCalendar.redraw(); but nothing works under IE(in Cgrome, firefox works fine). MAybe someone had similar problem and solved it some way?

JSCal2-1.9
by neb
2011-06-14 22:06

how do you run this on your xampp server http://localhost/xampp/proj/calendar.php nothings coming when i put that up help plssssssssss

JSCal2-1.9
2011-06-15 09:29

Hello, thank you for the JSCal2. For something like this I´m looking. I will test ist soon. Greetings from Germany. Piet

JSCal2-1.9
by shadow
2011-06-15 11:42

why the inputField can not update when i change the time on calendar?

Re: JSCal2-1.9
by Danny Mann
2011-12-06 21:36

I have been needing this also for a long time. I tried my hand at a custom onTimeChange function which was successful when one date is selected. However, when multiple dates are selected and then the time is changed it does not update the input field. I really need this or any guidance in hacking it myself.

JSCal2-1.9
by cccc
2011-06-20 15:15

Pop up calendar by tabbing into input element on a form
by Gilles
2011-06-26 03:09

I would like to find out how to trigger the calendar besides the obvious 'click' of the input ['text'] element.

I would like it that users who prefer to tab through the elements on a form that when they tab into the date input['text'] element that the calendar pop up like when the user clicks.

No Sundays
by Oli
2011-06-27 12:48

Hi!

Thanks for this great Script. I need do be disable all Sundays in the Calendar. I have read the documentation, but i cant found it.

Can you help me please? Oli

JSCal2-1.9
by tate
2011-06-28 07:24

fuck,good!

JSCal2-1.9
by Steve
2011-06-28 09:39

Instead of disabling date individually, can you disabled based on a date range?

JSCal2-1.9
by telo
2011-06-29 10:42

Chinese system is garbled

JSCal2-1.9
2011-07-07 14:19

thanks!

default date in input field of popup JSCal2-1.9
by Sergio
2011-07-11 17:55

i've some problem in showing a default date in the input field of a popup calendar, before than user select the control or choose a date. i have to use this for example to edit records in a database where a date field is already recorded and user can change it. thanks in advance for any reply sergio

JSCal2-1.9
2011-07-13 00:29

Just have a question concerning getting the month/year of the calendar to display centered while using my current css file. I've looked around but have been unable to correct the issue. I'm currently not a licensed user of this product but am evaluating it. In addition it seems that the bottom bar text "Today" seems to be left justified. Any help would be appreciated. Thanks!!

Scott

JSCal2-1.9
2011-07-13 00:46

Update to my previous message: This issue I was talking about doesn't seem to occur in IE 8 but Firefox, Chrome both have the issue. Thanks again for any information that you care to share.

Scott

JSCal2-1.9
by Charvie
2011-07-16 05:53

i would like to know how to change the default date using a variable. you see, every time i click on the calendar, the date selected is being passed to the URL. now, after clicking, the page reloads(i need it to reload) so the URL now holds the date i selected. now i want to set the default date base on the date that was clicked. I already got the date from the URL i just need the method on how to change the default date.

JSCal2-1.9
2011-07-18 20:16

Your calendar is perfect!! it works great to me, thank you very much for your product.

Sincerely CHris (asp delevoper)

JSCal2-1.9
by mzozo
2011-07-21 12:43

realy nice stuff! you genuis!

JSCal2-1.9
by Nasim
2011-07-26 12:31

Your calendar is so nice!! it works great to me, thank you very much for your product.

Thank You.

Web Application Developer

JSCal2-1.9
2011-07-26 20:41

Gracias me parece un excelente calendario lo vengo utilizando desde la versis 1.0

JSCal2-1.9
by tresta
2011-07-29 12:08

i have probleme with disabled dates, when i incrementing with month button the form select date.

JSCal2-1.9
2011-08-01 13:57

hello i'm a student of iü (istanbul üniversity). I'm trying to be an expert in javascript and examine samples. Would you please send an e-mail format jscal2.js's developer.

JSCal2-1.9
by Tom
2011-08-02 11:34

Really great tool! I run it with jquery and there is a problem. After page loaded I need to click twice to show the popup and after that it shows after one click. It is weird.

Re: JSCal2-1.9
by Shaa
2012-01-23 12:12

Please suggest any solution for this issue ASAP..

JSCal2-1.9
by laptop
2011-08-02 18:30

hello i have problem with disabled dates, when i incrementing with month button the form select date.

JSCal2-1.9
by 王小军
2011-08-09 12:13

JSCal2-1.9 - NaN Errors in Demos
by Brian
2011-08-26 00:43

I get a NaN error in your demo. Follow these steps:

1) Using IE 8 2) Load any of your demo pages 3) Give the calendar focus 4) Press the number 1 key on your keyboard 5) Click on "Jan" 6) Now click on the "Next Month" button. 7) You should see the calendar fill with NaN's!

JSCal2-1.9
by Jacky
2011-09-02 18:51

I'm using IE 6, but the calendar was covered by Select box below the Date Field, how to resolve this issue?

JSCal2-1.9
by Robert
2011-09-10 07:25

The showAt function does not appear to actually do anything. It is possible that I am using it wrong, but I have tried it in several different ways and it really doesn't seem to do anything.

JSCal2-1.9
by Riddle
2011-09-21 08:27

Great!

JSCal2-1.9
by AriekDev
2011-10-04 13:45

IF DEFAULT CSS PARAMETERS Margin on a page is 0 * { margin: 0; } and <Year> title is left-aligned, BUT when you turn-off margin:0 and all works well, you can use my method to repair calendar. First, add this to jscal2.css:

.DynarchCalendar-menu table table{ margin: 10px auto auto; } .DynarchCalendar-menu-mtable { margin: auto; } Update existing styles: to table.DynarchCalendar-titleCont { add: margin-left: 43px; + to .DynarchCalendar table { add: margin: auto; .. In jscal2.js find and replace "margin-top: 1.5em" with "margin-top: 2.5em" (1 occurrence). Have a Fun! This is a imagine Calendar!!

.. It is just example, I just pointed to activation bars, you should review this values

JSCal2-1.9
by tosin
2011-10-09 07:51

Hello brother. i have seen your calendar and it is cool. but i will love it if you have a calendar that you can click a number from the calendar and it displays daily text the administrator uploads on the same page at the write or the left panel. And can still navigate back aand forward as you have done to view previous text. Will be very gratefull if you can do this for me.

JSCal2-1.9 Chrome Issue in Simple modal box
by phpexpert
2011-10-10 21:28

Hello, I have integrated the jscalendar,on a form which opens in simple modal box, it works fine for FF And IE

but issue arise in chrome clicking on trigger image it blinks but does not opens.

let me know if any one has faced this issue and can help

Regards.

JSCal2-1.9
by leejs
2011-10-13 13:20

asfescv

JSCal2-1.9
by henry
2011-10-14 13:43

My calender is 3yrs back . i dont know the version. It gives problem in IE9. I am unable to change the time in IE9.Controls is disabled tor time input. Can ny i suggest me the workaround .as i cant use the latest calender as its been used in whole application.

JSCal2-1.9
by ronghongquan
2011-10-20 06:09

使用

JSCal2-1.9
by alan
2011-10-23 04:47

thx~!

JSCal2-1.9
by Javier Salazar
2011-10-23 06:24

I am trying to dynamically create a date field with calendar button, but it doesn't work. Could you give me an idea?

JSCal2-1.9
by Beto
2011-10-28 01:14

It's great really nice!

onAbort event?
by benitto
2011-11-25 08:47

Hi,

I am interesting in having an event for the situation someone opens the calendar but doesn't select anything, clicks somewhere else on the page and the calendar closes. Is this already possible?

Re: onAbort event?
by Mihai Bazon (page author)
2011-11-25 09:38

Unfortunately not possible. That would be a good addition. For now I think you can simulate such event it with “onBlur” (should be called when the calendar lost focus) but you will have to check yourself that no date was selected.

Re: onAbort event?
by benitto
2011-11-25 14:35

I tried with onBlur, it's not what I wished: it gets activated also at page load as well.

Whole week select?
by benitto
2011-11-25 08:49

Hi,

is it possible to disable the day picking and only allow whole week picking? Like when I click on Wed, the whole week Mo-Su would be selected?

Thanks!

Re: Whole week select?
by Mihai Bazon (page author)
2011-11-25 09:40

Nope. More people asked for this, I will try to do in a future version. Just wondering, how would you format such a selection? (I mean, when there's a single date you can display it like 2011-11-25, but how would you display a week?)

Re: Whole week select?
by benitto
2011-11-25 14:33

Hi,

what I do is print %Y%W -> YYYYWW (e.g. 201123, 201152). I already am able to do it with the current version, but in the GUI it still looks like single day selection and it can get confusing.

Re: Whole week select?
by benitto
2011-11-25 14:39

Another problem would be that if I format the selection as YYYYWW, when re-calling the calender I have to either clear the box or randomly replace the YYYYWW string with a day of that week, otherwise the calendar won't start. The calendar is not able to interpret the "by himself formatted string" as year and week.

JSCal2-1.9
by Intergus
2011-11-27 15:15

Hi. First, sorry by my english, i´m spanish

Well, i need this When charge map with code php i put de date with selection, but the function into onSelect is trigger and i dont want this. I want trigger the onSelecto ONLy when the user make clic in a day of the calendar, no when i update the selection with calendar.setup selection:

Thanks

JSCal2-1.9
by Cedric
2011-12-02 15:54

hello, I am using JSCal2-1.9 but it seems month name is still note displayed well for the french language. I had to use replace é and û in the lang file by the html value : é and û

Not sure if its the correct way of fixing this, but it works... Thanks for this nice calendar!

Time Change
by Danny Mann
2011-12-06 21:43

When multiple dates are selected and then the time is changed, it does not update the time in the input box. Also if a calendar is presented and only the time is changed the input field is not updated either. Please give any help or infight to fix this.

JSCal2-1.9
by krlos
2011-12-08 22:26

Hello there, your work is great, congratulations. but I need your help because when I use a date with a hour, it is working however the time is going to go 5 to 5 minutes. is it a issue? how to fix it?

regards krlos

JSCal2-1.9
by Harshad
2011-12-18 08:26

This calender control is cool, but is there anyway i can use it in Master page, where i need to show the selected date in textbox.

JSCal2-1.9
by Linh
2011-12-19 20:01

it is very good, but i can't use Id of input in code Behind(Asp.Net)

JSCal2-1.9
by sfds
2011-12-20 13:20

sfsdf

JSCal2-1.9
by BRISSOT
2011-12-23 11:42

Many Thanks for this wonderful calendar. as a beginner I have been helped to put in place the calendar on my site and now I am alone to modify it. I would like to replace the inline calendar for readers wishing to add an event, by a popup for start date and end date. I did not succeed to get the date from the popup calendar through this code : <script> Calendar.setup({ trigger : "trigdebut", inputField : "debut", dateFormat : "%d/%m/%Y", onSelect : function() { this.hide() var date = Calendar.setup.selection.get() } }); </script>

How can I get back the var date into my php code ? Thanks by advance for help

JSCal2-1.9
by BRISSOT
2011-12-23 12:23

Ooups auto correction ! Using version 1.9 corrects this bug ! As indicated in the content of releases for 1,9 ... I was still using 1.8 !!! Sorry

JSCal2-1.9
by 志宝
2011-12-28 11:04

非常棒~!

JSCal2-1.9
by HamedF
2012-01-01 12:06

Hi thanks for fantastic work I have a problem & I hope anyone help me.

I want to have a function such as displayDatePicker(fieldname,buttonname) or displayDatePicker(fieldname) (2 args is better) that send fieldId (and buttionId )to it and it works as same as below code

Calendar.setup( { inputField: GetClientId("TextBox2"), ifFormat: "%Y/%m/%d", button: GetClientId("ImageButton2"), dateType: "jalali" } );

I cant use Calendar.setup into a function with 2 args so i want have

displayDatePicker(fieldname,buttonname) { Calendar.setup( { inputField: fieldname, ifFormat: "%Y/%m/%d", button: buttonname } ); } but above code dont work Can anyone help me that convert Calendar.setup to a function as described I hope :(

JSCal2-1.9
by MD.Samiuddin
2012-01-03 14:11

How to disable the past dates from the calendar. The current date and future dates should be enable

JSCal2-1.9
by Mircea
2012-01-05 19:16

@MD.Samiuddin interested in that as well

Re: JSCal2-1.9
by MD.Samiuddin
2012-01-10 12:54

Yes I am interested in that

JSCal2-1.9
2012-01-12 09:38

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.

JSCal2-1.9
by Gabi
2012-01-12 16:31

How can I disable the second vire of the calendar, after the title is clicked? Thanks!

Re: JSCal2-1.9
by Gabi
2012-01-12 17:25

Sorry, I meant: How can I disable the second view of the calendar, after the title is clicked? Thanks!

JSCal2-1.9
by Smilyan
2012-01-13 13:15

Hi, I want to very kindly ask if you can provide examples of how to integrate Calendar object references in the code. References such as: "popup(anchor, align)", "hide()", "showAt(x, y, animated)", etc.

JSCal2-1.9
by Renjith
2012-01-21 06:17

Hi, how can I disable the previous dates?

JSCal2-1.9
2012-02-01 06:18

Is it possible to integrate this extremely beautiful and functional calendar in aspx? Thanks

JSCal2-1.9
2012-02-14 04:17

how can i hide button today?

JSCal2-1.9
2012-02-14 04:21

if i set min attr to tomorrow,i can choose today when i click button today. is it a bug?

JSCal2-1.9
by rod
2012-02-14 13:05

thx i need it

JSCal2-1.9 :: alignment and data input text box
by Jennifer
2012-02-14 21:17

Hello, I've been searching high and low for exactly what you've created here. Thanks a ton! I'm a designer trying to vamp up my coding abilities and am having a few problems with (currently) two aspects of the multi-calendar:

1) I've removed the timestamp but both the top month/year and bottom "today" are aligned left. Is there a positioning needed to center-align?

2) I want the selected (random) dates to appear in a text box (same as you demo at http://dynarch.com/static/JSCal2/index.html) but I cannot seem to connect the two.

All advice, hints, hand-holding pity welcome :) Thanks!

JSCal2-1.9 :: alignment and data input text box
by Jennifer
2012-02-14 22:50

UPDATE: I have found and manipulated the CSS attributes for the alignment problem (hooray!) ... so now am only seeking advice on the selected dates being shown in a text box. Thanks!

JSCal2-1.9
by 陆巡2012
2012-02-17 08:17

陆巡2012

JSCal2-1.9, Wordpress and Simple Facebook Connect
by Mitch
2012-02-18 12:23

Hello I have a website powered by Wordpress. JSCal2 use, but if you activate the plugin "Simple Facebook Connect" so JSCal2 disappears. Can you please advise where the problem might be?

Thank you very much in advance Mitch

Add your comment

You can use the MultiMarkdown syntax, with some decent restrictions (no plain HTML, no headings). Your email address will not be published.

*
*