Calendar Discussion

This is a page where you can post comments, ask questions etc. Please try to use a descriptive subject. If you're replying to some message, please remember to click the “reply” link to the left of that message, before sending your comment—this way we maintain threads and also can notify the original sender, if he chosen so. The comment form will reflect the fact that it's used for reply.

PS for spammers: I'll mercilessly discard any SPAM, so don't even try. By spam I also mean messages like "gosh, your calendar is great, http://ovulation.com". OK?


1009 comments so far (add yours)

Calendar Discussion
by Darryl Ong
2009-05-18 10:06

Hi,

I saw your JS Calendar and it is quite close to what I have been seeking. However, in order to select a date range, I would have to press and hold the Shift key and click on the end date.

Do you currently have any plans to allow users to select the date range without having to press and hold the Shift key?

Something like this: http://www.harbour-plaza.com/en/reservations.aspx

The calendar was created in Flash but at least it gives you a clearer picture of what I mean.

Looking forward to your reply.

Regards, Darryl

P.S: Hope this does not end up in your Junk folder or something. =)

Multiple selection without holding SHIFT
by Mihai Bazon (page author)
2009-05-18 10:55

Not yet, but it's pretty easy to do. I'll add it and will let you know when it's done (hopefully later today).

Multiple selection without holding SHIFT
by Mihai Bazon (page author)
2009-05-18 12:01

I implemented something for this. The changes were minor so I didn't release a new version, I just updated 1.0.

See a demo here. I also updated the ZIP so you can download and play with it yourself.

Cheers, -M.

Re: Multiple selection without holding SHIFT
by Darryl Ong
2009-05-19 05:14

Thanks for the quick reply and equally quick modification of the code!

May I know how much it would cost to release the full source code to us?

Also, would it be possible to get your contact number so that if I may contact you for help in the future?

Regards, Darryl

Re: Multiple selection without holding SHIFT
by Mihai Bazon (page author)
2009-05-19 11:02

Here's the licensing page. To contact me you can use the contact form.

Re: Multiple selection without holding SHIFT
2009-07-28 03:04

Just today I started a small project with the calendar object. Quiet nice and just what I need. Indeed the "piece of code" that you wrote for Darryl is 99% what I needed too. I only want to set the "min" attribute to the current date after selecting the "end date". I tried this in the getSelectionHandler function ...

.... document.getElementById("info").innerHTML = .... min_date = Calendar.dateToInt(new Date()); cal.args.min = min_date; cal.refresh(); ....

but Firefox throws a error:

Erro: au.getFullYear is not a function Arquivo-fonte: http://192.168.0.10:8080/scripts/jscal2/js/jscal2.js Linha: 11

Any pointers???

Best Regards

Juergen

Re: Multiple selection without holding SHIFT
2009-07-28 03:05

Sorry the code got scrambled a bit. Hope you can read it....

Re: Multiple selection without holding SHIFT
2009-07-30 00:22

Ok, Ok, Ok .... I can here you say "RTFM! You have to pass the js-date-object and not the integer!" .... Actually I read "reply 151" and not the manual.....

... heading over to the payment page ....

How can i show only FIVE rows
by Rajesh
2009-07-24 13:59

Hi

How can i show only FIVE rows on Calendar tell me ASAP.

Re: Calendar Discussion
by Faizan
2010-02-17 19:53

I want to know how to disable calendar dates from 1 to todays date .

About the iphone browser
by naitsir
2009-05-20 22:10

is this calendar is compatible with the iphone's safari browser?? i need a version compatible with this browser :S

thanks you for answers.

Re: About the iphone browser
by Mihai Bazon (page author)
2009-05-20 22:22

Yes — as far as my tests went, it works on Safari/iPhone.

Re: About the iphone browser
by naitsir
2009-05-20 22:40

thanks!!! thats great!!! :D

Re: About the iphone browser
by naitsir
2009-05-28 16:51

sorry :( but the calendar does nor work in the iphone :'( I implement it on my web, this works fine in the pc browser, but not works in the iphone, the number of date are out of the boxes. how to solve this?? maybe the previos version is compatible??

Re: About the iphone browser
by Mihai Bazon (page author)
2009-05-28 16:59

Well, I'm sorry, I don't own an iPhone. I tested it once on a friend's iPhone and it worked well (though animation was rather slow), but something might have broke during later development. I'll try to look into it when I get my hands on an iPhone but can't promise anything...

Re: About the iphone browser
by naitsir
2009-05-28 17:06

could you tell me the version that runs on the iphone? and where can i download this version?? i really need the calendar to implement for the iphone :S

calendar accented characters
by Pavel Sapozhnikov
2009-05-20 23:05

Hi Mihai

I have a question about your calendar and the way it displays accented characters. It seems that if I choose French language so calendar-fr.js, Firefox and IE do not display some characters correctly. These characters are accented e and accented u. I was wondering if you are aware of the problem and if you know of any solution to this? It seems that these same characters will display just fine on a page but not within the calendar div.

If you have any knowledge of this or any work around, please let me know.

Thanks Pavel

Re: calendar accented characters
by Mihai Bazon (page author)
2009-05-20 23:32

I can only guess that your server has not configured a default charset for JavaScript files. The I18N files are encoded in UTF8, but the browser doesn't know this unless you have the following line in your Apache config:

  AddDefaultCharset UTF-8

The above works for Apache. If you're using a different Web server, you should consult its documentation about choosing the default encoding. Either way, I'm pretty sure that this will solve the problem (as you can see in our demo page, it works just fine here).

Re: calendar accented characters
by Mihai Bazon (page author)
2009-05-20 23:34

Bummer — as I checked this, it seems that I didn't have this setting in the Apache config myself. I just added it, it works fine here now. ;-)

Re: calendar accented characters
by Rcageot
2011-07-29 16:13

Rather than making some change on your web server, make some change in the language file and replace all accent and exotic french characters by their html equivalents eacute, egrave etc.. my french fr.js Calendar.LANG("fr", "Français", {

      fdow: 1,                // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.

      goToday : "Aujourd’hui",

      today: "Aujourd’hui",         // appears in bottom bar

      wk: "sm.",

      weekend: "0,6",         // 0 = Sunday, 1 = Monday, etc.

      AM: "am",

      PM: "pm",

      mn : [ "Janvier",
             "Février",
             "Mars",
             "Avril",
             "Mai",
             "Juin",
             "Juillet",
             "Août",
             "Septembre",
             "Octobre",
             "Novembre",
             "Décembre" ],

      smn : [ "Jan",
              "Fév",
              "Mar",
              "Avr",
              "Mai",
              "Juin",
              "Juil",
              "Aou",
              "Sep",
              "Oct",
              "Nov",
              "Déc" ],

      dn : [ "Dimanche",
             "Lundi",
             "Mardi",
             "Mercredi",
             "Jeudi",
             "Vendredi",
             "Samedi",
             "Dimanche" ],

      sdn : [ "Di",
              "Lu",
              "Ma",
              "Me",
              "Je",
              "Ve",
              "Sa",
              "Di" ]

});

Calendar with Mac
by Jon
2009-05-21 06:16

I am using the calendar in a popup form. With Safari and Firefox on a Mac, the calendar just appears, then disappears quickly. The calendar works fine on IE / Firefox on a Windows PC.

Here is what I am using.

Do you see anything I may have missed...?

Also, can you use the compact calendar when used as a popup?

<input name="todate" id="calendar-toField" <cfoutput>value="#DateFormat(NOW(), "yyyy-mm-dd")#"</cfoutput> size="10" /> <button id="calendar-totrigger">...</button> <script> Calendar.setup({ trigger : "calendar-totrigger", inputField : "calendar-toField", onSelect : function() { this.hide() } }); </script>

Re: Calendar with Mac
by Mihai Bazon (page author)
2009-05-21 09:12

The popup calendars in the demo page work well with both FF (3.0.10) and Safari (4 beta) on a Mac. Not sure what's broken for you...

To use the compact calendar just include the “reduce-spacing.css” stylesheet after the other calendar CSS files.

Re: Calendar with Mac
by Jon
2009-05-21 17:04

I found the problem. It appears that the Mac defaults to assuming that the button is a submit type. So when pressed, it was submitting the form. Since my form post to itself it was just refreshing the page very quickly.

<button id="calendar-totrigger" type="button">...</button>

Thanks.

Calendar Discussion
by Darren DePlonty
2009-05-21 09:19

Running Safari 3.2.1 - on my page the calendar will not disappear when I click outside of it (although it does in IE7). I have the proper DOCTYPE defined.

Calendar Discussion
by Abdurashid
2009-05-21 13:55

Hi I need calendar PLS!

Calendar Discussion
2009-05-21 13:56

I need best calendar Pls send me?

Calendar Discussion
by Simon
2009-05-22 04:21

Just curious about what seems to be changed behaviour when entering values into the input field for the popup version of the calendar.

If a valid date is entered into the input field (eg. 1/1/1999) and then the button/trigger is clicked, the old version of the calendar will navigate to and select the value from the text field. The new version doesn't appear to do this, and basically ignores the value of the input field.

Have I missed a parameter or method to re-enable the old behaviour, or is this no longer intended behaviour?

Calendar Discussion - by Simon
by Pablo
2009-05-23 22:35

same to me. like simon, the calendar ignores the value of the input field, if the imput field have a "non calendar character" Eg: 458784 Ie6 return a Stack overflow at line 1798.

Re: Calendar Discussion - by Simon
2009-06-03 17:30

I found the same error (stack overflow in 1798) with IE7 and firefox on the same computer (and only it). All XP Pro computer are OK, only the Vista Family have a problem. I found a solution on the web(another person had the same problem...). Comment the lines from 1793 to 1802.

'stack overflow'
by Carlos Rodríguez
2010-02-26 22:49

Hi! Nice calendar. I have a problem: I get 'stack overflow' error when I set, reset or clear a selection object. How can I solve it?

Re: 'stack overflow'
by Carlos Rodríguez
2010-02-27 12:13

Ok, the problem was that I wanted to do it from de html head. The listener was calling a external function and thats not right.

Calendar Discussion
2009-05-25 22:05

Cant seem to change the displayed date format from the American style (mm/dd/yy) to Australian style (dd/mm/yy). Where do I go to change this? Thanks

Re: Calendar Discussion
by Tobi
2010-09-08 09:55

dateFormat : "%d.%m.%Y",

is the script - simple change the %m and the %d

Calendar Discussion
by Nicolas
2009-05-26 20:34

How can i use an image as trigger?

Calendar Discussion - New language Español
by Nicolas
2009-05-27 15:25

Hi, I created a new language: ES Español (Argentina) You can download it from http://rapidshare.com/files/237772863/es.js.html

Hope it helps

Re: Calendar Discussion - New language Español
by Mihai Bazon (page author)
2009-05-28 17:00

Thanks, I got it. It will be present in future releases.

Re: Calendar Discussion - New language Español
by antonio
2010-11-18 13:41

how can I add a new language? could you please explain it ste by step

Many thanks!

Calendar Discussion
by Javier Ayala
2009-05-29 08:27

Hi,

How can I place 2 date fields in the same form?

Calendar Discussion
by yasodha
2009-05-29 13:57

how to block the particular date

Calendar Discussion
by Sejal
2009-05-30 14:30

i want to take time also .....

Calendar valid overall form
by Cédric
2009-06-01 23:30

Hi All,

Sorry, in advance, for my english... I'm french.

I develop a website with SPIP and it autogenerate forms and I use your Calendar in one of this forms. But we I click on a calendar button, it valid the overall form. How could I manage it ?

Cédric

Re: Calendar valid overall form
by Dallo
2009-06-04 16:21

try to use the input tag instead button tag

<input id="calendar-trigger" type="button" value="Open Calendar" />

Calendar Discussion
by rolando
2009-06-01 23:49

When I show the calendar over a YUI panel this appear behind(back). how cant change(alter) the z-index property of calendar.

Re: Calendar Discussion
by ahosie
2009-11-02 01:30

div.calendar { z-index: 2147483647; }

Calendar Discussion
by Rolando
2009-06-01 23:49

When I show the calendar over a YUI panel this appear behind(back). how cant change(alter) the z-index property of calendar.

Calendar Discussion
by Link Cheung
2009-06-03 14:05

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <link type="text/css" rel="stylesheet" href="src/css/jscal2.css" /> <link type="text/css" rel="stylesheet" href="src/css/border-radius.css" /> <link type="text/css" rel="stylesheet" href="src/css/matrix/matrix.css" /> <script src="src/js/jscal2.js"></script> <script src="src/js/lang/en.js"></script> </head> <body> <form method="post"> <label for="f_rangeStart">Disable dates before:</label> <input readonly="readonly" id="f_rangeStart" /> <button id="f_rangeStart_trigger">...</button> <button id="f_clearRangeStart" onclick="clearRangeStart()">clear</button> <script type="text/javascript"> new Calendar({ inputField: "f_rangeStart", dateFormat: "%B %d, %Y", trigger: "f_rangeStart_trigger", bottomBar: true, onSelect: function() { Calendar.intToDate(this.selection.get()); this.hide(); } }); function clearRangeStart() { document.getElementById("f_rangeStart").value = ""; }; </script> <br /> <label for="f_rangeEnd">Disable dates after:</label> <input readonly="readonly" id="f_rangeEnd" /> <button id="f_rangeEnd_trigger">...</button> <button id="f_clearRangeEnd" onclick="clearRangeEnd()">clear</button> <script type="text/javascript"> new Calendar({ inputField: "f_rangeEnd", dateFormat: "%B %d, %Y", trigger: "f_rangeEnd_trigger", bottomBar: true, onSelect: function() { Calendar.intToDate(this.selection.get()); this.hide(); } }); function clearRangeEnd() { document.getElementById("f_rangeEnd").value = ""; }; </script> </form> </body> </html>

Calendar Discussion
by Link Cheung
2009-06-03 14:13

Please save the above code as name.html and then run, I just added a form tag, but it can not in firefox, chrome running

Calendar Discussion
by Link Cheung
2009-06-03 14:16

If someone know the answer, please email to me, Thank you doncuy@126.com

Calendar Discussion - Furom problem with IE7
2009-06-03 17:32

I cannot send a message with IE7!?!? I send it with Firefox

Calendar Discussion
by Alessandro Ambrosano
2009-06-03 18:40

I just translated in italian your calendar. You can download it.js at this url: http://www.2shared.com/file/6085218/5bd2dcf3/it_online.html

Calendar Discussion
by Ken
2009-06-03 23:03

I'm using the original calendar. I have a travel website with a checkin and checkout popup calendars. I have 2 problems.

#1) The first (checkin) calendar always displays the current date by default but with firefox the second (checkout) calendar always defaults to 2 January 2009 when I popup the calendar first time. The second time I popup that calendar it to defaults to the current date. With IE, no problem, both calendars default to the current date.

#2) I would like to preset the date when I call Calendar.setup (e.g., to set the date 7 days from the current date). I tried adding a 'date' property like this

Calendar.setup( { inputField : "check_out", ifFormat : "%m %d, %Y", button : "trigger2", weekNumbers : false, range : [2009, 2010], date : new Date(2009, 06, 20), onSelect : onSelect2 });

but this did not work. The popup calendar always default to the current date.

Any ideas?

Also, is there any way for my first calendar to set a new date for the second calendar within the 'onSelect' handler? When a user sets the checkin (Calendar) I'd like to preset the checkout (Calendar) 3 days after.

Re: Calendar Discussion
by hardik
2009-07-20 17:04

facing the same problem

Re: Calendar Discussion
by Ori
2010-03-02 14:02

same problem here...if anybody have a solution that would be great..

Calendar Discussion
by HBento
2009-06-04 01:31

Hi Are you going to support full date format, with hour, minutes and seconds?

Calendar Discussion
by Nguyen Huu Huy
2009-06-05 13:11

can you tell me the way control calendar Focus and unforcus event. Thank you very much.

Some level of conflict with openrico
2009-06-07 00:00

I like the look and feel of this calendar alot, but I'm having trouble getting it to work on a site that has openrico as well.

Rico is used for animation effects and rounding effects on the menus. I'm guessing there's a method somewhere that conflicts, because when I comment out the rico script files on the page then the calendar works fine, but when they're included the calendar doesnt work at all.

Nothing fired when the button is pressed (popup), and fixed calendars seem to just sit in one spot and don't animate to the next screen.

No visible errors in javascript consoles that I can see.

Here's a test page: http://www.stpetersucc.com/test.cfm

Any ideas on what I can change?

Thanks!! Nick

Calendar Discussion
by Roland
2009-06-08 17:41

I might be mistaking, but when I use

var datePicker1 = Calendar.setup({ date: whateverdatehere, etc. etc. etc. });

Then the default date is not highlighted, only the actual date (today).

Calendar Discussion
2009-06-08 18:06

I would like to refer a calendar with an < a href > tag as a trigger, i actually did but now i can't use calendar values to send it to another page who will process the obtained values.

Any ideas ? Thanx.

Calendar Discussion
by Paul Grady
2009-06-08 21:21

I am trying to dynamically create a date field with calendar button. However when I hit the Calendar.setup function, JS stops processing with no errors in the log. Of course when JS stops none of the ensuing code to create the dispcal function is ever executed and needless to say it doesn't work. Not sure you can use this in a dynamic environment with multiple date fields in a single form. I would have liked to trace through the source, but the author chose to compress it. So with no source and no error I am giving up and will probably be forced to use the YUI calendar control

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-06-08 22:23

Yes, you should be able to use the widget in a form with multiple date fields. Even more, we can arrange such that only one Calendar object is used for multiple date fields (assuming a popup calendar, because only one is visible at a given time).

I'm sending full source code to registered users.

Re: Calendar Discussion
by Shaa
2012-01-25 08:20

can you please send me the code

Calendar - does it show time too?
by NicholsF
2009-06-08 23:01

Does it show time too? Is there a demo of the date and time popup?

Thanks

How to hide an inline-calendar when selecting an date
by Harald
2009-06-09 16:01

After selecting an date, the calendar should diassagear and the focus should move to another input-field.

For popup-calendar a funtion hide () exists.

Re: How to hide an inline-calendar when selecting an date
by Mihai Bazon (page author)
2009-06-10 10:12

I think the hide function should work for inline calendars too, but I didn't test it. Anyway, if you don't want animation you can try the following:

  cal.els.topCont.style.display = "none";
  document.getElementById("ID_OF_FIELD_TO_FOCUS").focus();

This code should be put in a handler for the "onSelect" calendar event. The "cal" variable is the return value from Calendar.setup.

Re: How to hide an inline-calendar when selecting an date
by SAM
2010-02-23 15:34

How do i close the Calendar control after a date has Been SELECTED??

Calendar Discussion
by Harald
2009-06-10 11:55

Thank you very much. It works fine! Great.

printDate() problem
by Michael
2009-06-10 13:32

Hello, I'm using your Calendar which seems to be very great. Meanwhile, I have a problem while trying to trasnform a date using the builtin function printDate.

I have the following error: TypeError: cal.printDate is not a function

I look at your code and therefore, this function is really not implemented ! Is it possible to have it in a future release ?

Also, in the previous version, there was a feature permitting to display a value in a div (if a remenber well). Is that feature not planned for this version ?

Many thanks for your work which is really excellent !

Re: printDate() problem
by Mihai Bazon (page author)
2009-06-10 14:12

It's a class function, rather than object function. This means it's not available in a Calendar object instance, but in the Calendar class itself. Example:

  var date = new Date();
  alert( Calendar.printDate(date, "%Y/%m/%d %H:%M") );
Calendar Discussion
by Michael
2009-06-10 15:26

Ok. It works like this:

var DtSelected = Calendar.selection.get() ; DtSelected = DateSelected.toString() ; var d = new Date() ; d.setDate(DtSelected.substr(6, 2)) ; d.setMonth(DtSelected.substr(4, 2)) ; d.setYear(DtSelected.substr(0, 4)) ; alert( Calendar.printDate(d, "%Y %m %d") );

A little bit more complicated but works fine ! Many thanks for your help.

Width!!
by E Paul
2009-06-10 22:07

Looking for something to customize for our web-application's event-calendar. So the calendar will be bigger (in width and height) to include events, etc. Is this Calendar's width dynamically changable or adjustable? Thanks.

Several statuses
by Nikita
2009-06-13 11:20

Is there any method to select the status of selected date? Thats could be helpfull to select work, holiday or short days in a month.

Use case: - open calendar - do some clicks on one date to change it status - do some clicks on another date to change there status to0 - to remove selection of date do some clicks on it - etc each statuses has its color to show user which is selected

thanks

Calendar Discussion
by Michael
2009-06-16 13:33

Hello. Already asked before, but there is no support for the time as it was in the version 1 ! Do you think you will add it soon ?

Many thanks.

Calendar Discussion
by bipul
2009-06-17 06:41

<input id="input3" name="input3" type="text" value="<?php echo ($POST['input3'] != "" ? $POST['input3'] : date("Y-m-d")) ?>" size="15" style="background-color: #ebebe4; border: #7f9db9 1px solid;" /> <img height="16" width="16" alt="calendar" style="cursor: pointer; margin-left: 5px;" src="jscal/cal.gif" id="f_rangeStart_trigger" /> <script type="text/javascript"> alert(1); new Calendar({ inputField: "input3", dateFormat: "%Y-%m-%d", trigger: "f_rangeStart_trigger", bottomBar: false, onSelect: function() { alert(2); var date = Calendar.intToDate(this.selection.get()); this.hide(); } });

this is my code snippet and i have included all the necessary files for the jscalendar but still the calendar does not show. What might be the problem.

Calendar Discussion: showsTime
2009-06-17 16:42

Hi, I'm try to migrate from JSCal1 to JSCal2 before buying a license but what about parameter "showsTime" ?

How to display time selection ? It is really important to us. Is there a more complete documentation like for the JSCal1 ?

Regards

Calendar Discussion
by Thomas
2009-06-18 10:12

Hello, I have a problem, with this cal, I have two inputs, for start-day, and end-day. I use this code for it.

&lt;input name="in_one" id="calendar-inputField" /&gt;&lt;button id="calendar-trigger"&gt;start&lt;/button&gt;
&lt;input name="in_two" id="calendar-inputField2" /&gt;&lt;button id="calendar-trigger2"&gt;end&lt;/button&gt;
&lt;script&gt;//&lt;![CDATA[
Calendar.setup({ trigger: "calendar-trigger", inputField: "calendar-inputField" });
//]]&gt;&lt;/script&gt;
&lt;script&gt;//&lt;![CDATA[
Calendar.setup({ trigger: "calendar-trigger2", inputField: "calendar-inputField2" });
//]]&gt;&lt;/script&gt;

It works perfect, but, now I need submit these values. Could you tell me how? I use form tag and submit button, but the calendar buttons now are non-functional. Many thanks.

Calendar Discussion
by rico
2009-06-18 10:15

the calendar only works in html input text field but not working in asp.net textbox field. any idea pls. using textbox.

Re: Calendar Discussion
by Anbu
2009-06-30 15:16

its working in asp.net textbox field also. but there is a problem while the aspx page is postback.

Re: Calendar Discussion
by m adibi
2010-11-29 21:18

how does it work with tetxtbox in asp.net instead of input html control?

Calendar Discussion
by fml
2009-06-18 18:42

Just wondering why sometimes the "min" works and sometimes it doesn't. Is it a bug or something?

Re: Calendar Discussion
by fml
2009-06-19 01:28

Ok found out that "min" broke after a 'submit' action. What is the snippet so that you can reload calendar.setup for every submit?

Calendar Discussion
by rivaldi
2009-06-19 10:30

hi,

your calendar is great!

i have a question. by default the weekend is displayed in red color. can you tell me how to change it so it will display like the other normal day? (black)

thanks

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-06-19 10:51

Search for "DynarchCalendar-weekend" in the CSS file(s) and put whatever color you want in the “color” property.

Calendar Discussion
by rivaldi
2009-06-19 11:49

Great!you save my day. thanks for the quick reply.

:)

Calendar Discussion
by salma
2009-06-20 01:38

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date

Calendar Discussion
by salma
2009-06-20 01:38

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date

Calendar Discussion
2009-06-21 12:47

Is there a possibility to use the calendar as "month picker". Only the month part and a click button for selection should be shown.

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-06-21 13:48

There is a selection type that doesn't allow dates to be selected (Calendar.SEL_NONE). I think it's undocumented, sorry about that.

So you can pass selectionType: Calendar.SEL_NONE, and you'd have to track the currently selected month with the onChange event handler, sort of like this:

  Calendar.setup({
      ...
      selectionType: Calendar.SEL_NONE,
      onChange: function(cal, date) {
          var month = date.getMonth();
          // currently selected month as 0..11
      }
  });

However, there is no "OK" button -- the user can simply click outside the calendar to dismiss it. Not sure this would work for you...

Calendar Discussion
2009-06-21 17:07

Thanks for your fast answer. I tried it, but it is not what I am looking for. The days are still displayed und clicking outside for selecting a month is not really user-friendly. I will use calendar as day-picker (see on my Website the small button in the middle of the top) and a month-picker I will develop by myself.

Calendar Discussion
by Mohsin
2009-06-22 09:55

sir i want to get the month and year when i click on month year section please help me as soon as possible i am waiting your response thanks in advance

Calendar Discussion
by Matthew
2009-06-22 10:06

Hi,

your calendar is really great, however i miss the "multi-month" functionality, like the one available in official jquery datepicker. Do you have any plans to implement it?

thanks

Calendar Discussion
by Nico
2009-06-22 17:13

Little problem with DateTime: in an Input: 17/05/2006 14:24:00

Date in calendar OK, but time no, it put the Time of Now();

if anyone have an answers...

Calendar Discussion
by Nico
2009-06-22 17:47

I've answered my question,

I use setTime() and it's OK...

But, an other problem, the Format of Date %H isn't between 00 and 24, at 0 (midnight) it's 12...

Re: Calendar Discussion
by greta
2009-07-20 13:58

Perdona, podrías explicar como lo solucionaste, ya que tengo el mismo problema pero no logre resoverlo :)

Re: Calendar Discussion
by greta
2009-07-20 13:59

Sorry could you explain how you fixed it please, i have the same problem! Thanks in advance.

Calendar Discussion
by Nico
2009-06-22 17:57

YES:

in te B function, ar need a little modification, replace 12 by 0

thanks for your code, you save my life!

ps: I use it for an projet in "formation", it's named "Air de Java"

Calendar Discussion
by Manuel
2009-06-22 18:26

Hi, I have a problem with the calendar, if i select October 18th and then click in another part of the screen and then try to select another day i have two october 18th, do you know why is that?

Thanks

Re: Calendar Discussion
by Ryan
2010-02-04 20:43

Hi, I believe this relates to a bug which hasn't been fixed concerning when you crossover in to daylight saving time. I don't recall the exact way to reproduce it, but I seem to remember it occurs when your current date is after March 9th but before October, and possibly when trying to find dates after October..

Anyway, the guy here seems to have found the solution: http://jira.atlassian.com/browse/JRA-14952 This should fix the version 1.0 script anyway.. I'm hopeful, got to wait until after March to see if I notice the issue anymore.

Calendar Discussion
2009-06-23 11:35

Hi, I am having problems with the calendar buttons in a single form, it is treating the buttons as submit buttons and refreshing the page, therefore never allowing the calendar to be displayed. I was wondering how do I allow for the use of form and posting the fields to a different page, should i be using hidden fields, which are quite inconvenient.

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-06-23 11:42

Try adding onclick="return false" to your buttons, this should prevent the form from being submitted.

Calendar Discussion
2009-06-23 12:24

That works perfectly. I've changed the clear button to an <input type="button" ... > and thats working fine too. Thank you.

Calendar Discussion
by pippo33
2009-06-23 12:50

I try to use your calendar but i have a problem. If the input field is void i can set the date, but after if a want to change on click nothing happens. Its my mystake ? Can i use some setting to avoid this. Thanks for Your job.

Calendar Discussion
by Allan
2009-06-25 14:00

You first license states:

You may not distribute products containing The Software or portions of The Software to third parties.

Does this mean I can not use your software in a commerical application?

Calendar Discussion
by Vladimir
2009-06-25 16:55

I'm using the greek translation of the calendar, first i had problems because the Calendar.TT["DAYFIRST"] was missing inside the file and it did not pop up.

After this I set a date from it: lets say 01 Ιουν 2009 03:40:44 PM which is 01 June and after i click again on the calendar the calendar will display 08 Ιαν 2009 12:00:00 AM. As it seems the rendering is not ok, everytime it takes the day of the set month and it sets it as a current month when you click the second time.

I have tried different settings for Calendar.TT["DEFDATE_FORMAT"] = "%d.%m.%Y"; Calendar.TT["TTDATE_FORMAT"] = "%a, %b %e";

HELP PLEASE!

Calendar Discussion
by Cache
2009-06-26 04:24

%Y-%m-%d %H:%M:%S does not seem to work at all in FireFox 3

e.g. cal.manageFields("f_btn1", "f_date1", "%Y-%m-%d %H:%M:%S");

if date1 already contains a date value with time, e.g. '2006-03-02 12:32:02' clicking on btn1 causes the month in date1 to be overwritten with 12 and the time to be overwritten with now()), and that is before any date has even been clicked/selected!

HELP!

UTF-8 support in calendar 1.5
by Vladimir
2009-06-26 11:45

In

When you select a date in the calendar (internationalised - and the date contains UTF-8 chars) and then re-select the pop-up. The date shown in the popup does not equal the selected date, it defaults to today's date.

I've found out that the problem is in var a = str.split(/\W+/);

Which can not evalaute the non Latin characters.

Is this fixed in some higher version or there is any way to fix this?

Calendar Discussion
2009-06-26 19:22

How can I submit the selected value? Thanks.

Calendar Discussion
by Eduardo Vejarano
2010-04-20 01:07

if you put the selection on a field and submit the form then you have the selected values.

Calendar Discussion
by Pablo Rodriguez
2009-06-27 04:06

I'm trying to use a popup calendar. Just the basic setup ( inputField, trigger and the onSelect event to hide the object ). It works perfect the first time i select some value. But, let's say it was the wrong date. If i click again in the trigger button, the calendar pops up and allows me to select a diffrente date but, oddly, the input field doesn't get updated with the new value. It seems like the input field is only updated when it's empty. ¿ Is this how it's supposed to work ? ¿ Any way to get around this ?

Re: Calendar Discussion
by to
2009-07-11 01:26

new Calendar({ inputField: "f_date1", dateFormat: "%B %d, %Y", trigger: "f_btn1", onSelect: function() { var date = Calendar.intToDate(this.selection.get()); date = Calendar.printDate(date, "%B %d, %Y"); document.getElementById('f_date1').value = date; this.hide(); } });

maybe someone know better suggestion

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-11 10:00

This is a good solution.

Indeed, there's a bug with the default setup options that prevents the field from being updated a second time. I haven't got time to track it down yet, but the onSelect handler is really for such kind of stuff that you mentioned.

I'll try to release a fix soon.

Select from input
by Mehran
2009-06-28 13:48

Dear Mihai Bazon, First of all, thanks for your invaluable work. When I have a data already in the input box and I open the Calendar, I think it should go to that date but unfortunately it is showing Calendar and when I select new date, it will not change the date in input box. But it is working fine for the first time. Please advice.

Re: Select from input
by Anbu
2009-06-30 15:29

For that,you can update the calendar-inputField value to 0 (or 00/00/0000 like) while button click event then it ll working fine. but its not the right solution.

Calendar Discussion
by Andrew
2009-06-28 20:36

Hello, I love this calendar script, but there was something I was curious about. Is it possible to prevent the popup calendar from closing if the user clicks a disabled date?

Re: Calendar Discussion
by Sam
2011-08-17 02:46

I want this too - I have thoroughly checked and there doesn't seem to be a way to do this without unwanted side effects.

If you set 'cont', as you would for a non-popup calendar (I set it to be a hidden div), the calendar will stay open when disabled dates are clicked but this will have the undesired side-effect that it stays open 'onBlur'. If you then set the 'onBlur' callback to hide the calendar, it once again hides when disabled dates are clicked.

In my opinion, the default behaviour should be that the calendar does not close when disabled dates are clicked, i.e. that the onBlur event is not triggered when disabled dates are clicked.

Calendar Discussion
by Ronn
2009-06-28 23:53

eh sry for asking, but how do i display the calender on my page? SRY AGAIN. I am a total n00b. first time with Jscript.should i use the document.write().

Calendar Discussion
by jaykumar
2009-07-01 16:01

Your new calendar is not working with pages generated by ajax call................. Its very baddddd

Calendar Discussion
by Cristi
2009-07-01 16:14

Hi.

I have 2 questions about the inital selection date: 1. why the calendar can't take the initialDate value from the value of the textField bound to it? 2.why for the initialDate you used a separate dateFormat then the one used to display the date in the text?

When we needs to initialise dinamicly the calendar wee need to care tha date in 2 formats: the one for the dislay and the one for initial value.. it's not practical.

In rest I think it's a nice piece of work. Congratulations

Calendar Discussion
by Nicolas
2009-07-02 15:04

Another bug: with Firefox 3.5 the Calendar is awful =S

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-02 15:11

What exactly is awful? I'm with FF 3.5 right now and it looks great.

Re: Calendar Discussion
by Nicolas
2009-07-02 16:26

Oh! I found out the problem. I was using OutZoom in Firefox... If i turn off the zoom it works ok!

What about the other bugs?? Any news? I really like JSCal!! Thanks

Calendar Discussion
by megaroc
2009-07-03 12:52

Ola

I have the old calendar in a joomla form, how i update for this new one ?

thanks obrigado

Calendar Discussion
by Stuk
2009-07-03 15:41

How Can I Set The z-index value? Becouse calendar stay behind the other <div>...

Calendar Discussion
by Mike
2009-07-03 17:11

Hi, i use the calendar as popup. but when in the input field is a date, the selected date not filled in? So i can only select 1 time a date.

Whats wrong?

Thanks Mike <input size="30" id="f_date1" /><button id="f_btn1">...</button><br /> <input size="30" id="f_date2" /><button id="f_btn2">...</button><br /> <input size="30" id="f_date3" /><button id="f_btn3">...</button><br /> <input size="30" id="f_date4" /><button id="f_btn4">...</button>

var cal = Calendar.setup ( { bottomBar : false, animation : false,
weekNumbers : true, onSelect: function(cal) {cal.hide()} } );

    cal.manageFields("f_btn1", "f_date1", "%d.%m.%Y" );
    cal.manageFields("f_btn2", "f_date2", "%d.%m.%Y");
    cal.manageFields("f_btn3", "f_date3", "%d.%m.%Y");
    cal.manageFields("f_btn4", "f_date4", "%d.%m.%Y");
Calendar Discussion
by jory
2009-07-06 04:58

Mike, i got the same problem with you.

Calendar Discussion
by Mike
2009-07-06 18:37

i have fixed the for me, 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: Calendar Discussion
by Anbu
2009-07-07 17:36

Its really good, I am waiting for this only. thanks a lot Mike

Calendar Discussion
by Mukesh Ajmera
2009-07-08 09:32

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date.

is there any solution.

Thanks

Calendar Discussion
by Yvan
2009-07-09 15:24

I have 3 problems with my popup calendar that I need to resolve:

http://www.theseagatehotel.com/www.theseagatehotel.com/index.html

1) The background image within the popup calendar doesn't display in IE -- it instead displays as semi-transparent

2) I need to force the position where the popup calendar displays to be immediately beside the right edge of the small calendar icons (so that it doesn't overlap the select dropown boxes -- which creates a problem in IE6)

3) I need to update the javascript so that when you click on a date -- it first clears the contents of the text input field before populating it. Right now, .. as a temporary fix, .. I have it so that the text input field is cleared when you click on the small calendar icon. Ideally, though, I'd need for this to happen only when they click on an actual date within the calendar.

Could anyone here lend a hand?

Thanks, - Yvan

Re: Calendar Discussion
by Mike
2009-07-09 19:10

For your problem 3): i have fixed problem for me, 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: Calendar Discussion
by Yvn
2009-07-09 21:41

Thanks so much! Your solution (for #3) worked for me.

  • Yvan
Re: Calendar Discussion
by Dave
2009-07-09 23:32

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

event onSelect
2009-07-09 16:01

if i use event onSelect on contructor or with addEventListener, the date in the input target don't change. i use firefox3

Also same days ago i wrote:

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

and, pheraps, someone answer to me to update my version to 1.6. but i have it.

In the link 'See a more comprehensive demo' both bugs are present

Calendar Discussion
by Richard Case
2009-07-09 19:14

on ie6 the cal pop up does not cover select elements? I understand this is a long standing issue with ie6, but is there a fix for this in your cal?

Calendar Discussion
by Yvan
2009-07-10 00:23

Can anyone here show an example of how to control where the popup calendar is displayed in relation to the calendar icon? I want mine to display immediately beside the right edge of the calendar icon (so that it doesn't overlap the select dropown boxes) There's mention of using the "showAt()" function in the documentation .. but no examples are given on how to implement.

  • Yvan
Re: Calendar Discussion
by Yvan
2009-07-10 16:56

For those of you who are interested .. here is the solution to my popup calendar positioning problem:

<script type="text/javascript"> Calendar.setup({ trigger : "calendar-trigger-arrive", inputField : "arrive", align: "BR/ / /Br/r", onSelect : function() { this.hide() } }); </script>

Re: Calendar Discussion
2010-03-04 22:00

Regarding the positioning of the calendar popup, the biggest issue appears to be in Internet Explorer (of course) - we fixed this by altering the file:

/app/code/core/Mage/Core/Block/Html/Date.php

changing the line:

              align       : "Bl",

to:

              align       : "",

This "fix" was tested in IE7, 8 and Firefox 3.5 and 3.6 - the calendar now pops up right next to the calendar input field image for all browsers we tested it in.

IE really is a pain... hth and enjoy.

Re: Calendar Discussion
by steve m
2010-05-07 08:19

thankyou!!!!!!!

This was driving me crazy!

Calendar Discussion
by Yvan again
2009-07-10 16:58

Can anyone here help me figure out why I can't get the popup calendar's background images to display in IE 8? How can I fix that?

http://www.theseagatehotel.com/www.theseagatehotel.com/index.html

("Quick Reservation" form in the righthand column)

Thanks, - yg

Calendar Discussion
by tom
2009-07-10 22:28

Can this cal show availability? For example, say I want clients to choose a date and time to schedule an appt with me. If I am already booked, I don't want them to overbook a date/time. Please let me know - and if it isn't - do you plan on doing this? If not, got any suggestions?

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-10 22:41

Yes, it can. You want to look at "disabling dates" and/or "highlighting special dates" in the documentation.

Calendar Discussion
by Akis
2009-07-11 18:13

Hi all! This is a great project! But i'm a little confused with this: How can I disable 1.all the dates before "today" 2.all dates after 7 days from "today" automatically?????

Thanks a lot !

Gold skin it is no working for me
2009-07-11 23:52

Hi! I unzip the calendar but can get the Gold skin to work. Everything seen to be fine.

It is just me?

Use of This.hide() and field value
by Luca
2009-07-12 15:45

Hello. I Think this is really a great project. I just noticed this problem. if i select a date (for example on your demo page at http://www.dynarch.com/static/JSCal2/index.html) to disable dates before a day, in the input field i can see the first date i selected, but if a select a different day (without clearing the field), the grey days on calendar are updated, but not in the input field. I have also this problem if i create a single field to choose a date and i use the hide() function. Thanks

Calendar Discussion
2009-07-13 12:55

Hi Mihai,

I know you have not answered my previous private attempts to contact you. I came about to represent the Fabrik component/Joomla in this matter. So I thought about trying to contact you one more time using the comments here. Then, if you don't not answer within 7 days, we will probably begin to develop our own calendar popup (until now Fabrik/Joomla has used your JSCal1, but I've mentioned in the previous private message to you it's limitations). Regardless of your answer, I thank you for coding this tool.

Calendar Discussion
by JSM
2009-07-13 13:27

Okay, wondering where this goes: calendar.setDate(new Date()); but, instead of new Date() I want to add a date string from a previously set variable.

How do I do this, and where do I do this ?

Thanks

Calendar Discussion
by archana
2009-07-13 15:28

can we implement popup calender like populateFields.htm means when we change date its change date when we change time its change time.

Calendar Discussion
2009-07-13 22:14

This calendar is superb! would be great if you can post a question a mate already did here: how can I disable all the dates before today to be selected? I've being playing with the "min" and that, but i'm not able to do it.

Thanks ;-)

Re: Calendar Discussion
2009-08-01 16:30

This code enable only the dates between a range begining on today:

var today = new Date(); range = 60; last=new Date(today.getFullYear(),today.getMonth(), (today.getDate()+range));

var cal = Calendar.setup({ min: Calendar.dateToInt(today), max: Calendar.dateToInt(last), onSelect: function(cal) { cal.hide()} });

Calendar Discussion
by Junior
2009-07-14 05:04

Hello... how come the week starts on a monday rather than a sunday.. How can i change it.. i loooked thru the 124 posts and nothing.. thnx

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-14 09:12

If you look through the documentation as well you'd notice the fdow argument in constructor. ;-) Pass fdow: 0.

Calendar Discussion
2009-07-14 14:36

I get a strange behaviour using inline input text with calendar

I use the following format dateFormat: "%Y-%m-%d %H:%M:%S" for my input.

When the I click to the handler button date is changed from 2009-07-14 13:35:00 to 2009-12-14 13:35:00 by the calendar. When I only use date in the format calendar works fine.

Any idea or suggest ?

Calendar Discussion
2009-07-14 19:32

I succeed to make it work using my own parseDate function : Calendar.parseDate = function(date){ var c = new Date(); var d = date.split(/\W+/); var year = d[0] ? d[0] : c.getFullYear(); var month = d[1] ? d[1] : c.getMonth(); month = month -1; var day = d[2] ? d[2] : c.getDay(); var hours = d[3] ? d[3] : c.getHours(); var minutes = d[4] ? d[4] : c.getMinutes(); var seconds = d[5] ? d[5] : c.getSeconds(); var d = new Date(year,month,day,hours,minutes,seconds); return d; }; But I had a new problem input time (Hours + minutes + seconds) does not change when i update time in calendar :'(. I Still looking for some help :D.

Dutch translation Calendar
by Marco
2009-07-14 22:30

Hi,

I've made a Dutch translation for the Calendar. Are you interested? If so, how can I send you the file?

Greetings, Marco

Calendar Discussion
by Jay
2009-07-15 06:26

Hi, what if i want to show the selected date instead of "->" then i select the 5 consecutive dates

Count Days but exclude dates that are disabled
by Mias Steenberg
2009-07-15 12:22

I'm looking to use this on a internal intranet to submit a leave form. I have two questions: 1. Obviously I would like to exclude public holidays. - I saw how to exclude some days and have implemented it. When I make a selection from 1 July up-to 3 July and 2nd July is disabled it counts that I have selected 3 days.

           How can I exclude disabled days from counting.

2. Joined to the question above, I would like to exclude Saturdays and Sundays from counting as well and leave excludes these days as well.
           How can I exclude counting Saturdays and Sundays without disabled each Saturday and Sunday.
Re: Count Days but exclude dates that are disabled
by Mihai Bazon (page author)
2009-07-15 12:27

It's rather tricky to implement generically, but see this reply to a similar question.

Re: Count Days but exclude dates that are disabled
by Mias Steenberg
2009-07-15 12:56

Thanks for the quick responce!!!

Cool I'll test this code: var dates = cal.selection.getDates(); for (var i = 0; i < dates.length; ++i) { if (cal.isDisabled(dates[i])) { cal.selection.unselect(dates[i]); } }

How and where do I implement this code - In the Calendar Function, the place where it's prints the days...

This is what I currently have: var DISABLED_DATES = {20090702: true,20090705: true,20090710: true,20090711: true};

var LEFT_CAL = Calendar.setup({cont: "cont",weekNumbers: true,selectionType: Calendar.SEL_MULTIPLE,disabled : function(date){date = Calendar.dateToInt(date);return date in DISABLED_DATES;}});

Re: Count Days but exclude dates that are disabled
by Mias
2009-07-15 17:21

How and where do I implement this code?

Calendar Discussion
by Glenn
2009-07-15 14:55

I'm testing calendar when using the 24 hour clock if I select a time of 00:58 its returning 12:58 to the input field. Do you have a fix for this?. Everything else so far works great..

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-15 14:58

You probably need to adjust the dateFormat that you pass to the calendar. Note that "%I" returns hours in 12-hour clock format, while "%H" returns it in 24 hour format.

In 12-hour clock format, hour 00:58 really means "12:58 am".

Re: Calendar Discussion
by Glenn
2009-07-15 16:27

I'm using %H it brings back the rest of the 24 hour clock fine its just once its under an hour it brings back 12 as the hour

Re: Calendar Discussion
by Alan Martinez
2009-12-22 19:24

Hi Glenn,

Did you solve the time format issue(%H)? Could you please advise how to solve it? Thanks in advance!

Calendar Discussion
2009-07-15 15:15

I am the only one having problem with this calendar using date format : dateFormat: "%Y-%m-%d %H:%M:%S" ?

Re: Calendar Discussion
by greta
2009-07-20 17:57

I have the same problem too...any help?? :(

rejecting a date
by Lou Rayman
2009-07-15 17:34

on the jscalendar 1.0, there was a way to trap the selection event and reject it BEFORE the input field was updated. I cant find that hook anymore in the newer code. Is there a way to reject a date and leave the input field set to the original?

thanks

Calendar Discussion
2009-07-15 22:44

Yep, i'm having problems with hours having a ':' character between. Right now what i did is separate the how from the date and just give an space.

About disabling all the days before today for being selected. I didn't get if there's an answer here in this long thread (i've checked it entirely, but coudn't get the answer if there's any).

Is there a way to just put something like min:getToday(); ?

We just need (i and the people who requested it) the min value to be as the "today" date, automatically.

Thanks a lot.

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-16 01:39

See the disabling dates section in the documentation. In short, you should be fine by passing min: Calendar.dateToInt(new Date()) in the constructor.

Calendar Discussion
2009-07-16 01:43

Thanks you very much for your reply Mihal. I'm in the process or learning javascript and i'm a bit lost right now. I'll check it out what you posted.

Thanks.

Calendar Discussion
by Alex
2009-07-16 02:08

is there a way to change mix, max dates outside the constructor

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-16 02:15

Yes, this is used in the demo:

  var min_date = new Date();
  cal.args.min = min_date;
  cal.redraw();

Note that it must be a Date object this time, rather than the integer representation (see here) that you can pass in the constructor.

Calendar Discussion
by Glenn
2009-07-16 17:26

I purchased a license yesterday morning. How and when do I get source code?

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-07-16 17:55

Hi Glenn,

I sent your package today at 2:06pm EET (about 4h ago). I'm not sure why you didn't receive it. I used the address that the order was from (@aol.com), if you want me to send you the package at a different address please let me know using the contact form.

BTW, please check your SPAM folder as well and make sure that you can receive ZIP archives containing .js files. I know that some antivirus programs are quite paranoid about this.

Calendar Discussion
by Glenn
2009-07-16 18:55

Could you try resend never did get

Calendar Discussion
by Richard
2009-07-17 04:43

I actually need something like this but don't want either date or time -- just month/year or year-only.

That is, specifically, I'd like to be able to specify a date range by month/year only (like jul-2006 - jun-2008) or even just range of years (2007 - 2010)

Possible?

Calendar Discussion
by Yashar
2009-07-19 10:25

When I add <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

browser shows page incorrectly! my browsers: IE8, Google Chrome 2 (margin of paragraph changes!)

when I dont add this header calendar shows incorrectly.

here is my page: try to add <!DOCTYPE html ... and see result.

Please help

<html>

<head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Title1</title> <style> <!-- p { margin-top: 60 } --> </style> </head>

<body>

<p>text1</p> <p>text2</p> <p>text3</p> <p>text4</p>

</body>

</html>

Update a 2º calendar?
by Jorge
2009-07-20 13:26

hello, how can I update a 2º calendar when 1º are updated?

thanks

Calendar Discussion
2009-07-21 18:22

Firefox issue! Seems others have it too! SO when you use the field as date time it always thinks your in december in firefox Example 2009-07-29 15:23:25 In IE it looks fine though.

HELP!

Re: Calendar Discussion
by himi
2009-07-24 18:55

hello. i have the same problem/bug in Firefox 3.5.1, calendar thinks it is december - but only when some date is selected. if no date is selected (when selecting for the first time) it is correct. but when i want to change it then it shows december. it works ok in IE8. thanks.

Calendar Discussion
by Marco
2009-07-22 03:49

Hi, Is there a way to use a different key pattern for multiple selection? On a mac, control click works but it emulates a right click and it's annoying... Thanks

Re: Calendar Discussion
by Marco
2009-07-26 23:06

fixed. Changed the JSCal2.js file to allow alt-click for multiple selection instead of control-clik.

Calendar Discussion
by Grega
2009-07-22 09:32

Hi,

I try to use your calendar in my web app, I open page with squeezebox, like a popupwindow, but calendar does not show up. If I load the page alone everything works OK. Squeezebox demands XHTML strict document structure. Is there any way to display it?

regards grega

Calendar Discussion - about time format
by Carlos
2009-07-23 00:37

I can't select the format of time including seconds!, please add this feature, by the way your code is obfuscated.

Calendar Discussion
by Steve
2009-07-23 00:49

Hello: Have seen this question 3 times now, with no response: How to disable past dates from being picked automatically. I see in the documentation how it is done manually, but don't want to have to change the code daily. Any help would be appreciated.

Calendar Discussion
by Steve
2009-07-23 00:51

Sorry, above message is unclear. By "How to disable past dates from being picked automatically" I meant i want past dates automatically disabled without changing code daily. Thanks.

Calendar Discussion - onchange for the input field
by Rob
2009-07-23 21:32

This calendar looks really great but it doesn't appear to respect the onchange event handler on the input field. For instance if I have:

<input type="text" id="foo" onchange="this.form.submit();" />

Then the onchange() doesn't fire when selecting the date from your widget, but if I change the date directly in the text field it still triggers.

Re: Calendar Discussion - onchange for the input field
by Mik
2009-10-13 10:18

I have also found this to be a problem, is there a work around?

Calendar Discussion
by acatejr
2009-07-23 21:33

I think the calendar is a great tool!! I need to position it to the left inside another div. By default it positions center. How do I change the calendar so it positions to the left? Thank you.

Calendar Discussion - onchange for the input field
by Rob
2009-07-23 21:34

Just another comment about the onchange event handler... it should only fire if the value changes... so if I select the same date in the drop down as already in the text field then it shouldn't fire :) You probably already know that though.

Calendar Discussion
by Luis
2009-07-24 12:37

I think there's a bug on the calendar when selectionType is set to SEL_SINGLE. Basically the calendar produces an invalid date when SEL_SINGLE is selected. Example (click on any date, then change to SEL_MULTIPLE, reload, click on any date):

Calendar.setup({ cont : "calendar-container", weekNumbers : true, selectionType : Calendar.SEL_SINGLE, selection : Calendar.dateToInt(new Date()), onSelect : function() { var date = this.selection.get()[0]; date = Calendar.intToDate(date); alert(date); }

});

Calendar Discussion
by Luis
2009-07-24 13:03

Okay, been having a poke with the (compressed) source code. Found this string:

{return this.type==y.SEL_SINGLE?this.sel[0]:this.sel}

Changing it to:

{return this.sel}

solves the problem for me.

How can i show only FIVE rows
by Rajesh
2009-07-24 14:01

Hi

How can i show only FIVE rows on Calendar.Can you please tell me ASAP.

Re: How can i show only FIVE rows
by Ronald Schultz
2010-02-20 01:25

One simple way to show only FIVE rows (for most months) might be to set "DynarchCalendar-day-othermonth" in the css file to "display: none". On the two browsers that I used, it made the days from "other months" invisible, with the control frame automatically shrinking to fit those months with just five rows.

Disabled date dinamic
by Carlos
2009-07-24 14:55

Hi! I use two jscalendars, and I want to disable date in 2nd calendar before date in 1st calendar.

I tried using a function that modify "min" dinamic, but don't worked it.

How could I do it?

Calendar Position BUG
by wojwal
2009-07-24 18:16

Hi!

I found a bug... Calendar is not aligning well to anchor once anchor is inside scrollable div created via 'overflow: auto' css style. As much I need to scroll down - as far calendar is incorrectly shifted to bottom. I wanted to handle it by my own with showAt(x, y) - but this function seems not to work, is it? I could use popup - it worked fine - but showAt has no effect.

Sample of the bug:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <link rel="stylesheet" type="text/css" href="js/JSCal/css/jscal2.css" /> <link rel="stylesheet" type="text/css" href="js/JSCal/css/border-radius.css" /> <script type="text/javascript" src="js/JSCal/js/jscal2.js"></script> <script type="text/javascript" src="js/JSCal/js/lang/en.js"></script> <br><br><br><br><br><br> <div style='width: 500px; border: 1px solid red; height: 100px; overflow: auto'> test<br>test<br>test<br>test<br> test<br>test<br>test<br>test<br> test<br>test<br>test<br>test<br> test<br>test<br>test<br>test<br> <div style='border: 1px solid blue'> <input id="calendar-inputField" /> <button id="calendar-trigger">...</button> </div> </div> <script> var calendar = Calendar.setup({ align: "MC/ / / / ", trigger : "calendar-trigger", inputField : "calendar-inputField" }); </script> </html>

Calendar Discussion
by Kushal Agarwal
2009-07-25 22:03

Hello to the developer of this Calendar.

Buddy I really appreciate your effort.

I have downloaded this calender and it just works fine ...

But there's one issue I would like to talk about is its aligning.

As shown in the documentation page the example of POPUP. When the page is scrolled up, the Calendar pops below, and when the page is scrolled down, the Calendar pops above. I am not able to figure out how exactly its happening. Can you please tell me how its happens or provide me the code as shown in the documentation page where the popup calendar is demonstrated. I request to please answer me as soon as possible.

Thankyou.

Waiting for your answer.

Regards. Kushal Agarwal.

Re: Calendar Discussion
by Natalia
2010-02-17 16:45

Calendar is not aligning well if its inside scrollable div created via 'overflow: auto' css style. When I scroll down the calendar is incorrectly shifted to bottom.

It would be great if anybody can help me with this? Please let me know how to fix it I will aprecciate it! Thanks Natalia

Calendar Discussion
by Kushal Agarwal
2009-07-25 22:34

Hey I guess I have figured out that by my self ...

Thanks Anyways ... Looking forward for your other scripts ...

:)

Re: Calendar Discussion
by Natalia
2010-02-17 16:33

Hey Kushal! I have the same problem with the calendar I would appreciate if you can tell me how you fixed! Thanks is advance! :) Natalia

Calendar Discussion
by swaraj
2009-07-27 08:20

Hi all,

Iam want to disable the dates before current date. can anyone help me to do this..

regards, swaraj

Calendar Discussion
by swaraj
2009-07-27 08:32

atleast tell me which function i need modify in jscal2.js

Re: Calendar Discussion
by Steve
2009-07-29 00:50

I asked the same question #165 and, so far, no one has had a suggestion.

Disable past dates
by Bhaskar
2009-07-29 02:07

Hi Mishoo,

I would like to know how to disable past dates before the current date. I think its minimum requirement for a calendar. Please reply me.

Regards Bhaskar

Date and time in one input
by Ollea
2009-07-29 18:18

Is it a simle way to set date and time (in mysql datetime format) to an input field or does I need to program it ?

Thank you for your answer,

Calendar Discussion
by swaraj
2009-07-30 11:33

i have completed disabling previous dates. replace function ac(aw,aG,aD) in jscal2.js with the following code

function ac(aw,aG,aD){ aG=aG||aw.date;aD=aD||aw.fdow;aG=new Date(aG); var aI=aG.getMonth(),av=[],aA=0,D=aw.args.weekNumbers;aG.setDate(1); var today = new Date(); //alert(today); var az=(aG.getDay()-aD)%7; if(az<0){ az+=7 } aG.setDate(-az); aG.setDate(aG.getDate()+1); var aE=new Date(),at=aE.getDate(),P=aE.getMonth(),aJ=aE.getFullYear(); av[aA++]="<table class='DynarchCalendar-bodyTable'"+ah+">"; for(var aC=0;aC<6;++aC){ av[aA++]="<tr class='DynarchCalendar-week"; if(aC==0){ av[aA++]=" DynarchCalendar-first-row" } if(aC==5){ av[aA++]=" DynarchCalendar-last-row" }av[aA++]="'>"; if(D){ av[aA++]="<td class='DynarchCalendar-first-col'><div class='DynarchCalendar-weekNumber'>"+a(aG)+"</div></td>" } for(var aB=0;aB<7;++aB){ var aF=aG.getDate(),ay=aG.getMonth(),au=aG.getFullYear(),ar=10000*au+100*(ay+1)+aF,aH=aw.selection.isSelected(ar),ax=aw.isDisabled(aG); av[aA++]="<td class='"; if(aB==0&&!D){ av[aA++]=" DynarchCalendar-first-col" } if(aB==0&&aC==0){ aw.firstDateVisible=ar } if(aB==6){ av[aA++]=" DynarchCalendar-last-col"; if(aC==5){ aw.lastDateVisible=ar } } if(aH){ av[aA++]=" DynarchCalendar-td-selected" } av[aA++]="'><div dyc-type='date' unselectable='on' dyc-date='"+ar+"' "; if(ax){ av[aA++]="disabled='1' " } if(aG<today){ //alert(aG<today); av[aA++]="disabled='1' " }

  av[aA++]="class='DynarchCalendar-day";
  if(aG&lt;today){
    //alert(aG&lt;today);
    av[aA++]=" DynarchCalendar-day-disabled"
  }
  if(aq("weekend").indexOf(aG.getDay())&gt;=0){
    av[aA++]=" DynarchCalendar-weekend"
  }
  if(ay!=aI){
    av[aA++]=" DynarchCalendar-day-othermonth"
  }
  if(aF==at&&ay==P&&au==aJ){
    av[aA++]=" DynarchCalendar-day-today"
  }
  if(ax){
    av[aA++]=" DynarchCalendar-day-disabled"
  }
  if(aH){
    av[aA++]=" DynarchCalendar-day-selected"
  }
  ax=aw.args.dateInfo(aG);
  if(ax&&ax.klass){
    av[aA++]=" "+ax.klass
  }
  av[aA++]="'&gt;"+aF+"&lt;/div&gt;&lt;/td&gt;";
  aG.setDate(aF+1)
}
av[aA++]="&lt;/tr&gt;"
}

av[aA++]="</table>";
return av.join("") }

Calendar Discussion
by Alessio
2009-07-30 14:11

I can disable drag function??

Calendar Discussion
by Alessio
2009-07-30 14:12

I can get a current month selected from arrow right and left button?

External File for disable_date
by Admin75
2009-07-30 14:54

Hi there,

my parents in law bought a house with tree apartments for rent. Now I´m looking for a easy solution for DISABLED_DATES. If the rooms are booked they should´t be booked again. My idea is an extra file where the disable_date includes and every new booking will be added in this file. After adding must the file be uploaded... Has anybody a good idea? Thx for help!

Calendar Discussion
by theinfor
2009-07-31 10:55

conflict css

Calendar Discussion
by theinfor
2009-07-31 10:56

how to fix confict css problem

Calendar Discussion
by theinfor
2009-07-31 13:19

somebody help me ? i have a problem like 175, when i want to show popups at bottom then it align above.

Thanks

onmousedown
by Max
2009-08-04 16:18

Hello! I want calendar popup window to appear at the moment when a user put the pointer onto inputField. I guess this could be realized with onmousedown=" " event, but I don't know how. :( Could you help me?

Re: onmousedown
by Scott
2009-08-04 21:06

have you tried giving the input box an id and putting that in the setup code:

button : "cal_input"

Re: onmousedown
by Max
2009-08-05 00:49

Yes! It works! :) I simply put the same option for trigger as for my inputField.

<script> Calendar.setup({ inputField : "field_name", trigger : "field_name", }); </script>

Calendar Discussion
by Rafael
2009-08-05 17:32

Hello... This calendar have the possibility to add links to the dates?

For example, click on the day 5 of march and open a page of my choice.

Thanks

Calendar Discussion. Ability to select Week range
by Hery
2009-08-06 13:16

Hi. I found this calendar the most beautiful/useful I never found but it may help if you can add a small feature : an option to enable week range selection and/or a specific week.

Thanks

Hery

PS : Could your work be distributed in a ruby on rails plugin ?

Re: Calendar Discussion. Ability to select Week range
by Hery
2009-08-06 13:45

Hmm sorry, I mean by a ruby on rails plugin that I will try to make it (it is not a request). And if I will be allowed to distribute it.

Re: Calendar Discussion. Ability to select Week range
by Mihai Bazon (page author)
2009-08-06 13:54

Nope, sorry, the current licenses forbid redistribution as part of a developer library, be it commercial or open-source. If it's a commercial product that you intend to make money with, we can probably reach an agreement -- please use the contact form.

Calendar Discussion
by thieuma
2009-08-07 03:15

Hello,

How I can do when I click one date on the JS calendar, that write automatically the date selected ?

Thanks You Best Regards Mathieu

Re: Calendar Discussion
by thieuma
2009-08-07 22:18

one precision, in fact, I want to reload my page with the date selected without click on a button : I want to select the date on the calendar and go to my page with the date selected in parameter and I want anything example that talk of that.

Sorry for my poor english but I'm a french. thanks you

Re: Calendar Discussion
by Rodrigo Kamenach
2009-08-18 21:28

I would like to know if have possibity to add link in a day, help please

Calendar Discussion
by VooDoo
2009-08-07 13:01

Hello, First thanks a lot for this wonderful calendar! I have 2 calendar on my page, one DepartureDate, and the other one ReturnDate. I would like to link both calendar for a logical purpose. If i select 01/01/2010 on my start date, I would like the return calendar opening in 01/2010? Is this achievable? I have tried with a simple js function that copy the departure date into the return date on the onClick event (or others) but nothing. looks like no extra js can be added. Can you help me on this? Thanks VooDoo

Calendar Ajax Loading
by Mikhail
2009-08-07 15:06

Hello, can you help me? I have a simple page with one script onload. This Ajax script is loading content in div on my page. Calendar is one of the content. But it do not working. Help me please. How can i turn on Calendar, when it loaded on my site by Ajax scipt? Thank you!

Re: Calendar Ajax Loading
by Irwan Rivaldi
2009-09-14 08:09

hey i have the same problem. how to load a calendar inside the ajax script (div tag)?

thanks,

irwan rivaldi

Calendar Discussion
by Kees
2009-08-07 16:51

Hello,

is it possible to render only N days in a (popup) Calendar? For example only from Monday till Friday?

We would like to disable all weekend-days or maybe only Sundays, but now we have to set the opacity of the disabled dates to 0.0 and this leaves a gap in the cal : )

With kind regards, Kees

Calendar Discussion
by Gaetan
2009-08-07 18:34

Hello,

I have an js error with Internet explorer "q__data is null" but not with firefox.

where this error come from?

Best Regards, Gaetan

Re: Calendar Discussion
by Arnau
2010-02-25 13:45

Posible special character in language file ;-)

Multiple calendars on the same page cannot have different themes
by Jaime Stuardo
2009-08-07 20:49

Hello.... I found a problem with the calendar. In some situations may be necessary to have more than one calendar on a page, each one with different themes.

When that happens, the popup calendar is shown with a mixture of styles.

To solve it, I think each class name should be prefixed with the theme name, and in calendar could exist a new setup parameter called for example, "theme".

Cheers Jaime

Tabbed Panes blocking the calandar Pop up
by Shiva
2009-08-08 10:16

I am using JSCal2-1.7 to my app. It works fine in plain HTML page. But my page having tabbed panes (ditchnet.org/tabs/), With in which i have a calandar control. But here Calandar pop does not appear. What could be the problem

Anybody please help in this regard...

Regards Shiva

Calendar Discussion
by Gautam
2009-08-10 12:41

how can store date in the db.. because our date field structure is datetime...

we show the date in the this format:- new Calendar({ inputField: "start_date", ifFormat : "%B %d, %Y %I:%M", dateFormat: "%A %B %d, %Y %I:%M %p", trigger: "start_date_add_triger", showTime: 12, bottomBar: true, fdow :0, onSelect: function() { this.hide(); } what we do.... plz suggest.

Calendar Discussion
by Nithya
2009-08-10 21:13

I used the disabled function with Dynarch calendar for enabling dates in current or in future only. in Firefox it is working fine but in IE -7 it is disabling todays date also. This is the code Please advise.

<script> var today = new Date();

                      var sCal = Calendar.setup({
                        id : "startCal",
                        animation  : false,
                        align:'BR',
                        inputField : "start_date_input",
                        dateFormat : "%m/%d/%Y",
                        disabled   : function(date){
                                 if(date &lt; today){
                                  return true;
                                 }else{
                                  return false;
                                 }
                                },
                        trigger    : "start_date",
                        onSelect   : function() { this.hide(); displaySwitch('visible'); }
                     });
                   &lt;/script&gt;
Calendar Discussion
by Nicolas
2009-08-10 23:38

What happened with showtime in popup mode?? It's not working!

LEFT_CAL
by rcamargo
2009-08-11 16:37

Hi! I have a problem with the calendar and is that LEFT_CAL is not defined.

About character ı and İ
by Resul Özdemir
2009-08-11 17:40

Hi, is there anyone faced the problem about language setting with charcters 'ı' or 'İ'

Calendar Discussion
by Khurram
2009-08-12 15:32

I wanna add multi calendar on a page. It should work like this "Add Another Calendar" I wanna click on this link and a calendar should be added on the page. In this way I should be able to add as many as i want. I tried but calendar objects (button + textbox) are loading but calender is not poping up. Any Idea?

Calendar Problem
by Bert
2009-08-14 15:58

I installed WAMP local on my winxp pc. Configured the calendar function to work in joomla+virtuemart. Online it works but in WAMP, so local from a complete backup of the online site, it doesn't work. Simply no calendar is showing.

iphone compatibility
by artie
2009-08-14 17:50

Was there a solution developed since this calendar is currently not compatible with iPhone(3.0)?

Re: iphone compatibility
by Stan
2009-08-20 23:11

hi artie, funny, but on my iphone it is working fine, got version 3.0

Bug date selection
by daniel
2009-08-15 03:09

Hey, when you open the demo (http://www.dynarch.com/static/JSCal2/demo/multipleFields.html) the various popup sample the selected date shown on the final popup. We must do twice click on the button to update and display the corresponding date.

There is a workaround to avoid having to make two clicks?

Thank you

Re: Bug date selection
by Ein2015
2010-02-06 00:00

in Calendar.setup, include this...

singleClick : true,

Calendar Discussion
by stan
2009-08-17 16:10

great stuff. what I am still try to achieve: get one calendar to display more than 1 month. I know I can add multiple calendars, but let's say I would like to select a range that goes over a month, it would be nice to display the upcoming three months.

Calendar Discussion
by Hugao
2009-08-18 18:26

I wanna use js calendar implements whit ajax but it doesn't work, I try to use:

<input name="fecha" type="text" id="fecha" readonly="readonly">

<img src="images/img.gif" id="f_trigger_c" style="cursor: pointer; border: 1px solid red;" title="Selector de Fechas" onMouseOver="this.style.background='red';" onMouseOut="this.style.background=''" />

<script type="text/javascript"> Calendar.setup({ inputField : "fecha", ifFormat : "%Y/%m/%d", button : "f_trigger_c", align : "Tl", singleClick : true }); </script>

but the calendar not display, please somebody help me

Calendar Discussion
by Martin
2009-08-19 16:29

Hi there. Is it possible to refer another css-class to first and last day of my selection? I don't get it right!

The Problem. We want to let a holiday home. On date of departure another guest can check in in the Afternoon. So we want to show him in the calendar the date of arrivel and departure, so that he can book the house for a half day.

Please help So we need another class different from "DynarchCalendar-day-disabled"

One-or-None Selection Mode
by Rich
2009-08-21 00:53

Is there any way to effect a "one-or-none" selection mode? That is, the calendar would behave as it does for Calendar.SEL_SINGLE, but ctrl-click would deselect the date as it does for multiple selection.

Calendar Discussion
by Ganesh Kumar
2009-08-22 08:07

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date

Calendar Discussion
by Ganesh Kumar
2009-08-22 08:09

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date in IE 7 only i have this problem. i think most of them having this problem. i am using jscalendar-1.0

please give me idea?

Calendar Discussion
by Ganesh Kumar
2009-08-22 08:10

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date in IE 7 only i have this problem. i think most of them having this problem. i am using jscalendar-1.0

please give me idea?

3 inline calendars
by Adam
2009-08-24 10:34

Hi, first of all thank you for this calendar. I'm trying to implement 3 inline calendars on the same page. 1st calendar has current month(August), 2nd (September), 3rd (October). What I'm really trying to do is to get 2nd and 3rd calendars to be loaded as described above with an increment by 1. This is the second day I'm trying to get this to work. Could you please assist me. Kind Regards

Re: 3 inline calendars
by stan
2009-08-25 09:41

hi Adam, painfully looking for this to, see reply 316. if you have any solution, post it here. I've been breaking my head for multiple days now, cannot figure it out..

Re: 3 inline calendars
by Mihai Bazon (page author)
2009-08-25 10:33

I have put a demo here: 3-months.html. Hope this is what you wanted. I will include it in the next version.

It wasn't that hard, but I must admit that the documentation lacks some information that would be needed (most notably the arguments received by onChange). I will try to update the documentation.

Re: 3 inline calendars
by Adam
2009-08-25 12:33

Thank you very much for your reply, the new code you've provided will assist me greatly in learning new techniques that will surely come handy! Stan and everyone else who is interested below is the code I've came up with today! The only thing that this code missing is when selecting a date on the next month's calenar it doesnt deselct the date on previous month. But I might get an idea from a new code posted by Mihai! I;ll keep you guys posted. Thanks again !!

<script type="text/javascript"> function calSetupMul() { var date=new Date();

var month=date.getMonth()+1;
var day=date.getDate();
var year=date.getFullYear();
var minDate=new Date(year, month-1, 1);
var maxDate=new Date(year, month, 0);

var cal = Calendar.setup({
 cont          : "calendar_wrapper1"  ,
 selection     : Calendar.dateToInt(new Date()),
 min: Calendar.dateToInt(minDate),
 max: Calendar.dateToInt(maxDate),

 onSelect      : function() 
 {
      var tds=Calendar.intToDate(cal.selection.get());
      showSchedule(Calendar.printDate(tds,"%Y-%m-%d"));
   }

}); minDate=new Date(year, month, 1); maxDate=new Date(year, month+1, 0); var cal2 = Calendar.setup({ cont : "calendar_wrapper2" , date : Calendar.dateToInt(date), min: Calendar.dateToInt(minDate), max: Calendar.dateToInt(maxDate), onSelect : function() { var tds=Calendar.intToDate(cal2.selection.get()); showSchedule(Calendar.printDate(tds,"%Y-%m-%d")); }

}); minDate=new Date(year, month+1, 1); maxDate=new Date(year, month+2, 0); date=new Date(year,month+1,day); var cal3 = Calendar.setup({ cont : "calendar_wrapper3" , date : Calendar.dateToInt(date), min: Calendar.dateToInt(minDate), max: Calendar.dateToInt(maxDate), onSelect : function() { var tds=Calendar.intToDate(cal3.selection.get()); showSchedule(Calendar.printDate(tds,"%Y-%m-%d")); }

});

} </script>

Re: 3 inline calendars
by Adam
2009-08-25 12:35

Sorry forgot to edit some stuff in the code, showSchedule is my custom function, just replace it with 'alert' or anything you like;)

Re: 3 inline calendars
by Adam
2009-08-25 12:53

Here's a link to my example. Please not that I've locked some dates intentionally.

http://www.tmtservices.com/test/3-inline.php

Re: 3 inline calendars
by stan
2009-08-25 13:42

hi Mihai

right on the money. Not able to check right now, is the shift-button working across those multi calendars? (I am using the two click calendar: click one, start date, click two, end date.)

Re: 3 inline calendars
by Mihai Bazon (page author)
2009-08-25 13:52

Nope, shift+click won't work... The calendars are individual.

This could be done but it definitely requires some changes to the calendar code. I'll think about it.

Problem with minuteStep - bug solved
2009-08-24 18:13

I really like your calendar... is the most usable of all... congrats... but I found a annoying bug with 'minuteStep' param used for adding minute, when 'minuteStep' is different than 5.

When different, in my case '1', i got a wrong number of minute.

The problem is in the function 'function N(D)' (that adds ou decrease a vale from time). When I add, this case is used:

this.setMinutes(this.getMinutes() + this.args.minuteStep);

but the 'this.args.minuteStep' is a String, and when a use '+' function, the function threats this.getMinutes, a normal int, as a String and make a normal append.

the solution is the use of 'parseInt':

this.setMinutes(this.getMinutes() + parseInt(this.args.minuteStep));

See ya!

Diego

Calendar Discussion
2009-08-26 01:03

Hi!

I'm looking for a JS Calendar plugin which I can set up an array of dates that should be disabled from selecting.

Is it possible?

onSelect event handler
by Adrian
2009-08-26 02:10

Calendar.setup({ trigger : "btnFecha", inputField : "txtFecha", dateFormat : "%d/%m/%Y", onSelect : function(){ this.hide(); } });

It only change the inputField the first time.

Calendar Discussion
by SLYM
2009-08-27 12:35

Hi!

I just found your calendar and I like it very much, but I wanted to ask you if it's possible to separate the time part from the date part?

Because in my case, I have to choose a date (Just one date) but I also need to choose 2 different times for the same date.

So i wanted to know if I can separate the time picker to use it separately ?

Calendar Discussion
by guatam
2009-08-31 10:49

How to set hours and time in calender.

Calendar Discussion
by Tapan
2009-08-31 13:16

Hi all,

I am using this calendar with ditchnet jsp tabs tag library. Its showing an error there,

Calendar Discussion
by Tapan
2009-08-31 13:21

Hi all,

I am using this calendar with ditchnet jsp tabs tag library. Its showing an error there, "addEventListner is null or not an object" but in jsp with same code its working fine,

Is it not supporting this tab tag library.

please if anyone can answer this.

Re: Calendar Discussion
by Mihai Bazon (page author)
2009-08-31 14:46

I haven't even heard of "ditchnet jsp tags", but the calendar is independent of any libraries and shouldn't create any conflicts, since all the functions and variables that it uses internally are hidden from outside code. If it doesn't work, you must be doing something wrong...

Re: Calendar Discussion
by Tapan
2009-08-31 15:12

Hi Author,

This is the code i m using:

For ditchnet we need to import a jar file. When i remove the ditchnet tags its working, else an error occurs saying: "ar is undefined --> Mozilla" "addEventListener is null or not an object --> IE 7"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page contentType="text/html" %> <%@ taglib prefix="tab" uri="http://ditchnet.org/jsp-tabs-taglib" %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

  &lt;link type="text/css" rel="stylesheet" href="../css/jscal2.css" /&gt;
  &lt;link type="text/css" rel="stylesheet" href="../css/border-radius.css" /&gt;

  &lt;script src="../styles/jscal2.js"&gt;&lt;/script&gt;   
  &lt;script src="../styles/en.js"&gt;&lt;/script&gt; 

&lt;link type="text/css" rel="stylesheet" href="../css/marune.css" /&gt;

&lt;tab:tabConfig /&gt;

</head>

<tab:tabContainer id="foo-bar-container">

&lt;tab:tabPane id="foo" tabTitle="Foo!"&gt;
  This is tab 1 
&lt;/tab:tabPane&gt;

&lt;tab:tabPane id="cal" tabTitle="Calendar"&gt;
  This is tab 2
  &lt;table&gt;&lt;tr&gt;&lt;td&gt;   
    &lt;input type='text' id="sDateProf" name="sDateProf" value="" size='10' readonly /&gt;&nbsp;
    &lt;input type='button' id="sdCal" name="sdCal" class="buttonNoMargin" value="..." /&gt;

      &lt;script language="javascript"&gt;

    new Calendar({
                     inputField   :   'sDateProf',
                     dateFormat   :   "%Y-%m-%d",
                     trigger    :   'sdCal',
                     bottomBar    :   true,
                     onSelect   :   function() {
                                          var date = Calendar.intToDate(this.selection.get());
                                          this.hide();
                                      }
             });
&lt;/script&gt;
  &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/tab:tabPane&gt;

</tab:tabContainer> </html>

link to ditchnet: http://ditchnet.org/tabs/

Please reply to my query.

Re: Calendar Discussion
by Tapan
2009-08-31 15:14

I m sorry, while posting the contents are not properly displayed

Problem on IE8
by Rod
2009-09-02 12:29

Hi all,

a user is getting an "object required" error on IE8 although I tested it successfully on IE 8.

Here is the error details the user sent to me:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2) Timestamp: Wed, 2 Sep 2009 08:17:41 UTC

Message: Object required Line: 11 Char: 6142 Code: 0 URI: .../JSFiles/calendar/js/jscal2.js

I went to the indicated position into the js file. The code i found there is:

"if(this.selection.type==y.SEL_SINGLE){var aw,av,au,at;aw=/input|textarea/i.test(P.tagName)?P.value:(P.innerText||P.textContent)"

Any help will be appreciated

Rodrigue

Is it possible to display multiple months in the calendar?
by Sandeep
2009-09-02 13:12

Is it possible to display two months simultaneously in this calendar control? If so how could we achieve that?

Time selector issues
by pcarini
2009-09-03 01:53

Hi,

I've come across the following issues with the calendar: 1) The calendar appears to have trouble parsing this dateFormat: '%Y-%m-%d %H:%M:%S'. The calendar will correctly output this format into a specified inputField, but when popped up again, it has no selection.

2) Changing the selected time in the time selector doesn't update the inputField value, even though changing the date does.

I encountered both of these issues on a page containing a html input named 'schedule_date' and the following Calendar.setup params:

{ selection: Calendar.dateToInt(new Date()), bottomBar: false, min: Calendar.dateToInt(new Date()), inputField: 'schedule_date', trigger: 'schedule_date', dateFormat: '%Y-%m-%d %H:%M:%S', showTime: 12/* , onTimeChange: function(cal) { // BUGFIX: jsCal2 doesn't automatically update inputField when the time changes. // BUGFIX: Manually updating inputField when time changed. cal.date.setHours(parseInt(cal.time / 100)); cal.date.setMinutes(cal.time % 100); cal.inputField.value = Calendar.printDate(cal.date,cal.dateFormat); }*/ }

Note that uncommenting the onTimeChange value has no effect on issue 1) but fixes issue 2).

Thanks much, -pcarini

Re: Time selector issues
by pcarini
2009-09-03 19:56

Here is my workaround for the date+time date format, as a monkey patch:

  var func_calendar_parseDate = Calendar.parseDate;
  Calendar.parseDate = function(dateString,monthFirst,today)
  {
    dateString = dateString.split(' ')[0];
    func_calendar_parseDate(dateString,monthFirst,today);
  }

Of course this will only work for my specific date format, but I thought I'd add it here for the sake of completeness.

Much thanks for your work on this calendar! -pcarini

Insert Date in mysql
by wxipn
2009-09-03 10:31

Hello, i'm trying to insert the date with the demo "rangeSelection" but how can recover my date for php ? Thanx

Re: Insert Date in mysql
by shim
2009-09-11 08:02

I also have the same problem..Please help me...

Calendar Discussion
by skynet
2009-09-03 17:11

I can't disable range of events. Ex: i have events 09/03/2009 - 09/10/2009,10/01/2009-10/03/2009,so on.. How to do that? Please reply me soon!

Date validation
by Mikal
2009-09-04 11:35

Hi im using the JS calender in a project im working on and iis there a way th was wondering if there was a way to validate the date input.Currently im doing the same using spring.Any feedback would be greatly appreciated.Thnks :)

Disable date
by Skynet
2009-09-05 21:19

hi! how i can disable weekeend and some events? please reply me soon! thanks so much!!!

Calendar Discussion
by Martie Rovers
2009-09-06 21:06

Hello, Can you use this callender in Joomla, and how to do this, your old version is used in com_mad4joomla can i upgrade to the new version ? I think it is a good product.

Calendar in an AJAX Environment
by Peter Budd
2009-09-07 06:13

Hi,

I have a webpage where the calendar is to appear on a div panel at some point after the page has finished loading via AJAX.

I notice there has been a couple of other people with the same problem, but there isn't any solution yet, any help?

Calendar Discussion
by Kris
2009-09-08 03:58

Hi, I'm testing this on your demo page.

Issues with Google Chrome:

1) Keyboard support does not appear to work.

2) Shift-Click only selects a date range when the end date is less than the first/start date selected.

PS. Would be nice if I can click and drag to select a date range.

If I can get it working perfectly in IE8 and Google Chrome I'd be very happy.

Re: Calendar Discussion
by Kris
2009-09-08 04:12

Okay, so I just saw your notice about keyboard support not working yet in Google Chrome - do you have an estimate when this will work?

The Shift-Click date range is still not working for me though in Google Chrome. Is this a known problem?

BTW, it looks great!

Calendar Discussion
by Efren
2009-09-10 01:01

i downloaded the code along with the demo page, which works fine,

but when i am trying to use it in a page with multiple dates, EX start date, closing date etc....the calendar pops up fine and i am able to select the date and the field gets filled but once i open any other calendar it wipes out the previous field. this does not happend in the oringal demo code...

but even if a copy paste the input fields and javascript object...still happens the same date value gets wiped out in the previous calendar selected.

any thoughts?

Got an error `NaN` in calendar
by Naveen Kumar Jain
2009-09-10 09:01

Hi Guys,

I am using this calendar in my site. but I got an error like 'NaN' when I click on same date which I selected last time.

can anyone solve this problem? If yes then please help me.

Thanks Nj

Calendar Discussion
by amit
2009-09-14 10:05

The calendar control is just great. I want to add a drop down at the bottom of the calendar. This will basically decide whether to return MM/DD/YYYY or MM/YYYY. How can I do that? please Help

Calendar Discussion
by Ravi
2009-09-14 16:07

how to block the date and month in JS Calendar when user select the previous date and month

Calendar Discussion
by Antonis
2009-09-14 17:38

Hi all, I have a question. is There any configuration in the calendar so that i can create a drop down list for the years, instrad of select one year at a time? when i press the year buttons?

Calendar Discussion
by Morrers
2009-09-17 21:12

Offline work the calender perfect, but if i load the files on my webspace with php5 the calender don't popup. (the path is correct)

Thanks for help Morrers

Calendar Discussion
by Bodo
2009-09-18 18:16

regradin comment 168/170: I have same problem, that event handler onchange doesn't work. When I change date with your GREAT widget (THANK YOU!) it writes the date in to the textfield with onchange - nothing... Is there any solution (unfortunately I couldn't find any) Thanks.

Calendar Discussion
by adrive
2009-09-20 02:17

Hi. I have the same issue as described in comments 160 and 161. I tried it in firefox 3.0 and in the latest chrome, but the issue still exists.

Calendar Discussion
by Michael
2009-09-20 04:21

I would like to use your work as part of an events calendar where days having events would get highlighted. Clicking on the day would emit a table of events that occur on that date elsewhere on the page. Ideally everything would be self contained and the events list would be stored in XML. Have you thought about extending this project in that direction?

Calendar Discussion
by 0cool.f
2009-09-21 19:52

Can someone fix some bugs of jscal2.js and upload this file for other guy???...plz With IE 6 don't work for me...but with Chrome it's all perfect ;)

IE6 Select Box Issue
by Michael
2009-09-22 18:18

Has anyone solved the issue with a popup JSCal2 overlapping a select box in IE 6?

We had a solution for JSCal1 where the select boxes were hidden as the calendar is dragged over them, but have found no such solution for JSCal2.

The contents of a sample page are shown below that show the error. Just place this page in a directory that also contains the unzipped JSCal2-1.7 folder

ie: <html> <head> <link rel="stylesheet" type="text/css" href="./JSCal2-1.7/src/css/jscal2.css"> <link rel="stylesheet" type="text/css" href="./JSCal2-1.7/src/css/steel/steel.css"> <style type="text/css">.calendar { z-index: 99 }</style> </head> <body onLoad="init();">

&lt;ol&gt;
  &lt;li&gt;&lt;input name="myDate" id="myDate"&gt; &lt;/input&gt; &lt;span id="myDate-trigger"&gt;Trigger&lt;/span&gt;&lt;/li&gt;
  &lt;li&gt;
    &lt;select name="mySelect" id="mySelect"&gt;
      &lt;option&gt;- Select One-&lt;/option&gt;
      &lt;option&gt;Option 1&lt;/option&gt;
      &lt;option&gt;Option 2&lt;/option&gt;
    &lt;/select&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;script type="text/javascript" src="./JSCal2-1.7/src/js/jscal2.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="./JSCal2-1.7/src/js/lang/en.js"&gt;&lt;/script&gt;

&lt;script&gt;
function init() {
  Calendar.setup( {
     trigger:    "myDate-trigger",
     inputField: "myDate"
  });
}
&lt;/script&gt;

</body>

Content Types (application/xhtml+xml vs. text/html)
by Overkill
2009-09-22 20:54

Hello and thanks for providing your excellent calendar.

I'm trying to implement it on a XHTML 1.1 site which sends a content type of 'application/xhtml' in all the page headers.

I get an "undefined enitity" and "uncaught exception" error on the FF3 error console which points to an innerHTML statement in your code(?) near <p class='DynarchCalendar-menu-sep'> </p>, but I'm unsure if this is the real issue (the <p> looks ok to me).

If I change the content type (in the header) to 'text/html', the calendar works ok.

Of course I'd rather not change the content type of the entire site as the itef recommends sending application/xhtml for xhtml compatible browsers.

Thanks again. Any help is apreciated.

Re: Content Types (application/xhtml+xml vs. text/html)
by Mihai Bazon (page author)
2009-09-22 20:58

Known problem, but unfortunately not easy to fix. See this.

Re: Content Types (application/xhtml+xml vs. text/html)
by Overkill
2009-09-22 21:24

Thanks for the quick response (I'm really impressed!). I guess I'll try a text/html workaround on the page I want to use your calendar.

Thanks again.

Calendar Discussion
by china.wei
2009-09-23 09:54

Hello and thanks for providing your excellent calendar. I'm trying to resize the calendar but i don't know how to do this Can you give me some advise, Thanks again. Any help is apreciated.

Ask Calendar to Select a particular day(s)
by yu
2009-09-23 10:22

I'm sorry if I missed something. Can I tell the calendar to select a day(s) or few? I have a calendar in the first page for user to select the day(s) and have another in the second page for user to modified the selected day(s).

Problem on IE8
by Rod
2009-09-23 11:59

hi

i have the following strange problem. I integrated your great calendar in my application. Although works on IE8 without problem during the test, an error occurs when a unique user (since it works on other machine with IE8). His IE8 shows the following error: <i> <b>Object required</b> jscal2.js Line: 11 code: 0 char: 6142 </i>

Since the same code work on others machines with IE8, i suppose the problem could only be on his environment. I looked at the IE8's release number, and it's the same like mine.

Do somebody know what thing i should still verify?

Any help would be appreciated

Thanks

Problem on IE8
by Rod
2009-09-23 12:00

hi

i have the following strange problem. I integrated your great calendar in my application. Although works on IE8 without problem during the test, an error occurs when a unique user (since it works on other machine with IE8). His IE8 shows the following error:

Object required jscal2.js Line: 11 code: 0 char: 6142

Since the same code work on others machines with IE8, i suppose the problem could only be on his environment. I looked at the IE8's release number, and it's the same like mine.

Do somebody know what thing i should still verify?

Any help would be appreciated

Thanks

Calendar Discussion
by 0cool.f
2009-09-24 12:42

This tool need more compatibility with more browser... We must do something...

IE6 Select Box Issue
by Michael
2009-09-24 17:36

I've come up with a fix to the IE6 select box issue (select boxes in IE6 show through the calendar).

Just place this code in any of your javascript files, and add the css indicated... it is fairly unobtrusive, as it does not require any changes to the jscal2.js file itself (it just wraps the showAt function in the Calendar object).

Note that my site uses YUI, so I use YUI for certain dom manipulations and for browser sniffing. If you don't use YUI, it should be fairly obvious how to modify the code to make it either use your library of choice (prototype, jQuery, etc), or make it independent of other libraries at all

/** * The following anonymous function applies a fix to Dynarch JSCal2 for the IE6 select * problem. Upon the first call to showAt() of any calendar in IE6, it will apply an * iframe to the calendar which hides select boxes underneath. */ (function() { // Declare some local variables for brevity of code var ie = YAHOO.env.ua.ie, Dom = YAHOO.util.Dom, FIX_APPLIED_CLASSNAME="fixApplied", IFRAME_SHIM_CLASSNAME="shim";

  // Only Apply the fix for IE6
  if (ie &gt; 5 && ie &lt; 7) {
      // Function which applies the fix
      var applyFix = function() {
              var calendars = Dom.getElementsByClassName("DynarchCalendar", "div"), i, calendar;
              for(i=0; i&lt;calendars.length; i++) {
                  calendar = calendars[i].parentNode;

                  // Only apply the fix once.  We keep track of this by simply putting a FIX_APPLIED_NAME
                  // class on the calendar element and checking for it
                  if(!Dom.hasClass(calendar,FIX_APPLIED_CLASSNAME)) {

                      var shim = document.createElement('iframe');
                      shim.src='about:blank';
                      shim.className = IFRAME_SHIM_CLASSNAME;

                      Dom.setStyle(shim,'height',calendar.offsetHeight);
                      calendar.insertBefore(shim, calendar.firstChild);
                      Dom.addClass(calendar,FIX_APPLIED_CLASSNAME);
                  }
              }
      };

      // Wrap the Calendar showAt function so that after calling the calendar's showAt function,
      // call our applyFix function
      var showAt = Calendar.prototype.showAt;
      Calendar.prototype.showAt = function(a,b,c) {
          showAt.call(this,a,b,c);
          applyFix();
      };
  }

})();

iframe.shim { position: absolute; top: 0; left: 0; width: 100%; margin: 0; padding: 0; border: 0; z-index: 0; }

Re: IE6 Select Box Issue
by Vladimir
2009-09-28 11:38

Thank you Michael!!!

Calendar Discussion
by bplgm
2009-09-25 18:42

I am thinking about using your calendar, it is a great app. Thanks.

I have been able to get it working with IE but not with firefox. It keeps saying P is null. Could someone help me with this. My code to create an instance of calendar is as below:

<button id="calendar-trigger" type="button"><img src="css/img/cal.gif" alt="show cal" border="0"></button> <script type="text/javascript">//<![CDATA[ Calendar.setup({ inputField : "testDate", trigger : "calendar-trigger", dateFormat : "%m/%d/%Y", min: 19000101, selection : Calendar.dateToInt(new Date()), max : Calendar.dateToInt(new Date()), onSelect : function() { this.hide();document.forms[0].elements['testDate'].focus()}

              });
              //]]&gt;&lt;/script&gt;

Thanks

Re: Calendar Discussion
by Nathan
2010-04-13 13:57

To fix this, you just need to move the trigger input and button above the script that calls the calendar :)

Modalbox
2009-09-25 20:41

Hello, thanks for providing your excellent calendar. I'm trying to use the calendar in moodalbox but i don't know how to do this. Can you give me some advise, Thanks again. Any help is apreciated.

Calendar Discussion
by Eric
2009-09-27 06:19

Similar to comment #190, I want the calendar to appear when the user enters the input field. The suggested solution works, but I want to show the calendar when the user clicks a button/image next to the input field also.

I want the user to be able type in the date or select it from the calendar. Setting the trigger to the input box doesn't let the user type the date. So I'd like to set the trigger equal the button/image and then show the calendar on the focus of the text input. But when I do this, on the focus of the text input, the calendar shows up, but the text input doesn't get updated with the date selected in the calendar.

Suggestions?

<input name="calendarInputField" type="text" id="calendarInputField" onfocus="cal.popup(document.getElementById('clientTrigger'), 'Bl/ / /T/r');" /> <img src="/images/icon_calendar.gif" id="clientTrigger" />

<script type="text/javascript"> var cal = Calendar.setup({ trigger: 'clientTrigger', inputField: 'calendarInputField', onSelect: function() { this.hide(); } }); </script>

Calendar Discussion
by 0cool.f
2009-09-29 16:53

If tou go to http://jsbeautifier.org/ and use the jscal.js beautified, IE give this error: row 1686 char 3 object expected pls help!!!

P.S. Sorry for my bad english, but i'm italian ;)

Re: Calendar Discussion
by kilkul
2010-11-28 19:29

Lol - you want help in hacking this library? How lame are you?

Calendar Skin
2009-09-30 02:19

Hi, Thank you for the great tool you have done! I inherited a project and that project used the old tool, so I'm updating it to the new tool and I managed to get the calendar showing up and select a date but I have two issues. The skin on the calendar is for some reason not taking the css if I set matrix or steel. The calendar still displays the inside with a black background as my form but the borders in silver and the days are black as well except of the other months. How can I force a css style. The calendar is a popup not inline btw. The second issue is I want to restrict the selection of the date. They cannot select today or any past date. Any ideas how can I implement this. Is this check on the on select event? Any help is appreciated. Thanks. Jorge V.

Re: Calendar Skin
by Jorge V.
2009-10-02 01:09

Hi,

I managed to set the dates on the calendar and the skin, this examples on the discussion board have good info, it's just a matter of taking some time to find the pieces that apply to my project. Thanks. JV

Calendar Discussion
by nore
2009-09-30 10:37

what is substituted for dynarchpopupCalendar ? I know that might happend in earlier versions, but i'm following a tutorial that uses the dynarchpopupCalendar variable and it fails. What is it called now?

css
by Vladimir
2009-10-01 15:30

Hi, I tried to use JSCal2 but unsuccesfully and problem is in css. I am using css from blueprint.org and when I add calendar to my page, calendar after pops up is as wide as whole screen. I tried to search, where is problem, but no success.

Btw, older version (1.0) works on the same page correctly.

Thanks, Vladimir

Can abybody help me to modify css, please?

Calendar Discussion
by Luis Rojas
2009-10-02 02:32

Problemas con Calendar e Internet Explorer.

Buen díaa todos.

Haber si pueden ayudarme, resulta que implemente JSCal2 en un sitio que estoy desarrollando y el problema que se me presenta es en Internet Explorer cuando se muestra el popup del calendario sobre componentes <input:select>, estos componenetes se sobre ponen ante el calendario, es decir los componenetes select se ven encima del calendario, ¿Alguien podría ayudarme?

Gracias.

Get Week Number
by Omar
2009-10-02 03:38

Hi,

How do you get the week number for a month. For example, there is a function that is getDay(), but no getWeekNumber(). I need to disable certain weeks in my calendar.

Calendar Discussion
by mikkro
2009-10-02 09:51

HI, How can I send the date selected in a URL like this : myurl.php?datesend="+ dateselected +" in a flat calendar

thanks

Re: Calendar Discussion
by ryuk
2009-10-02 11:24

I'm using a default css for my pages, but when using the calendar in a page, it's messed up because of my default css. So is there anyway around that?

Calendar Discussion
by Nuri Cevik
2009-10-02 16:16

I was testing Jcal2 to use as date and time pick on one of my applications but I faced with a challenge, if your input field has a date and time value on its value field, calendar does not display the correct date. Like : "08/08/2009 01:00 AM" always displays December 2009 calendar. It does not show the same behavior if you only have date - not time - on input value field. Is there a work around for it.

Thanks in advance

Nuri

Popup selection bug
by Tom
2009-10-06 23:33

I am trying to use the calendar as a popup with an input. All works fine except one small thing. If the input contains a date (typed or hardcoded in html) the first showing of the calendar sets the calendar to he right month but the day stays unselected. If I close the calendar and open it again the day is marked properly. Seen in FF 3.0.14, 3.5.3 and IE 6 (so it doesn't seem to be a browser issue). I tried setting the date and selection but the effect is the same. Anyone has an idea why this is happening?

Calendar Discussion
by prathiba
2009-10-08 08:49

Hi, I have a requirement like this. just take an example. in December , 31st of Dec. comes Tuesday. 1st of January comes Wednesday.so week number would be 53 for this week. so i need to isolate week at 31st December. upto 31st i need to take a separate week. from 1st of January i need to take another separate week. in that case, definitely week number is 1 from January 1st. hope u will understand this requirement. if not, i'll try to explain more. what i want to know is , is it possible to do this with this calendar.

Thanks, prathiba.

Problem at 24 format time
by Dmitry
2009-10-12 02:15

When 24 format time in calender i can't select time like 00:01, 00:34, etc. JSCal2 replace 00 to 12 in input field! Anybody have solution? Or dear developer can fix it?

Problem with Calendar
by Fabian
2009-10-12 12:38

Hey,

I think there is a problem with the jscal2 1.7. If somebody changes the time (after the date is set) the inputfield doesn't be updated.

Regards

Calendar Discussion
by XTender
2009-10-13 10:12

Dmitry, just find and delete this: "||12" in script.

Could anybody help me with those trouble: Calendar created with:dateFormat: "%d.%m.%Y %H:%M". At the first popup calendar opened normally(today). After selecting any date not in december and closing, inputfield filled normally, but on second and other popups calendar opens on december. Code u may see on http://paste.org.ru/?6gahw8

Calendar Discussion
2009-10-13 16:08

Hi all, i have problem when this script integrated in ASP.Net Page due to post back action Calender.setup method not run.. what is solution on this..please reply quickly...

Calendar Discussion
by XTender
2009-10-14 04:41

UPD: this trouble only in google chrome. But before closing in title ~one second wrote "NaN"(onselect-this.hide)as in IE as in chrome.

Calendar Discussion
by Leo
2009-10-15 00:34

Hi, ths is a great calendar! I've found a odd bug: When you select a date on a popup calendar the 3rd sunday of october is repeated. Thanks. Leo.

Re: Calendar Discussion - Bug with DST, March, October
by Ryan
2010-02-04 20:45

Hi, I believe this relates to a bug which hasn't been fixed concerning when you crossover in to daylight saving time. I don't recall the exact way to reproduce it, but I seem to remember it occurs when your current date is after March 9th but before October, and possibly when trying to find dates after October..

Anyway, the guy here seems to have found the solution: http://jira.atlassian.com/browse/JRA-14952 This should fix the version 1.0 script anyway.. I'm hopeful, got to wait until after March to see if I notice the issue anymore.

Non-Free Calendar
by Lynx
2009-10-15 15:14

I'am very sad to learn that the calendar I used in many opensource project is not free anymore. For me unfortunately this is a no-go.

Re: Non-Free Calendar
by Mihai Bazon (page author)
2009-10-15 20:46

That one is still free, just no longer maintained.

Calendar Time not updating.
by marius
2009-10-15 15:33

I am using the following setup for the calendar.

new Calendar.setup({ inputField : "f_date", trigger : "f_trigger", dateFormat: "%B %e %Y, %l:%M %P", bottomBar: true, showTime: 12 });

Lets say the date is October 15th, and the time is 3:35 PM.

I select the date first, October 15th, and then i select the time , 9:00 PM; the value in my date field will be : October 15th 3:35 PM, and not October 15th 9:00 PM, as it should.

The time changes only if i set the time first, and then click on the date.

Am i doing something wrong in the settings ? Is this a BUG ? Is there another way to do what I need ? Because this is the native way for any user to select the date and time, since the time is at the bottom of the popup.

Re: Calendar Time not updating.
by marius
2009-10-15 15:36

Mihai, intelegi care este problema mea in postu asta ?

Ms mult.

Calendar Time bug
by Manu
2009-10-16 20:20

Hello,

When I have a dateFormat like this:

%Y-%m-%d %H:%M:%S => 2009-10-16 19:20:00

My Calendar show December instead of October. The problem is the ':' because when I delete the ':' or remplace by '-' this work... How can I fix it while keep this syntax ?

Calendar Day Bug (October 19th)
by Phil
2009-10-19 19:54

Hello,

I found a bug. When I select a day from October, the calendar shows two October 10th (tested on FF3 and IE8), and it's the same with the demo you've implemented on this page.

I don't know if this is happening this month only, or even if tomorrow the problem will be solved with the change of current date.

Any suggestions? Thanks in advance.

PD: Great job, by the way!

Re: Calendar Day Bug (October 19th)
by Ryan
2010-02-04 20:46

Hi, I believe this relates to a bug which hasn't been fixed concerning when you crossover in to daylight saving time. I don't recall the exact way to reproduce it, but I seem to remember it occurs when your current date is after March 9th but before October, and possibly when trying to find dates after October..

Anyway, the guy here seems to have found the solution: http://jira.atlassian.com/browse/JRA-14952 This should fix the version 1.0 script anyway.. I'm hopeful, got to wait until after March to see if I notice the issue anymore.

Calendar Discussion
by Raul
2009-10-19 19:59

Hello everyone.

First of all, congratulations for your work, i love jscal2, i thinks it's great.

Im trying to solve a bug on firefox and IE8 that shows up only on the month of october.

After picking a date, the day 2009-october-10 appears twice and all the calendar messed up.

It's not only me, the demo calendar have this problem too.

Is this actually a bug??

This problem seems to be pretty ugly.

i hope this report can help you to make jscal2 even better

Thanks a lot

Calendar Discussion
by Seth
2009-10-19 22:34

i am looking for a calender (date selector) for my reservations form. i need something that when a specific date is selected, it also allows a time selection. but i need it to be customizable where only certain times are available for certain days. can this calender do that? if not, do you know of one that can? Thanks, Seth

Calendar Day Bug (October 19th)
by Thomas Hansen
2009-10-20 00:23

Same problem here. If you select a date (let's say, today), it duplicates date 2009-10-17 on saturday and sunday.

Found the same bug on 1.0 version.

Any clue?

Re: Calendar Day Bug (October 19th)
by Ryan
2010-02-04 20:48

See my post above, I believe that might fix it.

Wed Oct 20 2009 or Tue Oct 20 2009
2009-10-20 06:44

I dont know why when the calendar starts, it show that Oct 20, 2009 is a weekday WED, but when it should be on TUE.

Same happens on my site, but when I click the calendar for the second time, it fixes the calendar in real time.

http://www.dynarch.com/static/JSCal2/index.html

My web site problem: http://www.reservame.net/sindicate/3221/standard/?IDLocal=6749iaohbksgf8xgv5e2d47ogeanl1gx2y79ixy&IDExterno=&cacheLoader=1256009473625

Any ideas?

Calendar Day Bug (October 10th)
by Felipe Bórquez
2009-10-20 14:47

I've found a bug too! When I select one date from october, it duplicates october 10th. I can see this bug in demo page too. This bug is present on the older version of dynarch calendar. I'm try to fix this bug by myself but I can't find a solution. Please if someone has fixed this problem let me know it! Thanks ;)

Re: Calendar Day Bug (October 10th)
by Leo
2009-10-20 17:22

I've found the bug source: it is displayed if you have "Daylight Saving Time" activated on your windows clock configuration, when you disable it, the calendar works fine. I hope this help to fix the bug. Thanks. Leo.-

Re: Calendar Day Bug (October 10th)
by Phil
2009-10-20 18:00

Disabling that configuration solves the problem for now... but i'd like to know if there's a way to fix this without touching the SO configuration...

Thanks anyway, Leo!

Re: Calendar Day Bug
by Thomas Hansen
2009-10-20 22:37

Great, guys, disabling daylight saving time solves the problem... but only on WINDOWS machines!!! What about those like me, who has an entire social/educational organization running Linux? or mac? Need help here, folks...

Re: Calendar Day Bug
by Phil
2009-10-21 03:09

If it's related to the clock configuration under windows, and the bug presented this month, I guess it's related with the hour change on summer/winter... we have to wait for an answer of the developer, I suppose.

Regards!

Calendar Discussion
by Gobi
2009-10-21 09:47

hi the calender was amazing,

Let anyone help me how to disable future date in the calender im using this for DOB ,so i just dont want user to pick future dates.

Thanks in advance

Calendar Discussion
by Martin
2009-10-21 17:04

ERROR:

When entering the date 21.10.2009 for example (in: http://www.dynarch.com/projects/calendar/) in section upports popup mode, then the date is displayed wrong, is 2 times the 9th

Working with window, and the error appears in Internet Explorer and Firefox

PD: sorry if anything is misspelled, use a translator. Please respond to my mail THANKS

Calendar Discussion
by Ben Kelly
2009-10-22 12:04

Hi, Love the calendar.

I am getting stuck on one thing. I need to redraw the calendar each time the trigger is called as the disabling on dates depends on a date in a text box. It seems to work fine after i have clicked it for the second time just not the first time. Code as follows:

Calendar.setup({

         trigger: "EndDateCalendarButton",
         inputField: "EndDateTextBox",
         dateFormat: "%d/%m/%Y",
         onSelect: function() { this.hide() },
         disabled: function(date) {

             var targetElement = document.getElementById("StartDateTextBox");
             var targetDate = targetElement.value;
             var dateSplit = targetDate.split("/");
             var dd = dateSplit[0];
             var mm = dateSplit[1];
             var yyyy = dateSplit[2]
             var usDate = mm + "/" + dd + "/" + yyyy;
             var myDate = new Date(usDate);

             if (date &lt; myDate) {
                 return true;
             } else {
                 return false;
             }
         }
     });
Layout broken if you have a reset rule * { padding:0;margin:0; }
by Enzo
2009-10-22 21:02

If you have this global reset rule: * { padding:0; margin:0; } Then, in the top part of the calendar, the year isn't positionned correctly between the left/right arrows.

You need to add this rule to fix it: .DynarchCalendar-titleCont { margin:auto; }

Re: Layout broken if you have a reset rule * { padding:0;margin:0; }
by Diego
2009-12-09 12:44

It has been very useful, but this fix only works in title calendar. If you want to work it in the bottom-bar and calendar-menu then you should use the same in .DynarchCalendar table class: .DynarchCalendar table { margin: auto; }

Mistake calculating the "day of the year"
by Santiago
2009-10-22 21:42

I had troubles with printing the "%j - day of the year (range 001 to 366)". It always showed 2 days less than the real day of the year.

There was a mistake when calculating the difference between: today at midnight and 01/jan at midday.

I tested like this: (today at midnight - 01/jan at midnight) + 1 day.

I think it works fine!

This is the function I had to change:

function C(D) { D = new Date(D.getFullYear(), D.getMonth(), D.getDate(), 0, 0, 0); var ar = new Date(D.getFullYear(), 0, 1, 0, 0, 0); var P = D - ar; // 86400000ms = 24hs return Math.floor(P / 86400000) + 1; }

Re: Mistake calculating the "day of the year"
by Santiago
2009-10-22 21:47

<b>Again, readable...</b>

I had troubles with printing the "%j - day of the year (range 001 to 366)". It always showed 2 days less than the real day of the year.

There was a mistake when calculating the difference between: <pre><code>today at midnight and 01/jan at midday</code></pre>

I tested like this: <pre><code>(today at midnight - 01/jan at midnight) + 1 day</code></pre>

I think it works fine!

This is the function I had to change: <pre><code> function C(D) { D = new Date(D.getFullYear(), D.getMonth(), D.getDate(), 0, 0, 0); var ar = new Date(D.getFullYear(), 0, 1, 0, 0, 0); var P = D - ar; // 86400000ms = 24hs return Math.floor(P / 86400000) + 1; }</code></pre>

October, show me 2 times one day...
by francisco
2009-10-22 23:20

Hello all, when i select 4 second time a day in october, the day 10 appears twice!

Y trying "turning off" my "Daylight Saving Time" box and it´s works well, but plase i need a real solution (by code), if somebody knows how please help me.

Thanks all.

Calendar Discussion
by alx
2009-10-25 10:39

Very nice!!! I'm amazed. Good job!

How to hide Calendar on Joomla site?
by evgo
2009-10-26 07:16

Hi, i want to ask how i can hide or stop calendar on joomla template, where i can find the code or settings?

Calendar Discussion
by huiju
2009-10-26 17:07

Hi, I have some special questions please (I'm a beginner...)? How is it possible : - that each time I click a day, for example I click on 10/30/2009, this load a new page which address will be : http://www.mysite.com/10302009.html - that in this new page, the calendar is set on 10/30/2009 ? I don't know if it's very clear ? If somebody can help me please. Thank you very much

Comaptibility of Calendar box pop up with IE8
by Jesus
2009-10-27 16:43

I am using your old version of DHTML Calendar on my site and is having a calendar box pop-up issue with IE8. When I click on the calendar box, the calendar pop up appears way above the page instead of appearing beside the calendar box. This problem only happens in IE8 but works for all the other earlier IE versions and for Firefox, Chrome, and Safari. Is there a workaround for the old version? Will the new version be compatible with IE8? Thanks

Calendar Discussion
by Morrers
2009-10-27 22:06

Hello the jscal2.js is with 33 KB to big, i dont need features like time, week number, animation. Is it possible to download a minimum version, without features

Can't reset calendar in popup mode
by Philip
2009-10-29 09:36

Hello. Is it possible to reset the calendar to the current date in POPUP mode?! Doing this way

cal.args.date = Calendar.dateToInt(new Date()); cal.args.selection = cal.args.date; cal.redraw();

But nothing happens. The calendar retains the date previously selected by user. Maybe this bug appears because the calendar is invisible when I call redraw() ?

Calendar Discussion "October Error, POPUPS"
by Martin
2009-10-29 14:40

October with errors "POPUP",

after selecting the day, and open the popup for the second time this gives an error on display in the second row.

Calendar Discussion "October Error, POPUPS","Posible solution"
by Martin
2009-10-30 15:55

jscalendar 1.0, hopefully with this I can solve for other versions ...

the error occurs with a time of 00:00:00, in my case I've solved changing the time, I do not occupy the time:

Calendar.prototype._init = function (firstDayOfWeek, date) ( Date.setHours (10); / / here change when

Tom, popup selection bug (post #290)
by Flint
2009-11-01 00:43

Hello Mihai, Tom and all!

First of all, let me congratulate Mihai for an amazing piece of software (and I have spend hours downloading and trying out most JS calendars out there -- Mihai, you are the best! The second best is based on your work, but it's just too much stuff :-))

I was wondering whether anyone has found a workaround for the selection bug described by Tom. Just a cosmetic deal, I know... but it would make it so much "closer to perfection" :-)

Thanks in advance for your kind help!!

Jscript alerts
by Romano
2009-11-02 15:40

Hi there, I need some assisstance please. Basically I need basic javascript alerts to popup when a user clicks on a disabled date, or tries to move to a month/year that is disabled.

Thanks for such an awesome calender, really has made my life so much easier.

Thanks in advanced for all the help.

Highlight Dates from a XML File
by Flow
2009-11-05 13:10

Hey guys,

I'd like to highlight dates in your calender, which are in an XML file. The problem is that i havent dealt with javascript so far, so i'm asking you for help!!

Thanks for your anticipation! Greets

Calendar Discussion
by brenden
2009-11-07 17:07

iPod Safari browser popup usage of the calendar just opens the calendar and then it immediately fades out and goes away. Figuring it was likely my usage I tried the 'comprehensive demo' page here. On the demo page at the bottom, I clicked the '...' button and the same thing happens there.

I made sure my safari settings were good (no popup blocking, java enabled, etc.)

A bug in IE7?
by hozhang
2009-11-09 12:02

I use the Jscalendar 1.0 to select date.In the same row,there is a drop down list follow up the calendar button in my case,when I click the button,the calendar pop up,but the drop down list is disapeared.This issue only appears on IE,it work well on Firfox2 and firfox3 . Is it a bug for Jscalendar?

Re: A bug in IE7?
by Siva Kishore
2011-10-04 13:31

I am using the same version, dropdown lists are getting disabled while clicking on date picker. any help?

Week selection
by Marianna
2009-11-11 17:28

Hi!

Is it possible to introduce "week selection" feature in the nearest versions of your calendar? Thank you

Calendar Discussion
by John
2009-11-11 21:32

Hello

This is just about the most comprehensive js calendar/date picker I have seen. However, I have a requirement that I dont see addressed. It looks like it should be possible, but I dont see an immediate way to achieve it. What I want is this: today and all days before today disabled. ( that bit is easy). The next 3 business days after today, skipping over weekends and marked holidays, will have different display characteristics, and allow click to set a form field as usual, but with a message appearing somewhere if one of those 3 days is clicked. I would have the message appear in a div, but that bit is straight forward. What is not clear, is how to set up this calendar to achieve that. Any help would be greatly appreciated.

Best regards John

Calendar Discussion
by Cartman
2009-11-12 16:58

How should I do so that the calendar is over the select controls of my form? (Sorry for my Eglish, I'm a damn french frog)

Calendar Discussion
by Cartman
2009-11-12 17:50

Well in fact I solved it myself, but it's an ugly way : in the .js source, I move an iframe with a z-index at 9999 so that it is between the calendar and the form. So now I have a sandwich with these slices : - form - iframe - calendar.

Where it's dirty : I put the name of the iframe directly in the code.

Here's my code (my iframe is called iframeCalendar), hoe this helps someone : <code> l.showAt=function(P,ax,av){ if(this.showAnim){ this.showAnim.stop() }av=av&&this.args.animation;var aw=this.els.topCont,ar=this,D=this.els.body.firstChild,au=D.offsetHeight,at=aw.style;at.position="absolute";at.left=P+"px";at.top=ax+"px";at.zIndex=10000;at.display="";if(av){ D.style.marginTop=-au+"px";this.args.opacity>1&&am(aw,0);this.showAnim=ap({ onUpdate:function(ay,az){ D.style.marginTop=-az(Z.accelb(ay),au,0)+"px";ar.args.opacity>1&&am(aw,ay) }, onStop:function(){ ar.args.opacity>1&&am(aw,"");ar._showAnim=null } }) } document.getElementById('iframeCalendar').style.display=''; document.getElementById('iframeCalendar').style.left=P+"px"; document.getElementById('iframeCalendar').style.top=ax+"px";

      };l.hide=function(){
      var at=this.els.topCont,P=this,D=this.els.body.firstChild,ar=D.offsetHeight,au=J(at).y;if(this.args.animation){
          if(this._showAnim){
              this._showAnim.stop()
              }this._showAnim=ap({
              onUpdate:function(av,aw){
                  P.args.opacity&gt;1&&am(at,1-av);D.style.marginTop=-aw(Z.accel_b(av),0,ar)+"px";at.style.top=aw(Z.accel_ab(av),au,au-10)+"px"
                  },
              onStop:function(){
                  at.style.display="none";D.style.marginTop="";P.args.opacity&gt;1&&am(at,"");P._showAnim=null
                  }
              })
          }else{
          at.style.display="none"
          }this.inputField=null
          document.getElementById('iframeCalendar').style.display='none';
      };

</code>

Calendar Discussion
by Kinjal Shah
2009-11-14 10:12

Hi, This calendar script is cool and very helpful for me. I need your help for working this on IPhone. Problem is that when click on button then calendar popup open and close immediately. Please open this url - http://www.dynarch.com/static/JSCal2/demo/multipleFields.html Can you please help me?

Regards, Kinjal Shah

Calendar Discussion
by pavithra
2009-11-16 08:46

Hi all, I gone through the code of Multiple selection of dates without holding SHIFT, I want to store the start and the end date into mysql database,I'm trying it, I don't know how to do it as i'm new to jquery... Can anyone help me..

Calendar Discussion
by pavithra
2009-11-16 12:41

Hi all, I want to get the calendar as a pop up when i click the image and select multiple dates without holding shift.. I'm trying on it.. But I couldn't get it properly.. Can anyone help me to get it...

Calendar Discussion
by Shaded
2009-11-16 23:42

Quick and easy question... is there anyway to get this to handle multiple calendars on 1 page?

Calendar Discussion
by Raza
2009-11-17 12:44

I want to update the date and time information from server for which i already setup PHP. i am confused from where i can put this information so that i can easily disabled all previous dates. the reason to check sever time is that i don't have to check different time zones..

Calendar Discussion
by Michele
2009-11-17 19:15

Hi, i've a question: How can I disable future dates in calendar?

Thank you in advance.

Calendar Discussion
by Pavithra
2009-11-18 07:04

Hi, How can i disable previous dates in a calendar.

Re: Calendar Discussion
by Sathish
2010-03-03 14:16

Hi Pavithra Hi, did you get the answer for your question (How can i disable previous dates in a calendar)?

Calendar Discussion - To send data with post method
by Filippo
2009-11-18 11:37

Hi, I'd like to use this calendar in a form that sends values in post method, but if I insert the calendar in a form the javascript of calendar does not functon. How can I use the values selected by user if I do not have the calendar in a form? Tks!

Re: Calendar Discussion - To send data with post method
by Shaded
2009-11-18 16:48

I had a similar issue, are you using a popup or embedded calendar?

Re: Calendar Discussion - To send data with post method
by Filippo
2009-11-18 23:24

I'd like to use an embedded version. Had you solved your problem? Thanks for your help!

Re: Calendar Discussion - To send data with post method
by Shaded
2009-11-19 00:02

Hmm... I had mine as a popup... let me look into it with embedded.

With the popup I had to use an image instead of a button to bring up the calendar.

Is your calendar initialize script outside the form?

Calendar Discussion
by Rajesh
2009-11-18 13:03

I want to implement JSCalendar in my web application can you let me know the procedure.

I mean, which files are required?

I have downloaded the JSCal2-1.0, i have called the jscal2.js file in my code but its not working....

Kindly help me out..

Thanks in Advance

Calendar Discussion
by Richard
2009-11-18 22:26

I seem to remember being able to select a Time when using the popup control, I cannot get it to work now. I have set showTime: 12 and it's not displaying the time. Was this feature removed?

Re: Calendar Discussion
by Shaded
2009-11-19 00:03

Hello Richard

Try using showTime: "12"

or showTime: true

Calendar Discussion
by Richard
2009-11-19 00:17

Did you bother reading what I wrote, I said I tried showTime: 12 it didn't work.

Re: Calendar Discussion
by Shaded
2009-11-19 04:25

I did read what you wrote... note the double quotes around the 12... your post did not include those.

Calendar Discussion
by Raza
2009-11-19 08:45

I am using the Version 1.0 as it is built in Magento now the problem is that no implementation to apply minimum or maximum range in term of day. As your latest release have everything. but it didn't implemented in good coding style no comments at all.. Even variable naming convention is so poor.. Please submit the newest with better coding style.. If possible..Thanks in advance

Calendar Discussion
by Richard
2009-11-19 20:09

I tried both showTime: "12" and showTime: true

like I said before this is on the popup version has that functionality been removed from the popup?

Bug Dayligth
by Calceta
2009-11-20 03:02

Hi for solution the bug in the dayligth twice date in October, you replace

if (y != 0 && m != -1 && d != 0) return new Date(y, m, d, hr, min, 0);

For

if (y != 0 && m != -1 && d != 0) {

var newDate = new Date();
newDate.setUTCFullYear(y);
newDate.setUTCMonth(m);
newDate.setUTCDate(d+1);
newDate.setUTCHours(hr);
newDate.setUTCMinutes(min);
newDate.setUTCSeconds(0);
return newDate;

}

It worked for me ;)

Greeting from Chile

change in time is not reflected
by Lee
2009-11-20 05:30

A change of the time is not reflected unless the date is also changed of re-clicked. In my mind, this is not acceptable for a 'product' that must be purchased. Is this issue currently being addressed?

Popup date selection bug solution (post #290, #329)
by felix
2009-11-21 02:49

I found kind of a solution for this tiny date selection bug, described in post #290 and #329.

You can just make the button click itself again. <form name="formname"> ... <button ... name="buttonname" onclick="document.formname.buttonname.click(); ...

For sure this isn't the cleanest solution, but it works quite well. Tested successfully with Firefox 3.5, Safari 4.0 and Google Chrome 2.0.

In Opera 10.00 Beta it is a bit laggy, but also works. In IE there's no reaction to the fix at all, so the calendar can be used as usual.

By the way. Great Script! Great Calendar, such a clean API, such nice animations. And all zipped into about 32KB. Great work!

greetings from europe felix

Calendar Discussion
by ray ong
2009-11-22 03:17

Thank you for the great calendar. Do you have any plan to add a 'clear' button, so that the user can use mouse-click to clear the date field.

Calendar Discussion
by Ann
2009-11-23 09:03

Hi to everybody. I use the popup calendar. In FireFox I had a problem - when I click the button, the calendar is visible few seconds, then it disappears. Help me, pls, with this problem...

Position float:right problem in IE6
by Debbie
2009-11-23 17:20

I'm designing a page where the calendar is used to select and display a page based on the date. I need to have the textbox and popup show on the right side of the page. No matter what I do in IE, the popup opens the distance away from the trigger approximately 1 full screen width - not next to the trigger. If the calendar is on the left side of the page, the popup opens on the right. If the calendar is on the right, the popup opens "off" the viewable area about 1 screenwidth from where the trigger is. FF is perfect (as usual). Any ideas?

Calendar Discussion
2009-11-24 11:11

I need to set calendar so that the user may select only from current dated to dates in future. eg. if today is 24 nov 2009 then selection should be allowed onlu from 24th onwards. How could I do that?? Please help in this regard.

Re: Calendar Discussion
by Yash Bhan
2009-11-26 08:19

Found the answer. just add a disable function in Calendar.setup{ disableFunc: disabled }

function disabled(){ // any criteria on base of which dates need to be disabled. }

Need calendar with months and year only
by Tony
2009-11-24 13:21

Hi! I want user to select only month and year. I guess I need this button always clicked <div class="DynarchCalendar-title" dyc-cls="hover-title,pressed-title" dyc-btn="menu" dyc-type="title"><div unselectable="on">Nov 2009</div></div>

is it possible? thanks

Calendar disappears
by Jason
2009-11-24 19:48

I just downloaded the latest calendar, and I have it on my page, but when I click the button to show the calendar, the calendar shows for a few seconds then goes away. Am I missing something?

Thanks!

Calendar disappears
by Jason
2009-11-24 22:09

I fixed this by using an image as the trigger. i think it's because the <button> code is submitting the form to itself. Another question though. When i pick a date, and it puts it in my input box, and then I click the popup calendar again, it does not default to the date that I picked the first time. It is showing the month as December, and no date is higlighted. I have the dateFormat set to "%m-%d-%Y %I:%M %p", I'm not sure if that's the issue or not though.

Calendar disappears
by Jason
2009-11-24 22:12

More for the comment I posted above, #365, I removed the date format, and then it seemed to show the correct date no matter how many times I clicked on the popup calendar link. I then put my dateFormat back to what I had above, but removed the time portion, and that worked as well. So, there seems to be a bug if you have the time as part of your dateFormat, the calendar doesn't know what date to default to.

Calendar in table
by Tom
2009-11-25 00:21

I' trying to use calendar. If this is in styled table, this is unusable big, here is screen: http://sklad.obrazku.cz/obr240232_Image1.jpg

Calendar probably takes style from my class table {} How can I style calendar or table for correct showing? (sorry for my english)

Re: Calendar in table
by Francois-Michel
2009-11-26 04:20

I've got the same problem...

When the calendar is inside a table the format gets weird...

Any solutions?

Re: Calendar in table
by Karmelas
2010-01-12 18:24

I'm having the same issue. Any solution?

Calendar default date
by Karina Simard
2009-11-26 01:26

Hi, i'm having a bit of difficulty figuring out how to set the initial date/time in the calendar. i'm using v 1.25 (working on someone else's project here) and i set date in the Calendar.setup params to a specific date/time, but when the calendar opens it always has the current date/time selected. I have also tried to use selection param but to no avail. And I have also tried to set the calendar and then use setDate and setTime methods after it is created. but that also does not seem to work.

So far it seems the only way i can get the calendar to respect a date when it first opens is to populate the text box it is linked with.

I am going to assume i'm doing something wrong, but I'm not sure what. I've seen that a few people above have also asked this question, but they have gotten no replies...

Calendar Discussion
by seoDemon
2009-11-30 00:11

Where we see the next version of this excelent calendar?

Calendar Discussion-Popup Calendar
by Ankur D Patel
2009-12-01 08:47

I would like to use your calendar control, Our requirement is, open a popup calendar on input control (type is textbox) on click event as well as on focus event. Please help me I have one problem

Calendar Discussion
by Ankur D Patel
2009-12-01 09:07

Sorry my email is wrong.

I would like to use your calendar control, Our requirement is, open a popup calendar on input control (type is textbox) on click event as well as on focus event. On click event is working properly but onfocus not.........

Re: Calendar Discussion
by Carlos
2009-12-03 14:27

Hi, I want to do the same as you, open a popup calendar on focus event (input control), you did it?

Re: Calendar Discussion
by Carlos
2009-12-03 16:55

after some work, here is a solution... but sometimes the code prints the current day... I don't know why...

<input id="tx_data" onfocus="cal.popup(document.getElementById('tx_data'), 'Br/ / /T/r');"/> <script> var cal = Calendar.setup({ trigger: "tx_data", inputField : "tx_data", dateFormat: "%d/%m/%Y", onSelect : function(){this.hide();document.getElementById("tx_data").value = cal.selection.print("%d/%m/%Y",""); }}); </script>

Re: Calendar Discussion
by Ankur D Patel
2009-12-14 09:34

thank Carlos, I have solved it, with like this, When we call pop up method directly from onfocus event then, inputField(control in date displayed) control became null, so i reassign date display control to inputField . For that i have written a below code after line no 359 in function (D,at) in jsCal2.js

l.popup = function (D, at) { //=== new code //=== D- pass date control id, //=== at- pass date format if (this.inputField==null) { this.inputField=D;
this.dateFormat = at; at='Bl/ / /T/r'; } thanks once again

Calendar Discussion
by Jevgenij
2009-12-01 17:58

Hi!

I think I might have found a bug in the calendar code, version 1.7.

When time is activated, with setup flag: "time : 0000" - according to ISO 8601 time, that should be at midnight. However, the input field after selection shows "12:00" midday.

From http://en.wikipedia.org/wiki/ISO_8601: Midnight is a special case and can be referred to as both "00:00" and "24:00". The notation "00:00" is used at the beginning of a calendar day and is the more frequently used. At the end of a day use "24:00". Note that "2007-04-05T24:00" is the same instant as "2007-04-06T00:00" (see Combined date and time representations below).

displayArea in Setup.... Gone?
by Daniel
2009-12-02 11:42

Hi, I am a long time user of the previous free version, I am now looking at upgrading to the new version. I am currently experimenting to see how simple the migration will be. In the older version there was a parameter called "displayArea" along with "daFormat" which would allow for a formatted date selection to be output to a <div> aswell as the date selection going to a hidden form field for processing upon submission. I have everything working, I just need to have a formatted date output to a div. Can anyone offer any assistance. Thank you.

displayArea in Setup.... Gone?
by Daniel
2009-12-02 11:43

Hi, I am a long time user of the previous free version, I am now looking at upgrading to the new version. I am currently experimenting to see how simple the migration will be. In the older version there was a parameter called "displayArea" along with "daFormat" which would allow for a formatted date selection to be output to a <div> aswell as the date selection going to a hidden form field for processing upon submission. I have everything working, I just need to have a formatted date output to a div. Can anyone offer any assistance. Thank you.

Calendar Issues
by Fernando
2009-12-03 23:26

Hello, when i open the calendar via a trigger button, the calendar opens but way too wide, its weird, it only happens on one web page, could this be because of an input style?

Thank you.

Calendar Discussion
by Pramod Sahoo
2009-12-07 08:54

Not functioning in IE

Highlighting only disabled dates
by Nqbyl
2009-12-08 12:30

Hi all,

I have a range of date, Ex : from 20091208 to 20091231, and only monday's are enabled, how can i highlight only monday's??

Any suggestion ?

By the way, nice work for this great calendar ^_^

q.__.data
by Arnau
2009-12-09 13:05

Hi all,

First, sorry for my inglish. I have a problem only in IE. When start the page IE it show me a error, that say "q.__.data is null...."

My web it's in PHP and my code is: <? echo "<input type='text' id='dataInici' name='dataInici' value='".$dataInici."' size='9' readonly='yes'><br>"; echo "<a href='#' id='calendariInici' name='calendariInici' />Seleccionar data </a>";
?> <script> Calendar.setup({ animation : false, trigger : "calendariInici", inputField : "dataInici", showTime : true, dateFormat : "%d/%m/%Y %H:%M", onSelect : function() { this.hide() }

                });
            &lt;/script&gt;

Can you help me?

Thanks for all.

Re: q.__.data
by Arnau
2010-02-25 13:40

I could fix my error. The error was a special character in language file.

Calander Posting to field with initial population, FireFox issue.
by Amos
2009-12-09 21:17

I have developed a simple time entry app using your calendar (which is very advanced) for inturnal use. The app is simple you enter start and stop time on one page, and have the option of modify existing entries. The modify page prepopulates the form with the existing records information.

The way I have the calendar operating is users can only select dates from today and yesterday. So when the form field is emty (which it is on the time entry page) if you happen to select time first it automatically selects todays date (which is perfect). This same function happens in IE 8 on the "modify page" (which is also perfect).

In FireFox 3.5.5, & whatever version comes with opensolaris 2009.06, however if the field has an initial value in the time format of "mm/dd/yyyy" and a ":" and you select time first it for the last week has selected the date 12/12/2009. (which is not a wanted effect). Keep in mind this works in IE 8 exactly the same way on both the "time entry page" and "modify page".

Any ideas?

Or does anyone know if you can limit date by a value I get returned from a record?

Re: Calander Posting to field with initial population, FireFox issue.
by Amos
2009-12-15 06:54

Update**

I realized you don't have to pre populate the time field for this firefox bug to popup. All you have to do is select a time, click away from the calendar so it dissapears, and now that there is a time entry in the form box, try and select a time again. Instead of it selecting today, it selects for 12/12/2009.

Any Ideas?

here is my calendar code.

<script type="text/javascript">//<![CDATA[

      var today = new Date(); range = 0; lessday = 2;last=new Date(today.getFullYear(),today.getMonth(), (today.getDate()+range));

    var cal = Calendar.setup({ 
                min: Calendar.dateToInt(today)-1, max: Calendar.dateToInt(last),
                      onSelect: function(cal) {},
                  showTime      : 12,
                  onTimeChange  : function(cal) {
                  //var h = cal.getHours(), m = cal.getMinutes() 
                  // BUGFIX: jsCal2 doesn't automatically update inputField when the time changes.
                  // BUGFIX: Manually updating inputField when time changed. 
                  cal.date.setHours(parseInt(cal.time / 100)); 
                  cal.date.setMinutes(cal.time % 100); 
                  cal.inputField.value = Calendar.printDate(cal.date,cal.dateFormat); 
                }

                });

    cal.manageFields("f_btn1", "stime", "%m/%d/%Y %l:%M %p");
    cal.manageFields("f_btn2", "etime", "%m/%d/%Y %l:%M %p");


  //]]&gt;&lt;/script&gt;
Calendar Discussion
by Paul75
2009-12-11 00:32

Hello, it works fine but in ie6 and <select> is not good the select is up the calendar.

Calendar Discussion
by Vishal
2009-12-11 11:30

Can Any One tell How to Disable All dates Before today ? I wants that From current Date All Previous date Cant Select How can i do that?

Calendar Discussion
by Dueni
2009-12-11 13:24

Hi, the old calender supported display of multiple months (up to 12 arrangeable in rows and columns as I remember). Does the new Calendar support that too?

Assigning multiple Calendars in a loop.
by Matthias
2009-12-11 18:33

Hi, I have to build up a yearly overview with more then one Calendat control. Using 3 control example code everything is fine. Now I tried to create an array of controls. This is working , if I assign elements static. Looping through the year with an index i is creating controls, but selection is not possible. Only the last control is active.

<code> <script src="./jscalendar/calendar.js" type="text/javascript"></script> <script type="text/javascript" src="./jscalendar/lang/calendar-de.js"></script> <script type="text/javascript"> var cal=Array();

function CreateOverview() { var i; for(i=1;i<=4;i++) { document.getElementById("calcont").innerHTML += "<div id='cal_"+i+"' style='float:left'></div>";

  // NOT Working Calendars
  // 
  if (i==1) cal[1]=Calendar.setup({cont: 'cal_1', fdow: 1,date: 20091101, dateInfo : getDateInfo});
  if (i==2) cal[2]=Calendar.setup({cont: 'cal_2', fdow: 1,date: 20091101, dateInfo : getDateInfo});   

  //Also NOT working code
  //cal[i]=Calendar.setup({cont: 'cal_'+i, fdow: 1,date: 20091101, dateInfo : getDateInfo});
} 

// Working Calendars
cal[2]=Calendar.setup({cont: 'cal_2', fdow: 1,date: 20091101,  dateInfo : getDateInfo}); // Creating second Cal in cal_2, this one is working
cal[3]=Calendar.setup({cont: 'cal_3', fdow: 1,date: 20091101,  dateInfo : getDateInfo});
cal[3]=Calendar.setup({cont: 'cal_4', fdow: 1,date: 20091101,  dateInfo : getDateInfo});

}

</script>

<body onload="setTimeout('CreateOverview()',10)"> <div id="calcont" style="width:600px"></div> </body> </code>

Dates selection
by Istvan
2009-12-14 12:16

Hi!

 I was wondering if it would be possible to click dates on and off, instead of needing to hold CTRL. I saw the range selection method, but unfortunately that's not what I need.

Thanks

Calendar Discussion
by Sachin
2009-12-16 15:21

I have downloaded the JSCal 1.7 but it doesn't work on firefox, it works well in IE. Does anyone has any idea, whats the problem?

Calendar Discussion
by Ben Jaz
2009-12-17 00:20

Hello and congrads on this amazing calender. I have a question which I appreciate if you reply.

I am using this date picker twice in one page. The first calender shows the start date and the second calender shows the end date. I copy and paste the code down here as well so it is clear what I mean.

What I need to happen is that as soon as the visitor picks start date, the default value of the second calender jumps to one day after that date. For example if I choose 1/1/2010 as the start date, I want the second calender to jump to 2/1/2010. By the way this is Australian format d/m/Y :) Here is the code: <tr> <td> <span style="font-size:10px"> Start Date</span> </td> <td> <input id="f_rangeEnd" /> <img src="calendar_icon.png" width="15" height="16"id="f_rangeEnd_trigger" /> <script type="text/javascript"> new Calendar({ inputField: "f_rangeEnd", dateFormat: "%d/%m/%Y", trigger: "f_rangeEnd_trigger", bottomBar: false, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); LEFT_CAL.args.max = date; LEFT_CAL.redraw(); this.hide(); } }); function clearRangeEnd() { document.getElementById("f_rangeEnd").value = "";

                };
              &lt;/script&gt;
          &lt;/td&gt;
          &lt;td align="right"&gt;
          &lt;span style="font-size:10px"&gt;End Date&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
           &lt;input id="start_1" /&gt;
              &lt;img src="calendar_icon.png" width="15" height="16"id="start_1_trigger" /&gt;
              &lt;script type="text/javascript"&gt;
                new Calendar({
                        inputField: "start_1",
                        dateFormat: "%d/%m/%Y",
                        trigger: "start_1_trigger",
                        bottomBar: false,
                        onSelect: function() {
                                var date = Calendar.intToDate(this.selection.get());
                                LEFT_CAL.args.max = date;
                                LEFT_CAL.redraw();
                                this.hide();
                        }
                });
                function clearRangeEnd() {
                        document.getElementById("start_1").value = "";


                };
              &lt;/script&gt;
          &lt;/td&gt;
       &lt;/tr&gt; 

Thank you very much for your support.

Calendar Discussion
by rick
2009-12-18 19:02

Hi great calendar.

When loading a page I need to select dates on the calendar which are stored in DB.

Any easy way of doing this?

Re: Calendar Discussion
by Ben Jaz
2009-12-22 03:40

php

Re: Calendar Discussion (PHP with ?)
by Dietmar
2010-01-06 21:02

Ben (Rick), What function did you use to push the date up to the calendar?

Passing a date (not selecting)
by Dietmar
2010-01-02 22:54

I think my question is similar to 394 and 395. The application will have your cal on one side (user can select a date), but also another area where user may pick a date. If user pick the date in the other area, I need to pass the date to your cal so it stays visibly in sync.

Easy?

DHTML Calendar Version 1 Bug with dates 2030 and beyond
by J.D. Corbin
2009-12-18 23:02

Hi, I noticed that if I specify a date in the text input field as 1/2/2030, once I refresh the page, and click on the calendar icon, the calendar displays 1930 instead. I verified it works fine for 2029 and 2040+.

I know this version of the calendar is no longer actively supported but wondered if anyone had created a fix/patch for this issue.

J.D.

Calendar Discussion
by Keith
2009-12-19 21:09

I need to have a calendar that will limit the users selection to a specific day, lets say Tuesday. The limitations I need to put on the calendar are: User can only select a Tuesday User can only select one date User cannot select past dates Time component is not available

If this can be done then it will meet all of my needs.

Calendar Discussion
by nhem you eang
2009-12-22 07:17

dear sir, i need you help.i want change language without use select box. can you tell me which one function change language in jscal2.js thank you advance..! :D by you eang

Calendar Discussion
by Tom
2009-12-24 07:46

Hi, I noticed a bug in the calendar script - I have reproduced it on the demo pages, both the old and new js calendar. If you have manually entered a date, eg 24/12/2009 in the date field, click the calendar and then go forward 1 month to january - you will notice the 6th Jan appears twice. Tom.

Calendar Discussion - New Lang File for Turkish
2009-12-24 11:56

Hi.

I like this calendar and I prepared Turkish lang file. I hope it will helps its evolution.

Thanks.

Link : http://rapidshare.com/files/325253231/tr.zip

Calendar Discussion
by Dasha
2009-12-24 19:50

Hello!

I am using the calendar widget, a page is opened in FireFox 2 (pop-up mode of calendar widget is set). When "toggle" property is set to an "input" tag, calendar pops up just fine. But if "toggle" is applied to an image, or a button or any other control - calendar pop-up is shifted far to the right (horizontal scroll appears).

Same thing happens on the demo page of yours.

Can you please advice?

Thank you!

Thank you for your answer
by Dasha
2010-01-04 18:27

no comments...

Calendar Discussion
by vincent
2009-12-28 21:28

how can you make the calendar bigger ?

h1 display none problem
by Mitch Claborn
2010-01-06 18:21

My default stylesheet has h1 { display:none }

And this seems to suppress the display of the month and week header portion of the popup calendar. Can this be fixed or is there a workaround? Do I have to change my default style sheet?

Re: h1 display none problem
by Mitch Claborn
2010-01-06 18:35

False alarm. It was just the top of the calendar being cut off. Solved with "align".

Calendar Discussion
by felixz
2010-01-07 21:41

At version 1.7 exists major bug here with the Date selector if you are using both Date & Time together in the input field.

For example with format like this: %m-%d-%Y %I:%M %p for the dateFormat.

In Firefox 3.5.7 seems to populate with completely wrong date when popup is opened.

For IE8 it seems to not populate on first open of the popup but a second open seems to populate correct.

There is no workaround this is something JSCal2 does internally and no way to override the behavior.

Calendar Discussion
by riyas kp
2010-01-08 19:23

You may find some problem of calendar body content like ‘year at the top margin’ and ‘today at bottom margin’ are aligned to left instead of the middle of the calendar body in browsers like FireFox and Safari. This is because the css property *{margin:0} is inherited from some other stylesheets. You can solve this by adding a margin:auto to DynarchCalendar table Ie. It is good to use like these

.DynarchCalendar table { margin:auto; border-collapse: collapse; font: 11px "lucida grande",tahoma,verdana,sans-serif; line-height: 14px; }

Instead of

.DynarchCalendar table { border-collapse: collapse; font: 11px "lucida grande",tahoma,verdana,sans-serif; line-height: 14px; }

sometimes calendar words, sometimes for a second, sometimes not at all.
by Joe
2010-01-10 02:37

hello. yesterday i installed this beautiful calendar and had it working fine. i don't think i even changed anything and now it only pops up for a second then disappears, or doesn't pop up at all. any ideas? here's the snippet:

<b>Dates- </b>From:<input id="calendar-inputField-from" size="8" /><button id="calendar-trigger" class="formbutton">...</button> <script> Calendar.setup({ trigger : "calendar-trigger", inputField : "calendar-inputField-from" });

</script>

To:<input id="calendar-inputField-to" size="8" /><button id="calendar-trigger2" class="formbutton">...</button> <script> Calendar.setup({ trigger : "calendar-trigger2", inputField : "calendar-inputField-to" });

</script>

wrong month
by Elena
2010-01-11 22:07

Will be ever fixed the bug with selection of the Month?

Explaination: If you don't select date manually but use the function of calendar.selection object (reset, for example), it just doesn't set the date properly. Month is set to zero.

example:

calend = Calendar.setup (...); calend.selection.reset(20091005);

Just do it and after then try to change date manually. It selects 5th of Jan instead of 5th of October

Calendar Discussion
by amo6002
2010-01-12 01:30

I have been successful getting the calendar to pop on a main page, but when I use the Spry SpryHTMLPanel call and the calendar is embedded in the loaded page, the calendar will not trigger. I have put the library calls in the main page and the called page (same with calendar setup), no joy. Has anyone seen and overcome this?

Thanks.

Turkish Language
by Yavuz Delibaşı
2010-01-12 23:30

Hi, I am from Istanbul, TURKEY.I used js calender at my web project. My problem is turkish characters in javascript file. What can I do ? Will you publish turkish language package. ?

Thanks for all,

Calendar Discussion
by Nicolas
2010-01-13 21:14

Hi, i'm using jscal2 in my webproject. I have a special user exigence : - When I click on 'today', the calendar must go on current month. - When I ckick on a day, the page must change (details page) My problem is I can not have both at the same time (I use onSelect). Is it possible to differentiate the button "today" and click on one day ?

Thanks.

Calendar Discussion
by Christina
2010-01-15 10:57

thanks for your great tool! it works really finde. but i have a little problem... I have a link on the dates onSelect : function() {
location.href='http://www.dynarch.com/projects/calendar/'; } the problem is the today-button. if i click it the link is also called and i don't know how to get the information if it was the date of today that was clicked or if it was the today-button.

onUpdate attribue
by Karmela
2010-01-20 18:05

I'm trying to switch between the old calendar to the new one. I'm struggling with the onUpdate attribute that was available in the old calendar but not in the new one. What can I use instead?

I'd greatly appreciate it if anyone could help me with this.

Thanks!

Calendar Discussion
by Marc
2010-01-21 11:13

Hi,

is there any possibility to deactivate the year arrows? Arrows for months for future and past selections should be further existent!

Thanks for help

Calendar time problem
by Boris Nieuwenhuis
2010-01-21 15:34

Hi, I have a problem with the control, if I include the time and use a format like dateformat = '%d/%m/%Y (%k:%M)', and I set some value in the text field that was marked as the input field for the calendar control, like so:

$('calendar-inputField').value = Calendar.printDate(new Date(), dateFormat);

if I then open the control, it is opened always on the month december of the year that was put in the input field control. If I leave the time out, like: dateformat = '%d/%m/%Y', and then open the calendar control, it is opened in the expected month. Is this a bug or am I overlooking something?

Re: Calendar time problem
by Mikhail
2010-02-02 05:04

I'm having same problem. Help anyone?

Calendar Discussion
by Simon
2010-01-25 14:30

Hi folks

First, Congratulation for this great JS Calender (Y).

But i have 2 question an one problem.

First, the problem.

I "calibrate" my site in CSS with:

  • { margin: 0; padding: 0; }

Then, my calender is looking this:

http://img682.imageshack.us/img682/7332/calenderi.jpg

Now, the question.

In the documentation is standing:

Highlight special dates, date tooltips

The examples there are ever with the exact dates. My Special Dates are all weeks. Perhaps, every Thursday is the event xyz.

Is it possible to do that?

Question two:

Is it possible to disabled the dates in the past? That i only can click today or in the future.

Thanks very much for helping and sorry for the bad English :S

Regards Simon

Calendar Discussion
2010-01-31 04:06

Hi Mihai, I took your calendar and tried to modify it for my needs.

First of all, i'll say that theonly thing i hate about your calendar is the javascript code i must use inside my html document to make the calendar to work.

So i pushed it a bit further.


you do something like this: <input id='Date'><button id='trigger'>...</button> <script type="text/javascript"> new Calendar({ inputField: "Date", dateFormat: "%B %d, %Y", trigger: "trigger", bottomBar: false, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); this.hide(); } }); </script>


Now i notice that we use 2 elements (inputs) a bit pointless.


The trigger and the field can be same element: <input type='text' id='Date' value='".date('Y-m-d')."'> // just use current day if form just loaded // here the eternal script: <script type="text/javascript"> new Calendar({ inputField: "Date", dateFormat: "%B %d, %Y", trigger: "Date", bottomBar: false, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); this.hide(); } }); </script> this works just fine by clicking the input field to start the calendar (anyway you'll click it to change date;-))


so my next step was to get rid on the script in the page: 1. Assigned an event to my date field: <input type='text' id='Date' value='".date('Y-m-d')."' onclick='SomeFunction(this.id)'> // pass input id in to provide trigger and inputField to your callendar setup function 2. Created a new js file called triggers.js inside of it i defined some ways to start the calendar; example: function StartCalendarBig(id){ new Calendar({ inputField: id, dateFormat: "%Y-%m-%d", trigger: id, bottomBar: true, showTime: 24, weekNumbers: true, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); this.hide(); } }); }

function StartCalendarSmall(id){ new Calendar({ inputField: id, dateFormat: "%Y-%m-%d", trigger: id, bottomBar: false, weekNumbers: false, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); this.hide(); } }); }

and voila! your code now in the page is this: (note that my stylesheet combine all the stylesheets you provide; a calendar is a calendar i use it same everywhere i put it; i saved a speciffic style sheet for each color theme - in my example here Cal_Dhtml_217_steel.css has inside jscal2.css amd then border-radius.css and then steel.css. all images u used sit in a img folder inside my css folder (updated all css url to this one)

javascript Cal_Dhtml_217.js has inside at first the content of your jscal2.js and then the content of en.js as language

// anyway i did all this to compact your fabulous calendar and to let me uset by adding 1 stylesheet in the header and 2 js files )

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="Css/Cal_Dhtml_217_steel.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="Javascript/Cal_Dhtml_217.js"></script> <script type="text/javascript" src="Javascript/triggers.js"></script> </head> <body>

<table> <tr> <td> <input type='text' id='Date' value='".date('Y-m-d')."' onclick='StartCalendarSmall(this.id)'> </td> </tr> </table> </body> </html>

// and works absolutely perfect everywhere.

// here's where i got stuck: i wanted to switch the trigger on a td

example: <td onclick='StartCalendarFromTd(this.id)' id='Td_1'> <input type='text' id='Date_1' value='".date('Y-m-d')."'> </td> now up in the triggers.js i wrote this function: function StartCalendarFromTd(Td_Id){ here i do a simple logic to rearrange the field and the trigger: var RealId=Td_Id.split(''); var FieldID='Date'+RealId[1];// this gives us Date_1 var TriggerID='Td_'+RealId[1];// this gives us Td_1 new Calendar({ inputField: FieldID, dateFormat: "%Y-%m-%d", trigger: TriggerID, bottomBar: true, showTime: 24, weekNumbers: true, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); this.hide(); } }); }

//and should work very well IE's doing it no problem but Mozilla Firefox won't start the calendar on the first click on the cell. ONLY from the SECOND CLICK!!!! What a heck?! took the script from header (StartCalendarFromTd function) and echo it as you do inside the cell. Fantastic Firefox start working from first click!!! IE no changes works well.

I guess my question is: can you figure it out whay this behaviour in Firefox? thx a lot and i hope my ideea will help you in any way.

Re: Calendar Discussion
2010-01-31 04:12

a small mistake there in the function StartCalendarFromTd:

instead of: var RealId=Td_Id.split(''); should be : var RealId=Td_Id.split('_');

Calendar Discussion
by Vadim
2010-02-02 00:07

Hello everybody. i need an advice. A'm using two frames vertical and horisontal. Calendar is located at the vertical one, when i am clicking on calendar it appears but goes under the second (horizontal) frame, how can i make that calendar always be on top in this situation? See screenshot. http://www.imagebam.com/image/62f36066346622

Zero padding for 24hr Clock in the Box below the Calendar
2010-02-02 17:33

Hi, great date/time picker! I need to have the the initial zero present when a number is below ten in the 24 hr clock IN THE BOX THAT IS AUTOMATICALLY POPULATED below the calendar when the time is selected. I tried using the example called "zero-pad them", but I just can't get it to work. Below is the code that I am using and everything works great, except I'd like the times like 8:05 AM to read as 08:05, and not as 8: 5.

// this handler is designed to work both for onSelect and onTimeChange // events. It updates the input fields according to what's selected in // the calendar. function updateFields(cal) { var date = cal.selection.get(); if (date) { date = Calendar.intToDate(date); document.getElementById("f_date").value = Calendar.printDate(date, "%m-%d-%Y"); } document.getElementById("f_hour").value = cal.getHours() document.getElementById("f_minute").value = cal.getMinutes()

    };

    Calendar.setup({
            cont         : "cont",
            min          : Calendar.dateToInt(new Date()),
            showTime     : 12,
            onSelect     : updateFields,
            onTimeChange : updateFields,


    });

  //]]&gt;&lt;/script&gt;
Multiple selection without holding CONTROL
2010-02-02 21:31

It's possible, select multiple dates without holding the control key?

I didn't can find this option in the documentation.

Re: Multiple selection without holding CONTROL
by Mihai Bazon (page author)
2010-02-02 21:38

There is a branch that does this (a paying customer needed it) but it's not integrated into the public release.

I'm looking forward to release a new version that will include this and a few fixes, soon. I'm sorry for the delay.

Calendar Discussion
by sandeep
2010-02-03 09:11

hello Can anyboby help me I just want to set default date on calendar

Calendar Discussion
by Yeshwanth
2010-02-03 09:22

Calendar position is not aligning correctly in a scrollable div

Re: Calendar Discussion
by Brent
2010-02-04 20:36

I had the same problem in explorer (firefox, chrome etc were fine) The problem ended up being that the script calling was happening before <head>, (dynamic page, and the header call was not in the right place). So check to be sure that : <link rel="stylesheet" type="text/css" href="/JSCal2/css/jscal2.css" /> <link rel="stylesheet" type="text/css" href="/JSCal2/css/border-radius.css" /> <link rel="stylesheet" type="text/css" href="/JSCal2/css/gold/gold.css" /> <script type="text/javascript" src="/JSCal2/js/jscal2.js"></script> <script type="text/javascript" src="/JSCal2/js/lang/en.js"></script> are between <head> and </head>

Calendar Discussion
by kpol
2010-02-04 15:42

hello,

hello there,

I look to do this in virtuemart :

picture here : http://img193.imageshack.us/img193/4866/dhtmlcalendar.jpg

.. I look to the code that insert a celendar just here ( see image ), so people can select date and it appear directly in the field.

thanks.

Calendar Discussion
by Gregory Holstinnikov
2010-02-05 18:02

JSCalendar 1.7 have a bug into function parseDate. If value of container like as format '%d.%m.%Y %H:%M', function parseDate return month December, because splitted array has empty value. My simple solution look as y.parseDate = function(au,D,aw) { ... for(var at=0;at<az.length;++at){var aA=az[at]; if (!aA) break; /*<-- this fix! */ ... } .. }

Re: Calendar Discussion
by Josh
2010-02-24 23:42

What exactly is the fix? I'm having this problem.

Re: Calendar Discussion
by Gregory Holstinnikov
2010-02-25 09:11

look this http://scarych.ru/txt/calendarfix.txt

Re: Calendar Discussion
by Diego
2010-03-19 15:12

Thank you alot this totally works for "december" bug!! xD

Re: Calendar Discussion
by Gregory Holstinnikov
2010-03-19 16:50

what is "december bug"?

Re: Calendar Discussion
by pyl
2010-03-26 16:52

It works with FF 3.6 ! Thanks.

Calendar Discussion
by chice
2010-02-08 04:44

too many bugs in Firefox .... It can not get the date from a input field correctly,

and even under IE8, if there are two calendar on the same page, the second one's first show will display the first one's date.

Calendar Discussion
by Xmxth
2010-02-08 09:11

How does this calendar use in ASP.net to link text box? does someone have a demostration?

selection.getDates() issue in IE
by regina
2010-02-10 02:09

I'm using multiple select. In FireFox, selection.getDates() returns an array of javascript Date objects, as documented. However, in IE7 selection.getDates() returns an array of objects that are not javascript Dates.

I was able to work around it with this:

var dates = cal.selection.getDates(); for (var i in dates) { var theDate = dates[i]; if ( ! (theDate instanceof Date) ) { // workaround for MSIE theDate = new Date(theDate.toString()); } .... }

I noticed in post 433 that you are working on some fixes. Is this being fixed in your next release?

Bug report
by Andrey
2010-02-11 12:59

Hello,

I use JSCal2, version 1.7 Built at 2009/07/16 08:37 GMT

found a bug, easily reproducible using demo samples on your site.

Steps to reproduce: Using popup calendar, 1) select a date using popup calendar 2) edit selected date in input field manually, f.e., change month 3) click on calendar Voila: the opened calendar has not selected the date from text input click outside of calendar, it closes. Open calendar again, correct date is highlighted.

Calendar Discussion
by Brent
2010-02-12 11:12

Hi, Can anyone tell me how I can get the current selected month and year from the calendar when the month or year is changed. ie. OnChange {......?

I need this to set calendar events for the selected month.

Calendar Discussion -
by David D
2010-02-12 17:56

Is it possible to have multiple events under one date? for example, if in the morning, i had a meeting, and the evening i had a party, could this be listed as 2 seperate events on the calender, so when i click on the date, the tooltip would display both, as it currently only displays one.

Calendar Discussion
by Orpheus
2010-02-12 19:36

Hello,

First of all, thanks for your work, it helped me a lot :)

For one of my projects i would like to store different dates, and all those dates come from jSCalendar. The idea is to create an instance of the calendar and, as soon as the users selects a date, this date will be added on the right (cf Doodle execution)...

Can anybody help me on that?

Thank you very much !

Calendar 1.5 version Discussion
by alex
2010-02-13 18:29

Hi, I want to Disabling dates in 1.5 version of JScalendar is it possible? how can I do?

thanks

Calendar Discussion
by pooja
2010-02-17 08:28

Hi,

Great work !!! In chrome not able to see the window Title for date time picker(it shows untitled). Please let me know how to fix this.

Thanks

selection week
by Alberto
2010-02-17 18:27

Hi,

I want to highlight the week like in the class .DynarchCalendar-hover-week but on the event of select a day

Count of selected days and automatic select
by Crazy
2010-02-18 20:20

Hi. I have 2 question. 1. How do I count the number of selected days (i want put in JS maxDay = 3 and when user select 3 days all fields is disabled). 2. How can I automatically select the date? - when I have selected date in mysql when I visit my site I want see what days are selected.

PLS help with this.

Calendar Discussion
by alex
2010-02-19 19:04

Hi, I want to Disabling future I would like to disable future days than at present is it possible? how can I do?

thanks Plese help me

Calendar Discussion
by Neil
2010-02-21 09:22

Hi, does anyone have any suggestions to restrict the count of selected dates. I would like to restrict users to only 3 dates and ignore all subsequent selections. If I use unselect on the 3rd member of the array, it removes the greatest chronological date not the last added. Any suggestions appreciated. Thanks

Calendar Discussion
by Crazy
2010-02-22 14:26

Hi.. I try with count days and I have this code: LEFT_CAL.addEventListener("onSelect", function(){ ile = licz(); if (this.selection.countDays()>ile) { this.selection.unselect(this.selection.getLastDate()); alert('to much.'); } }

I U want disable future date use MAX :) like this: var LEFT_CAL = Calendar.setup({ cont: "cont", bottomBar : false, min: tod, max:mie6, //mie6=20100220 weekNumbers: false, selectionType: Calendar.SEL_MULTIPLE, showTime: false })

Calendar Discussion
by Crazy
2010-02-22 15:22

How I can disabled this date type: 2010/02/25 -> 2010/02/26

PLS help

Calendar Discussion
by Serge
2010-02-23 00:05

How to make <img> instead of the <button> in multipleFields.html(demo) like in old version? <input size="30" id="f_date1" /><button id="f_btn1">...</button>

Re: Calendar Discussion
by Rafael Carvalho
2010-02-24 17:24

doenst it work?

<img src="image.jpg" onclick="return false" id="f_btn1" />

Calendar Discussion
by Italian Ice
2010-02-25 04:21

I NEED HELP FROM ANYONE!!! Please, can someone explain to me of how to implement this calendar on VirtueMart v 1.1.14! I need it so that the customer can select the departure date and arrival date. Please someone help me in a well written guide. PLEASE!! Please help me and email me.

Calendar Discussion
by Ivanov Ivan
2010-03-01 15:38

if add style: <style> TD { background-color: #edf7ff; font-family: Tahoma, Arial; font-size: 8pt; color: #003471; } </style>

calendar bad style!

Disable multiple date intervals
by Murdock the Mad
2010-03-01 23:52

Hello to all, is it possible to disable multiple date intervals? I would like to use the jscal as an avaiability calendar for hotel. Thank you

Re: Disable multiple date intervals
2010-03-02 23:22

I dont think that is possible right now with this version... anyone did it?

week selection
by Murdock the Mad
2010-03-02 01:35

Hello again! Is it possible to select a week just clicking a day (single selection)? Tank (more strong without h :D) you!

Re: week selection
2010-03-02 23:21

Hi Mad, did you found a solution? I am interested. TANK you too! :D

Calendar Discussion
by Asif
2010-03-02 10:00

How i can control alignment of calendar based on current viewable area of browser?

Re: Calendar Discussion
2010-03-02 23:20

Mmmmm maybe you can try to give a float:left or float:right to the calendar container, or "margin:0 auto" to put it on the middle, it depends on the way your layout is structured.

on select or click, pass date to php variable?
by Chris
2010-03-02 16:55

I don't know how to select a date and somehow make it available to php. Like if I select the date on the cal, it would refresh the page and put the date in a GET variable on the URL. Then I could grab it.

Any ideas.

Re: on select or click, pass date to php variable?
2010-03-02 23:18

Hi Chris, you can do in this way:

var yourcalendar = Calendar.setup({ cont: "yourdivname", onSelect: function(yourcalendar){ var yourdata = yourcalendar.selection.get(); ... 1) you can put here your ajax function to call a php page passing the yourdata var as GET (or POST) 2) you can fill an hidden form field in any way you like, in example: yourform.yourhiddenfield.value = Calendar.printDate(yourdata, "%e-%o-%Y"); } }

;)

Pass PHP Variable, Thanks Roberto
by Chris
2010-03-02 23:49

Thanks for your response. I did figure it out another way and wanted to post it. I current use a Zapatech calendar that I bought and wanted a replacement that was faster to load. This sure looks better.

<script type="text/javascript"> Calendar.setup({ selectionType : Calendar.SEL_SINGLE, date : <?php echo date('Ymd',strtotime($SESSION[caldate])); ?>, selection : Calendar.dateToInt(new Date()), showTime : false, fdow : 0, inputField : "calendar-inputField", trigger : "calendar-trigger", onSelect : function() { var date = this.selection.get(); date = Calendar.intToDate(date); date = Calendar.printDate(date, "%Y-%m-%d"); var url = "../schedule/daily_schedule.php?cal_date=" + date; window.location = url; }

  });
Re: Pass PHP Variable, Thanks Roberto <- you are welcome Chriiiis
2010-03-03 00:10

Ahhh window.location = url!! well done ;)

Calendar two months
by isabel
2010-03-03 10:19

Is it possible to display two months simultaneously in this calendar control? If so how could we achieve that?

Re: Calendar two months
2010-03-03 17:23

I think that the better way is to use two near calendars and use js to control the month change, selected date etc.

Better way... maybe the only way? I hope not :)

Calendar Discussion
by Chris
2010-03-03 14:39

hi, i would like highlight all my dates from sql database.

but it only shows always the first one....how can i make it show all... ithink there must be somewhere a loop

this $sStart is from db in if (as_number == {$sStart})

function getDateInfo(date, wantsClassName) { var as_number = Calendar.dateToInt(date); if (as_number == {$sStart}) return { klass : "highlight2", tooltip : "<div style='text-align: center'>This is the green week</div>" }; return DATE_INFO[as_number]; };

Re: Calendar Discussion
2010-03-03 17:26

Uhmm..can you give me more detail about that? i think there is some problem with a return, that stop the function, but i have to know much more about your "if conditional" to help you ;)

Calendar Discussion
by Chris
2010-03-03 18:20

ok thx for quick answer: i want that all dates from event start are highlighted in the calendar.

this is my query from db with all event starts and transformed that the date is shown like 20100304:

$sQuery = "SELECT * FROM events_main WHERE Status = 'approved'";

  $rBlogs = db_res( $sQuery );

  while( $aBlog = mysql_fetch_assoc( $rBlogs ) ) {

    $sStart = date("Ymd", $aBlog['EventStart']);
    $sTitle = $aBlog['Title'];

  }

and this is the script from your calendar: <script type="text/javascript">//<![CDATA[

    var DATE_INFO = {
            {$sStart}: { klass: "highlight", tooltip: "%Y/%m/%d&lt;br /&gt;{$sTitle}" }
    };

    function getDateInfo(date, wantsClassName) {
            var as_number = Calendar.dateToInt(date);
            if (as_number == {$sStart})
                    return {
                            klass   : "highlight2",
                            tooltip : "&lt;div style='text-align: center'&gt;Next Event&lt;/div&gt;"
                    };
            return DATE_INFO[as_number];
    };

    var cal = Calendar.setup({
            cont     : "calendar-container",
            selection     : Calendar.dateToInt(new Date()),
      animation : false,
      weekNumbers   : true,
    selectionType : Calendar.SEL_MULTIPLE,
            dateInfo : getDateInfo,
      onSelect      : function() {
      var count = this.selection.countDays();
      if (count == 1) {
          var date = this.selection.get()[0];
          date = Calendar.intToDate(date);
          date = Calendar.printDate(date, "%Y/%m/%d")
    var url = "/events/browse/" + date; window.location = url;
          $("calendar-info").innerHTML = date;
      } 
  }

    });

  //]]&gt;&lt;/script&gt;
Re: Calendar Discussion
2010-03-06 13:44

Chris, what is the result of {$sStart}?

P.S. are you using Smarty engine?

Calendar Discussion
by Tony
2010-03-03 21:59

Great script! Quick question; how do I disable time on the calendar? The calendar-setup.js reflects param_default("showsTime", false); yet time is still visible on the calendar.

Calendar Discussion
by Chris
2010-03-03 23:42

take a look if you got this on your calendar setup script on your html/php

showTime : 12,

then delete it!

Calendar Discussion
by ThangNQ
2010-03-04 05:06

I would like to user Calendar in APS.NET. The code as ------Materpage.master-----

<head id="Head1" runat="server"> <title>JsCal2</title>

  &lt;script type="text/javascript" src= "JSCal/src/js/jscal2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src= "JSCal/src/js/lang/en.js"&gt;&lt;/script&gt;

  &lt;link rel="stylesheet" type="text/css" href= "JSCal/src/css/jscal2.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href= "JSCal/src/css/border-radius.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href= "JSCal/src/css/gold/gold.css" /&gt;

</head> <body> <asp:Label ID="Label1" runat="server" Text="MasterPage" BackColor="#80FF80" Font-Size="55pt"></asp:Label> <form id="form1" runat="server"> <div> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>

----Default.aspx----- <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <p> To save memory, you can use a single (popup) calendar object to manage multiple input fields. The following sample shows you how to do it. </p>

  &lt;asp:TextBox ID="f_date1" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;button id="f_btn1"&gt;...&lt;/button&gt;&lt;br /&gt;
  &lt;asp:TextBox ID="f_date2" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;button id="f_btn2"&gt;...&lt;/button&gt;&lt;br /&gt;
  &lt;asp:TextBox ID="f_date3" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;button id="f_btn3"&gt;...&lt;/button&gt;&lt;br /&gt;
  &lt;asp:TextBox ID="f_date4" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;button id="f_btn4"&gt;...&lt;/button&gt;


  &lt;script type="text/javascript"&gt;        //&lt;![CDATA[

      var cal = Calendar.setup({
          onSelect: function(cal) { cal.hide() }
      });
      cal.manageFields("f_btn1", "ctl00_ContentPlaceholder1_f_date1", "%Y-%m-%d");
      cal.manageFields("f_btn2", "ctl00_ContentPlaceholder1_f_date2", "%b %e, %Y");
      cal.manageFields("f_btn3", "ctl00_ContentPlaceholder1_f_date3", "%e %B %Y");
      cal.manageFields("f_btn4", "ctl00_ContentPlaceholder1_f_date4", "%A, %e %B, %Y");

      //]]&gt;&lt;/script&gt;

</asp:Content>

When I click to button there is error :

Microsoft JScript runtime error: Object required and debug to

aw=/input|textarea/i.test(P.tagName)?P.value:(P.innerText||P.textContent);


Would you please help me.

Thanks in advance

Thang

Time entry
by Jim S
2010-03-07 04:06

Looks great. Question though on the time entry. Is it possible to allow the user to also type into hour and minute box? A spinner just isn't quite as fast as just hitting the keyhboard number.

Thanks!

Clicking on disabled dates
by Michael
2010-03-09 04:39

As per comment 107, I am having the issue with the calendar closing when the user clicks a disabled date. This only happens in Firefox, all versions of IE leave the calendar open which is the behaviour I'm after.

Any help on this is appreciated.

Calendar Discussion
by kartheeswari
2010-03-10 12:27

what are the ifformats supported?

Re: Calendar Discussion
2010-03-12 16:26

Kartheeswari, what do you mean for "ifformats"?

Calendar Discussion
by Lee
2010-03-12 17:38

I am trying to implemnent the calendar control on an internal website and am following the directions on your page http://www.dynarch.com/projects/calendar/doc/. I am getting the following error: Microsoft JScript runtime error: 'q.__.data' is null or not an object which is in the jscal2.js file. Any help would be appricated.

Lee

Re: Calendar Discussion
by Lee
2010-03-12 18:09

Okay, I fugured it out. It was my referenced paths to the .js files. I think I am good to go for now. Very cool control.

Calendar Discussion
by Lee
2010-03-12 19:09

Okay, new issue, I'm trying to pass the selected value to the innerHTML of the dive tag and am getting an object required error message. Any help? Here is my code:

<div id="StartDate_calendar_container"> </div> <div id="StartDate_calendar_info" style="text-align: center; margin-top: 0.3em"> </div>

                      &lt;script type="text/javascript"&gt;
                          var startDateCalendar = Calendar.setup({
                          cont: "StartDate_calendar_container",
                          selection: Calendar.dateToInt(new Date()),
                          onSelect : function() {
                                                      var date = this.selection.get();
                                                      date = Calendar.intToDate(date);
                                                      date = Calendar.printDate(date, "%A, %B %d, %Y");
                                                      $("StartDate_calendar_info").innerHTML = date;
                                                  } 

                      });
                      &lt;/script&gt;

I'm getting the error on the .innerHTML line.

Re: Calendar Discussion
2010-03-15 01:48

Let me think about that... try this: onSelect : function() { var date = Calendar.intToDate(this.selection.get()); date = Calendar.printDate(date, "%A, %B %d, %Y"); alert(date); } Check with alert if the result is correct, if not so try to change this "%A, %B %d, %Y" with "%Y-%o-%e" just for try, ok?

Let me know if it works or not ;)

Re: Calendar Discussion
by Lee
2010-03-15 23:50

Yep, got it to work. Thanks, Lee

Calendar Discussion
by Extreme
2010-03-13 08:44

i am the webmaster of a small dart community and we are looking for a calendar for just putting up small things. I am curious why this script comes up in all free calendar searches, but the site says it is not free? I downloaded something and it seems to have alot of info and posibly everything needed, but im not sure why the code was given and it is also stated that we must purchase a license.

I am confused

Calendar Discussion
by Extreme
2010-03-13 08:44

i am the webmaster of a small dart community and we are looking for a calendar for just putting up small things. I am curious why this script comes up in all free calendar searches, but the site says it is not free? I downloaded something and it seems to have alot of info and posibly everything needed, but im not sure why the code was given and it is also stated that we must purchase a license.

I am confused

Calendar Discussion
by Extreme
2010-03-13 08:45

Sorry for the double click there. Can you remove this post and one of the doubled posts. thx

Major Bug Detected
by Alex
2010-03-14 02:42

Hi, I've just spoted a major bug in your calendar. Please see the calendar pop-up in the first page, the one right under "Features". Pick any day this month and then close the calendar, leave the date selected in it return and do the same thing. You'll notice that all days will be off and th will become fr, sat -> sun and so on. This month the day of 27 will be also in sat and in sun. Hope it helps

Calendar Discussion
by Alex
2010-03-14 02:54

Hi, Still me. I thought i should test it again, maybe i was wrong, but no the same thing.The prob is if the input has a default date in it all the calendar will be messed up. If the date is displayed along with the time is no problem. I think you should check this up. The old one has the same issue too.

Re: Calendar Discussion
2010-03-15 01:41

Mmm very good Alex, "big" bug in the bag! I hope it will fixed soon :)

One question to you (and other users, obviously), are you trying to use the calendar for a booking system?

I am doing it, but with problems... i am using it in a apartment rental system.. Two calendars, one for check-in and second for check-out.

Maybe do you know how to disable dates of all apartments rented?

thank you ;)

Calendar Discussion
by sophie
2010-03-15 09:13

Sisterbagz.com provides The World Best Replica Handbags,Louis Vuitton Handbags,Chanel Handbags,Gucci Handbags,Hermes handbags,valention handbags,chloe Handbags,,Balenciaga Handbags,Prada Handbags,Miu Miu Handbags the latest designs, We offer one of the best collections of Handbags Fake Bags at discount prices,Online Store -www.sisterbagz.com.

Re: Calendar Discussion
2010-03-15 20:38

I think this is not the right place to spam...

Calendar Discussion
by Tim
2010-03-16 14:25

Yeah i've noticed the same bug Alex was talking about.This makes the calendar unusable. The shifting of dates is making a big mess in the hole calendar. I hope someone will look into it and fix it!

No support for IE6?? BUG with select fields
by DAG
2010-03-17 00:02

I know that IE6 is dead, but there is a client of mine that still uses IE6 in his corporation and there is a BUG in the last version of the calendar. If there is a select box under the popup calendar, it overlays the calendar and off course you cannot select the dates under the select box.

Is there a plan to fix this issue?

Re: No support for IE6?? BUG with select fields
2010-03-17 23:27

DAG, try to apply an high z-index value (in ex. 9999999) to the main calendar css class. Maybe it will solve the problem, but i am not sure of it ;) Let me know if it works, ok?

Re: No support for IE6?? BUG with select fields
by DAG
2010-03-18 02:29

That was the firs thing I tried... But it does not work :(

Calendar Discussion
by Saji
2010-03-17 08:17

Hi Can I use the calender to provide me Islamic Calender support the 'English Hijrah'

Thanks and REgards

Saji Pillai

Calendar Discussion
by mostafa
2010-03-18 01:09

veryy goood calender . but when i change time zone in my laptop to (GTM+02:00 cairo ) i have some problems at:

  • 2010 April Month from days (29,29,30)

  • 2011 April Month from days (28,28,30)

check it

thanks

Calendar Discussion
by Luca
2010-03-19 19:10

Hi everybody i've modified index.html in this version. I would like to know if it is possible to put a calendar near another calendar. I've traied to put float:left everywhere in the css file, but nothing. Can you help me?

Best work, bye

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <link type="text/css" rel="stylesheet" href="src/css/jscal2.css" /> <link type="text/css" rel="stylesheet" href="src/css/jscal3.css" />

<link id="skinhelper-compact" type="text/css" rel="alternate stylesheet" href="src/css/reduce-spacing.css" /> <script src="src/js/jscal2.js"></script>

  &lt;script src="src/js/lang/en.js"&gt;&lt;/script&gt;
  &lt;link type="text/css" rel="stylesheet" href="mycalendar.css" /&gt;
&lt;/head&gt;

<table> <tr><td> <table width="300px"><tr><td> <h3>1 - 2</h3>
</td></tr><tr><td> <div id="cont" style:"float:left"> </div> <script type="text/javascript"> var LEFT_CAL = Calendar.setup({ cont: "cont", weekNumbers: false, selectionType: Calendar.SEL_SINGLE, //showTime: 24 //titleFormat: "%B %Y" }) </script>

<form method="post" action="test.php"> </td></tr><tr><TD> <br> <br> <input type="radio" name="time" value="1" checked>7:00 <input type="radio" name="time" value="2">9:00 <input type="radio" name="time" value="3">11:00

<input type="hidden" id="f_selection" name="PM"> <script type="text/javascript">//<![CDATA[

                LEFT_CAL.addEventListener("onSelect", function(){
                        var ta = document.getElementById("f_selection");
                        ta.value = this.selection.print("%d/%m/%Y");

      });


              //]]&gt;&lt;/script&gt;&lt;div class="clear"&gt;&lt;!-- --&gt;&lt;/div&gt;    

</td></tr></table> <td><table width="300px"><Tr><TD>

<h3>2 - 1</h3> </td></tr><TR><TD> <div id="cont" style:"float:left"> </div> <script type="text/javascript"> var LEFT_CAL = Calendar.setup({ cont: "cont", weekNumbers: false, selectionType: Calendar.SEL_SINGLE, // showTime: 24 // titleFormat: "%B %Y" }) </script> </td></tr><tr><td> <input type="radio" name="time2" value="1" checked>8:00 <input type="radio" name="time2" value="2">10:00 <input type="radio" name="time2" value="3">12:00

<input type="hidden" id="f_selection2" name="MP"> <script type="text/javascript">//<![CDATA[

                LEFT_CAL.addEventListener("onSelect", function(){
                        var at = document.getElementById("f_selection2");
                        at.value = this.selection.print("%d/%m/%Y");

      });


              //]]&gt;&lt;/script&gt;

</td></tr></table></td></tr><tr><td>

    &lt;input type="submit" value="Controllo&gt;&lt;/form&gt;

</td></TR></table> </body> </html>

Calendar Discussion
by Chris
2010-03-22 11:06

@ Roberto Cantaro - Post #489

the result of {$sStart} are all Dates where are Event inserts in database transformed in the format from the calendar f.e. 2010-02-13

it is dolphin.

so i want that all dates on the calendar are marked where are events in database, like your normal "highlight"

Calendar Discussion
by Souraf
2010-03-24 09:04

Hi,

I want to display Islamic calendar with islamic dates. How to display using jscal? can you please help me?

Issue with JScalendar
by GARNIER Jean
2010-03-24 15:16

Hi,

I try to run JScalendar on the back office of my website, however it's seems that there is an issue when the calendar's div appear, i don't understand how to fix this bug, could someone help me.

example: http://img204.imageshack.us/img204/1055/caly.png

Re: Issue with JScalendar
2010-03-25 16:11

Hi Garnier, the same bug appears in firefox? If yes, then you can install and use the firebug plugin there to see the problem ;)

Calendar Discussion On Disable date Onclick
by samaj
2010-03-26 11:03

Hy,i would like to disable multiple dates on select and want to store that values in my db for my future use

Calendar Discussion On Disable date Onclick
by samaj
2010-03-26 11:03

Hy,i would like to disable multiple dates on select and want to store that values in my db for my future use

Calendar Discussion
by Hamid
2010-03-26 12:05

you will find that with the calender's sequence of events, you will have to run the: Calendar.setup({trigger:"name of your button or img",inputField:"name of the field", onSelect:function(){this.hide()}});

after you actually do the creating of text box and the img or button.

this is why some of you who do ajax stuff might find some difficulties with this.

just run it as an inline script in the same file that carries the text box and you will be happily happy!

Calendar Discussion
2010-03-26 16:19

Hi, My name is John and I am delighted with the websites. My creation is: www.numero111.altervista.org I entered your calendar js dynamic, very nice and helpful. Good work! However, one thing that I can not customize the triangles are for the change of 'time, I delete them, leaving only the' time. How can I do? Thank you.

Calendar Discussion
by samaj
2010-03-26 20:12

is it possible to use two different steel/steel.css and gold/gold.css in same form for the two different calander

Calendar Discussion
by sunny
2010-03-29 09:48

hy how display only current month dates not other monthdate in my callander

and also how to call to different css for the to different calander in one page.

Calendar Discussion
by sunny
2010-03-29 10:37

hy how to use this one addEventListener(event, func)

Calendar Discussion
by Vittal
2010-04-01 15:15

How to fix predefined date in calendar

Calendar Discussion
by Antony
2010-04-05 12:18

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Calendar._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <link rel="stylesheet" type="text/css" href="/JSCal2/css/jscal2.css" /> <link rel="stylesheet" type="text/css" href="/JSCal2/css/border-radius.css" /> <script type="text/javascript" src="/JSCal2/js/jscal2.js"></script> <script type="text/javascript" src="/JSCal2/js/lang/en.js"></script>

</head> <body> <form> <input id="calendar_inputfield" /> <button id="calendar_trigger"> ...</button> </form>

  &lt;script type="text/javascript"&gt;
      Calendar.setup({
      trigger    : "calendar_trigger",
      inputField : "calendar_inputfield",
      dateFormat : "%d.%m.%Y",
      onSelect   : function() { this.hide() }
      });
  &lt;/script&gt;

</body> </html>

Calendar just show in a half of it's true size and dissapear when I press the button, but if "<input id="calendar_inputfield" /><button id="calendar_trigger">...</button>" outside the "form" tag it works fine. How can I fix it?

Calendar Discussion
by Startide
2010-04-06 16:24

First thing first : thank you very much for this wonderful piece of work. It work (almost) perfectly.

We have only been disturbed by some users that are facing a very odd bug. It seems that the LAST WEEK END of march get miscalculated after you select a date. Hence we get 27 march twice (sunday AND saturday).

This fucks up the whole calculations and make the whole calendar shift one day ahead for the whole month AND april as well.

it only happens on computers that are run in romania, I haven't been able to reproduce the bug on our systems. One user was nice enough to offer remote access to his computer and I saw myself that it worked strangely.

Surprisingly enough, the bug is consistent both on IE6, 7 and Firefox.

Any ideas ?

PS : problem only occurs on the last weekend of march, whatever the year is. And shifts calculations for march AND april when it occurs.

Re: Calendar Discussion
by Startide
2010-04-06 16:42

After a bit searh within de comments, it seems it's a very well known bug.

Any chances we can get this fixed ?

Calendar Discussion
by webdc
2010-04-08 20:23

JSCal2-1.7 maybe have a bug, example 2010-04-09 12:00, it shows '2010-04-09 12:00:00'; but 2010-04-09 00:00, it shows '2010-04-09 12:00:00' too.

How to disable previous Day
by Lee Wei Ming
2010-04-10 17:35

Hi,

I am trying to disable the previous days you ca so that user cant CHOOSE any of the dates before TODAY.

Kindly help Thanks Appreciate in advance

Re: How to disable previous Day
by Day
2010-04-12 11:00

@Lee Wei Ming try this.

Calendar.setup({ cont: "YOUR_CALEND", min: Calendar.dateToInt(new Date()), max: 21001231 });

Time and Mutliple Textboxes
by Richard
2010-04-12 20:30

I have a Start date/time field and a Stop date/time field that i need to populate with date and time. I have some code that i got from here but it will not update the time if i change it using the calendar (for either field). Can someone hook-me-up with some good code on how to do this?

Thanks RB

%o can't work well
by kaifu
2010-04-13 10:55

My code as below: <html> <head> <title>Demandforce D3</title>

&lt;link href="/css/df.css" rel="stylesheet" type="text/css"&gt;
&lt;link href="/businessportal/css/dash.css" rel="stylesheet" type="text/css"&gt;
&lt;link href="/businessportal/css/setupleft.css" rel="stylesheet" type="text/css"&gt;
&lt;script type="text/javascript" src="calendar.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="calendar-en.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="calendar-setup.js"&gt;&lt;/script&gt;

</head> <BODY> <input type="text" name="birthdate" id="f_date_b" value="04/01/1973" readonly="readonly"/> <button type="reset" id="f_trigger_b">...</button> <button type="button" onclick="clearBirthdate()" >Clear</button>
<script type="text/javascript"> function clearBirthdate(){ document.getElementById("f_date_b").value = ""; } Calendar.setup({ inputField : "f_date_b", // id of the input field ifFormat : "%e-%o-%Y", // format of the input field showsTime : false, // will display a time selector button : "f_trigger_b", // trigger for the calendar (button ID) singleClick : true, // double-click mode step : 1 // show all years in drop-down boxes (instead of every other year as default) }); </script>

</body> </html>

Calendar Discussion
by Nair
2010-04-13 13:08

Am using rangeSelection.html calendar, cool :-). Calendar showing in a div, but how can i hide the calendar first (like this demo, multipleFields.html) and then going for date range selection.

Calendar Discussion
by Peter K.
2010-04-13 14:42

Hi.

Is it possible to completely remove the year menu? In a way that you cannot select the month/year from the menu that appears when you click the calendar's title (Eg April 2010) but rather scroll months/years only through the appropriate arrows...

Calendar Discussion
by Martin
2010-04-13 17:04

I try paste calendar to tag <form>. When I click to "trigger" button, form is send :(

if I past out of form tag, everythink is ok.

Is it possible, disable submiting form tag by trigger button?

Calendar Discussion
by Martin
2010-04-13 17:17

afrter apply type as <button id="d_rangeDatum_trigger" type="button">...</button> form is not submit, fine, but calendar is not apper after click :(

Calendar Discussion/initial date selection
by Eric
2010-04-13 18:35

I'm having a problem with setting the initial date of a calendar. I'm using the following code to set up a calendar: Calendar.setup({ inputField:"toPeriod", ifFormat:"%m/%d/%Y", date:20091101, button:"toCal", align:"Tl", singleClick:true }); Regardless of what I put in the date property, the calendar always starts at today's date. Am I doing it way wrong?

Calendar Discussion FORM SOLUTION
by Martin
2010-04-13 18:47

<form action="" id="abc" name="abc"> <input id="f_rangeSX" /> <button id="f_rangeSX_trigger" type="button">...</button>

              &lt;button id="f_clearRangeStart" onclick="clearRangeStart()"&gt;clear&lt;/button&gt;
              &lt;script type="text/javascript"&gt;
                new Calendar({
                        inputField: abc.f_rangeSX,
                        dateFormat: "%B %d, %Y",
                        trigger: abc.f_rangeSX_trigger,
                        ... etc.
                };
              &lt;/script&gt;

</form>

Calendar Discussion
2010-04-13 19:56

Hello. Is it possible to disable the weekends? Thanks a lot :)

Re: Calendar Discussion
by Mihai Bazon (page author)
2010-04-13 21:23

Yes.

You are welcome. ;-)

(see the documentation, look for the "disable" constructor argument).

Calendar Discussion
2010-04-15 11:47

Thank you very much. I need to disable some dates like actual and past dates and the next two days. I need also to disable the weekends. I can disable all dates except the "date.getDay()==7". Even if I put only: disabled: function(date) { if (date.getDay()==7) { return true; } else { return false; } } it doesn't disable. Here is the code: new Calendar({ inputField: "f_rangeStart", dateFormat: "%Y-%m-%d", trigger: "f_rangeStart_trigger", min: <?=date('Ymd+2')?>, //max: 20100413, bottomBar: false,

        disabled: function(date) {
          if (date.getDay()==6 || date.getDay()==7) {
              return true;
              } else {
              return false;
              }
          }
});

Can you please help me? Thank you very much :)

Re: Calendar Discussion
by Evan
2011-01-12 04:24

Probably because it goes from 0-6.

Calendar position problem in IE 7, IE 8 and firefox
by Milan
2010-04-15 23:56

Hi,

The web application I am working on uses "$Id: calendar.js,v 1.51 2005/03/07 16:44:31 mishoo Exp $"

I am working in upgrading the application compatible with IE7, IE 8 and Firefox. And I have landed in getting the problem in the calendar position straight away with IE 7, IE 8 and Firefox.

Let me give an example of a scenario, to get better picture.

i) In a screen , when I click Calendar Image, I get the calendar image open up in right position( i.e just beside the Calendar icon). But when I get some validation error message on the top of the screen...and click the calendar icon again, the position of the calendar opens up at the same old position in the screen as before.

As a result, the date calendar icon and calendar image open up in complete different positions...its like because of the validation error messages in the top, the Date calendar Icon element goes down in the screen , and the calendar image opens up in top of the date element. No more beside.

Can anyone help me in positioning the calendar image proper beside in the date calendar element. This problem is in IE 7, 8 and Firefox.

Thank you very much :)

Regards M

Calendar Discussion
by Boda
2010-04-19 19:37

Hi everybody. Is it possible to display two months at the same time?

Re: Calendar Discussion
by Mihai Bazon (page author)
2010-04-19 21:11

Not quite. There's a hack which you can do, though--display more calendars and synchronize them. There is a sample here: http://www.dynarch.com/static/JSCal2/demo/3-months.html

Calendar Discussion
by Amy
2010-04-19 23:09

I need to change the position of where the calendar pops up but I cannot find where to change it. I have looked in the customJs file, but all I see is the align defaults to B1. I don't see anywhere you can change the parameters such as "top" as I need to move it farther down the screen.

Select date off by 1 day
by Jeff Miller
2010-04-20 17:50

When input field contains a date, like 3/12/2010, when popup is shown, 3/11 is selected instead of 3/12. I am using JSCal2-1.8. This bug can be reproduced on any of the demo pages.

Re: Select date off by 1 day
by Jhonny
2010-04-22 00:05

Yes, I'm the same. Anyone know how to fix?

Calendar Discussion
by Anil Gupta
2010-04-22 11:25

Hi,

First of all thank you for writting such a nice calender, it's really cool.

Well, I'm using this datepicker in a website and I need to start the it from (Cuurent Yr - 16), I mean Current year is 2010 so I want to start it from 1994. Please let me know if this is possible.

Thanks is advance, Anil Gupta

Calendar Discussion
by Michal
2010-04-23 11:30

Hi I have two calendars in the form. I want to automatically fill in the date from first calendar into second calendar but onChange event on the input element doesn't work. Can you tell me how to solve this problem?

Calendar Discussion
by zakaria
2010-04-26 12:29

hello, i have a problem with the calendar to marble carryforward, it is about the format of the date of the calendar that i use on the level of the seizure of the forms. the format of the date of the calendar is " dd-mm-yyyy" , but the format of the date on the basis of given SQL is " yyyy-dd-mm" , i would like to know how to find the source code on marbling to modify the format of the date of the calendar and to put it in the form " yyyy-dd-mm". thank you

Calendar Discussion
by Rémi
2010-04-27 10:31

Hello,

I recently installed the last version of JSCal2. It solved some problems I had with 1.7 but I get new problems.

My code is the following:

Calendar.setup({ dateFormat : '%Y/%m/%d %H:%M', showTime : 1, align : 'Tr', fdow : 1, min : 20100427, time : '1300', inputField : 'ID_tmpl_impopt_1', onTimeChange : function(cal){try{this.inputField.value = this.selection.print(this.dateFormat);}catch(e){}},trigger : 'BTN_tmpl_impopt_1' });

With version 1.7 of the calendar, default time was 13:00 (this is what I want). With 1.8 version, default time is the current time (not 13:00), and this is the GMT time. I'm in the "Europe/Paris" timezone (GMT+2) so the default time is now the current time - 2hours.

I get another problem regarding time. When I select a date, the time changes to 10:00 (I assume this is noon -2hours, if I select a date in december for instance, I get 11:00)

Maybe I do something wrong, could you please tell me how can I solve that?

Thanks a lot.

Re: Calendar Discussion
by Mark
2010-04-28 20:25

I too cannot get the "time: hhmm" property to apply to my calendar. It just defaults to now.

Re: Calendar Discussion
by Alex Stoy
2010-05-14 17:11

I have same problem with time changing to 10:00. Because of that I had to stick with version 1.7. I've just discovered that this happens with Calendar.SEL_SINGLE (which is default) and it does not happen with Calendar.SEL_MULTIPLE. Pls, fix this! Thnx.

Calendar Discussion
by rrepaka
2010-04-27 18:53

Disabled function & firefox issue: I am trying to have any date before today as disabled. That part of the code is working fine. But when i have the disabled date turned on, and when the user clicks on a disabled date, the calendar disappears. On IE its working fine, so when the user clicks on disabled date, the calendar does not disappear/hide. Please help on how to fix this issue.

Re: Calendar Discussion
by rrepaka
2010-04-27 19:07

More Info: I am using the latest version(JSCal2-1.8) and in the popup mode

Calendar Discussion
by Heiner Heinzel
2010-04-28 12:28

Hello. Thank you for this calender.

But I get the this error message:

Fehler: cal.manageFields is not a function

Did anyone know why?

Calendar Discussion
by Tanya
2010-04-28 17:14

How can you disable the scrolling of the year?

Calendar Discussion
by Miguel
2010-04-28 23:51

Hi, a need what month is selected...

Calendar Discussion
by Feg16
2010-04-29 08:06

In IE6 Calendar is buggest. Two screenshots:

http://www.sharemania.ru/0228908 http://www.sharemania.ru/0228182

And it would be desirable that it was possible to enter time manually and an option which would prohibit a choice of date from the keyboard

Firefox
by Gaurav
2010-04-30 06:30

Hi, This calendar is working for me in IE but in Firefox it is not working. I am using Firefox 3.6.3. I have followed the steps mentioned above..

In popup version of the calendar selected date is off by 1 day
by Jazzer
2010-04-30 12:11

In popup version of the calendar selected date is off by 1 day when you trigger it. Is it possible to fix it in onshow event or something? How to alter which date to select? Thank you!

Problem with date format in ie8/7
by Luca
2010-05-03 13:31

Hi, great calendar! but i got a problem with date format in IE8/7. I defined the format as shown in the documentation:

cal is the instance of calendar:

cal.manageFields("arrival_trigger", "arrival_date", "%d/%m/%Y");

it shows correctly in FF and Chrome, but in IE8/7 it shows as default (%Y-%m-%d). how's that? could you please help?

Thanks

Calendar Discussion
by zakaria
2010-05-05 11:06

hi luca,

i have the same probleme, but i dont know where can i find the source of the calendar to change the format of date, can you tell me where i can do it?

thanks

Re: Calendar Discussion
by Luca
2010-05-06 16:30

hi zak i found the guide in the documentation but that doesn't seem to work good on ie.. :(

Disabled mouse wheel over the calendar
by Diego
2010-05-05 12:55

I need the calendar don't move to others months when the mouse is over the calendar and someone use the wheel of the mouse. How do I avoid the wheel of the mouse over the calendar? I can disabled the wheel over the page or differents html elements but not over the calendar.

Thanks¡¡

Calendar Discussion
by zakaria
2010-05-06 16:42

hi luca,

what do you mean by guide? where is it? if i find it i will can to answer a lot of questions ^^ thanks

Re: Calendar Discussion
by Luca
2010-05-07 12:38

hi, this is de documentation http://www.dynarch.com/projects/calendar/doc/ here it specifies the function "dateFormat" but it won't work well in ie7/8

Re: Calendar Discussion
by zakaria
2010-05-07 12:49

hi, thanks for your answer luca, the guide will be helpful for me i find the code wich i search but i want tu put it in a formular in jasper i dont know where can i add it to have a resulat in the calendar of datatype

Update settings after an event
by GxiGloN
2010-05-11 11:36

Hi, first thank you very much for this awesome calendar ! Great !

I have juste one little question : how could I update the settings of the calendar (particularly the 'min' value) after an event on my script ?

Thank you in advance.

Calendar Discussion
by Victor
2010-05-12 16:41

Is it possible to bind a input field and a button for calendar control without id and using class? My controls are generated dynamically. So the input control & the button controls does not have the id but they are having class.

Multiple Months Display
by bagofjuice
2010-05-12 22:05

I see this has been asked a few times but I couldn't see an answer. Is there a way of displaying multiple months to make selecting date ranges easier?

Calendar Discussion
by Sue
2010-05-13 14:21

I am trying to disable sundays, bankholidays, today & all previous dates all in the same calendar. I have managed to disable sundays OR bankholidays but not both. How do I disable all these?

Calendar Discussion
2010-05-14 17:34

when i put a tag <form> the calendar not shown as normal. what it could cause the problem?

Calendar Discussion
by Karol
2010-05-16 01:38

Hi does any one know where can I download this calendar ?? http://polacy.co.uk/index.php I find this site by going to Source Code and chceck some of their .js

Calendar Discussion
by Olaf
2010-05-16 03:00

Hi, is there any known problem with the calendar and Konqueror-Browser? (Tested with OpenSuse Konqueror 4.3.5 and Ubuntu Konqueror 4.3.2)? The calendar is integrated in "egroupware" (egroupware.org), and when I open the calendar in the windows for adding new calendar-items, tasks a.s.o., it kills the other menu-items for the time-settings. Bye, Olaf

Calendar Discussion
by zaky
2010-05-16 13:40

Hello , Great product ! I am using phpscheduleIt which uses the JScalendar 1.0. Now I download the 1.8 version of the calendar. How should I go about upgrading? Actually I just wanted to be able to show the week number on the calendar it is possible to do it with JScalendar 1.0? How? I would appreciate any suggestion. In advance thank you for your time

Disable Range
by Luca
2010-05-17 07:27

I need to disable the range function. I need to print every date selected. es: 05-17-2010->05-20-2010 i need to fill the input field with 05-17-2010, 05-18-2010, 05-19-2010 etc....

tnx for your help

Timezone setup
by Jebamalai Jaya Chitra
2010-05-18 13:45

By default it is getting the date and the UTC date and time. How can I change the timezone

Adding Seconds to the Time
by jose gzz
2010-05-18 20:16

How can I add the seconds? in the calendar I can only select the hour and minute, but what about the seconds?

Re: Adding Seconds to the Time
by Mihai Bazon (page author)
2010-05-18 20:50

I guess I didn't think that someone will need seconds too. :-) I'll keep this in mind for the next version, it should be fairly easy to add.

Re: Adding Seconds to the Time
by jose gzz
2010-05-18 22:30

jejeje Ok, I´ll wait for that ;-) I Hope don't take you much time. XD

Calendar Discussion
by Gavin
2010-05-20 13:19

The new calendar looks great but the lack of support for IE6 means I'll have to go abck to version 1.

Calendar Discussion
by Krupal
2010-05-23 15:24

What are the minimum parameters to pass Calender object to display the calender.

Firefox issue
by gaurav
2010-05-24 07:03

Hi, I am using this calendar. In firefox I have to click the calendar button twice only then the calendar appears but it works fine with IE. Any idea what can be the issue? Here is my JS code function loadCalendar(){

var inputfieldId = "endDateId";
var calId = "endCalendarId"
var startDateCalendar  = Calendar.setup({
    trigger    : calId,
    inputField : inputfieldId,
    onSelect   : function() { this.hide() }
});

}

here is my html <input type='type' id='endDateId' disabled='true' style='width:65px;' value='$endDate'> <input id='endCalendarId' onclick='loadCalendar()' type='button' value='..' >

Seconds on Time Format
2010-05-26 23:01

I need a date/time picker that includes the seconds for the time selection. Is there any chance you might add that to your control? Or, is there some way I could add it myself?

Calendar Discussion
by Claudio
2010-06-03 05:44

Hi, this is a pretty cool calendar but i have one problem, i have a drop down horizontal css menu, and in the div content the jcalendar, the problem is when y pass the mouse over the drop down menu, the jcalendar goes over the menu, how can i fix it??

i try to use z-index in the menu.css and content.css, but nothing works.

any suggestions???

thanks in advance

Calendar Discussion
by Claudio
2010-06-03 05:46

Sorry i forgot to mention, this problem only happend with ie7, mozilla and ie8 works fine

Calendar Discussion
by fplus
2010-06-03 17:54

hi! Is there a reason why when I include your code in an existing page, it works fine with IE8, but with Firefox, when I click on the button, calendar appears and close immediately. On a lonely page, it's ok on both Ie & Ff Thanks

Calendar Discussion
by Tom
2010-06-03 23:04

I select a date with a popup calendar and then populate a field. Works great. I bring up popup again and the date selected is one day previous. The examples on your site do this as well. I am using IE8. Thanks

Re: Calendar Discussion
by Tom
2010-06-04 01:02

It seems that 1.7 does not have this problem

how to disable previous date disable
by maya
2010-06-04 12:31

i have put your code how disable previous date...

Calendar Discussion
by JJ
2010-06-04 20:32

Do you have code to post that fixes the bug mentioned in post #597? Thanks.

Re: Calendar Discussion
by Tom
2010-06-04 22:03

No code to fix. I decided to use version 1.7 instead.

Calendar Discussion
by Raji
2010-06-07 21:04

Hi, I tried to override CSS property "DynarchCalendar-day-disabled" which works fine in firefox. But in IE- not able to override.. and always shows in black.(need blue). lines #534-535 in jscal2.js shows as below: if(dis) html[k++] = " disabled='1' ";

not able to override'disabled='1'" in CSS.. any solutions for this?

Calendar Discussion
by Raji
2010-06-07 23:08

contd.. If I change the variable 'disabled' in Jscal2.js line 535 and in line 852.... if (el && !el.getAttribute("disabled")) to some other variable it works fine as expected... any other solutions?? or bugfix will fix this problem...

How to disable date ranges
by deJaya
2010-06-08 17:38

Hi - many thanks for your continued work on this great tool.

A couple of people have asked this before but I can't see any answers. I need to stop the calendar returning dates in a range format.

so if i select the 1st to 9th of July, I'd like the dates to be returned individually in a list [just like other dates] .. not as 01/07/2010 -> 09/07/2010

many thanks in advance to anyone who can help.

deJaya

Calendar Placement
2010-06-09 05:46

When a popup calendar is attached to an element within a large scrolling area, the position seems to be calculated without taking scrolling into account. Resulting in page growing (document scroll bar appears) and displaying the calendar at the bottom.

Calendar Discussion
by Luis
2010-06-10 20:22

I have a problem with your calendar. When I put the code inside a form, when I push the button to see the calendar, automatically the form is activate and change the page to the destination page indicated by the form.

Something like this:

<form name="prueba" id="prueba" method="post" action="xajax1.php"> <input id="calendar-inputField" /><button id="calendar-trigger">...</button> </form> <script> Calendar.setup({ trigger : "calendar-trigger", inputField : "calendar-inputField", dateFormat: "%d/%m/%Y", onSelect : function() { this.hide() } }); </script>

You can see the problem in this address: http://lcsm1966.arredemo.org/prueba_cal.php

When you push the dot dot dot button the page change. I appreciate if you can tell me where is the mistake. I guess that I do something wrong.

Thank you.

Calendar Discussion
by Divakar
2010-06-14 19:03

I am having the same issue mentioned in #597.But i need to use IE8.

Any fixes for this issue.

Calendar Discussion
by Breim
2010-06-15 13:28

i find this calendar very cool and want to use it with DWR in an application using JAVA tech, so i didn't find how to get the current month using onChange event ?

Re: Calendar Discussion
by Aden
2010-06-16 01:22

if i understand well : date parameter reference the current date. .. in disabled : function(date){ if (date.getDay()==5) then ... } the date here reference a date of current month, you may recover
the month by date.getMonth()....!

Calendar Discussion
by Ced
2010-06-15 15:00

This calendar is just perfect! But I am not very good in js, and i am trying to have my calendar positioned to the current date + one year. I have tryed with setdate but no success. Also how to disable passed dates? thanks for your help. Rgds, Ced

Calendar Discussion
by Mark
2010-06-16 19:43

I'm having the same issue as 592 above. When I load my page in IE, FF, or chrome, I have to click on the calendar image twice to make the Calendar appear.

I have my calendar image tied to the onClick() event:

<img src="calendar.jpg" ... onclick="showCalendar();" />

then I have my Calendar Setup happening in showCalendar()

Help would be appreciated.

Thanks, Mark

Re: Calendar Discussion
2010-06-17 15:18

Hi Mark,

I have experienced such an issue one year back, when I was working on a old project, coded by some other developers. Actually the onclick function was calling Calendar.setup. So on the first click, it initiates. And when you click on the second time, the calendar opens. If this is the case with you, then try to initiate the calendar, before you click on the image.

Thanks, Debiprasad

Re: Calendar Discussion
by Mark
2010-06-17 18:42

Debiprasad,

You've nailed it perfectly! I am doing the Calendar.setup in my onClick function call.

You said to initiate the calendar before I click on the image. I've attempted to do that, but I'm still not getting the results I want. Could you please help me know where and how I would initiate the calendar outside of my function?

Thanks! Mark

Re: Calendar Discussion
2010-06-17 18:51

Initiate it when page loads. You must know "onload".

Calendar 'position' is always 'absolute', sometimes I need 'fixed'
2010-06-17 15:13

Hello,

The position of calendar element is always absolute.

There are some elements, which triggers the calendar, are having a fixed position. So, when the calendar pops up for the element, have an absolute position. So, while the element is showing at the middle part of long scrollable page, the calendar is showing at the top.

To fix this, I added a bit of CSS.

.calendar { position: fixed !important; }

That worked as intended. Unfortunately, all the other calendar follows the same rule. There are other elements who does not have a fixed position. If I apply the above CSS, then I can't see where the calendar pop up is.

Is there any way, so that I can manage position of calendar element for few instances on the page?

Thanks, Debiprasad

Calendar Discussion
by MNK
2010-06-21 19:03

Hi,

I really like your calendar, used it once in my studies. There's a bug issue in Google chrome tho. It skips some month.

MnK

Disabled mouse wheel over the calendar
by Diego
2010-06-22 14:49

I need the calendar don't move to others months when the mouse is over the calendar and someone use the wheel of the mouse. How do I avoid the wheel of the mouse over the calendar? I can disabled the wheel over the page or differents html elements but not over the calendar.

Thanks¡¡

Change Year to display in B.E.
by Sarawut
2010-06-24 04:45

I try to change year in all part of calendar from A.D. to B.E. . I know in Year in B.E. = Year in A.D. + 543, But I can't change anything in JSCal2.js.

Please help me. Thank

Popup double calendar
by Danilo
2010-06-24 15:17

Hello. I'm sorry for my English... The calendar is really nice! My compliments. I have prepared a STATIC double calendar, visible here: http://www.deasistemi.net/calendario/calendario.html

Is possible to make a POPUP double calendar that appears on pressing the button?

Thank you. Danilo (Italy)

Calendar Discussion
by Giovanny
2010-06-25 17:46

I have this error, the date is shown with a day less, any suggestions?

http://img692.imageshack.us/img692/5023/bugjscal.png

Calendar Discussion
by alexis
2010-06-26 13:42

The calendar doesn't run perfectly with Google Chrom (ver 5.0.375.86). In the Demo Page, the calendar doesn't display the months like Feb 2010 or March 2010 or November 2010 whereas it works well with Opera or Firefox browsers.

How to work with Struts?
by Oscar Garcia
2010-06-28 15:05

I realized that this interesting calendar does some kind of reload when you pop up a calendar. The problem is that it "needs" an action with struts, and this is a bad solution.

My question is whether I can use this calendar as a pop-up without reloading the page. Thank you.

Calendar Discussion
by Federico Iglesias
2010-06-30 03:27

I would like to integrate your Calendar at a Joomla Site for search of Flipping Book Tabloids.

Pls. contact me so I may describe my requirement.

Calendar Discussion
by Leo
2010-06-30 16:18

Hello, I notice a problem with Chrome : some month in 2010 (February, March, November) are not available... It's so strange! Otherwise that's a really good and usefull script =)

Midnight time turns to lunchtime
by Volker
2010-07-01 08:24

Hi,

First of all this is really a great calendar. For me the best I found so far...many thanks.

But one thing puzzles me: When I chose the time for midnight 12:00AM or 00:00 in 24 hour format it always comes out at 12:00PM or 12:00 in the form field.

Is this a minor bug or have a just done a wrong setting?

Any comment would be appreciated.

Many thanks

Re: Midnight time turns to lunchtime
by Volker
2010-07-01 17:01

In case someone has the same problem, the solution is right here:

See version 1.7 Post #17

Years < 100
by Jim Hatfield
2010-07-07 13:50

Hi, if I look at the year 99 (not 1999) then Dec 31st shows as a Friday. But the following day, Jan 1st 100, also shows as a Friday.

initial time
by razi8
2010-07-13 17:54

Hi,

Sorry for my English but come from Polish. I have problem from displaying initial time. code time:1200 does not act. Why? How can I establish initial time?

I ask about help.

Calendar Discussion
by Kartheeswari
2010-07-14 12:55

How to change the language of the calendar?

Calendar Discussion
by Eric
2010-07-15 19:45

There is a bug when you reopen the calendar after you select a date. The highlighted cell is a day before the date you selected first. For example, let's say I open the calendar and select July 15, 2010 and then I close the calendar. When I reopen that calendar the selected day is July 14, 2010. Any ideas on how to fix this?

Re: Calendar Discussion
by Sasha
2010-08-06 01:00

I have the same problem...

Popup Calendar
by james
2010-07-21 08:44

Hi I need to show the calendar above the textfield . I used align and popup option. But i didn't get it. I didn't know how to use these. Can any one tell me.

Calendar Discussion
by simon
2010-07-21 12:28

Can we now change timezone for JSCal?

Calendar Discussion
by Sarath R S
2010-07-21 12:42

Can we set time zone for the calendar

Calendar Discussion
by William
2010-07-21 18:03

Hello

I use the calendar in popup mode and the time is not correct there are two hours of difference with the local time (GMT+2). Do you know if there is an option to indicate the timeZone to the calendar. Thanks

Calendar Discussion
by peter
2010-07-22 10:37

Hi guys how to get unix time when i change the time in calendar

Calendar Discussion
by Jingo
2010-07-23 10:08

Its working in asp.net textbox field also. but there is a problem while the aspx page is postback in updatepanel.

Calendar Discussion
by anton.grinenko
2010-07-26 19:16

Greetings all, I found some strange behaviour in a calendar. If I manually fill the year input field with text "88888888" I'll get "undefined NaN" text output for year label and "NaN" text for every calendar day. It is not acceptable for my application. Client doesn't like it. Can you help me to fix this problem? Any advice?

Re: Calendar Discussion
by Valeriy
2012-02-03 15:42

I have the same issue. Any advise how to fix it?

Use with conditional ASP statements?
by ricardo
2010-07-27 18:49

Hi there,

so many questions on this board, why isnt there a forum??

either way i have another question, if someone can help i'd really appreciate it.

I've got version 1.15 and i'm trying to use it in an asp page's if statemen. so i load 1 and it works fine, however when i load a second calendar popup through the If statement the icon doesnt work, and you have to click the text box instead.

any1 else had this problem??

Calendar Discussion
2010-07-28 02:02

need for planning

Calendar Discussion
by Václav Domin
2010-07-28 15:41

On FF 3.6.8 is the month and year aligned to right side of header. And the month area is small. image is on: http://potapeni.na.jihu.cz/image/komentare/bad-calendar.jpg The language setting is one.

How Disable Range
by pat
2010-07-29 13:31

I need to disable the range function. I need to print every date selected. es: 05-17-2010->05-20-2010 i need to fill the input field with 05-17-2010, 05-18-2010, 05-19-2010 etc....

thanx for your help

Calendar Discussion
by MaxDM
2010-07-29 15:04

Greetings all!

I have some problems when the initial time is set. For example: <form action="javascript:void(0);"> <input id="f_rangeStart" value="15/07/2010 15:00"/> <button id="f_rangeStart_trigger">...</button> <script type="text/javascript"> Calendar.setup({ inputField: "f_rangeStart", dateFormat: "%d/%m/%Y %H:%M", trigger: "f_rangeStart_trigger", weekNumbers: false, showTime: true, minuteStep: 1 }); </script> </form>

So, the time is set to 15:00 and it's correctly displayed in the input box. When I push the button to select another day, the time is reseted to 00:00.

How to make that time is not reset to 00:00 when I select another day? Another words, I need that time doesn't changed from the initial value.

own external function
by Vita
2010-07-29 17:11

Hi all,

i would like to add own function (which is defined in external file) which should follow up with OnBlur or OnChange event. How can I to do it?

I try it somethink like that:

Calendar.setup({ inputField : "date", trigger : "buttonCal",
dateFormat : "%d.%m.%Y", onSelect : function() { this.hide() }, onBlur : someOwnFunction() });

But it don't work.

(Sorry for my english :) ).

Thanks, Vita

Lithuanian(lt) translation
by alberlau
2010-07-31 13:44

Where to upload translation file?

Calendar Discussion
by sree
2010-08-03 13:17

Calender is very nice but how to download it,and i want aceept calender before systemdate only,u can help u?

Calendar Discussion
by Nelson
2010-08-04 21:15

Hi, I have notice that when the date changes by the wheel or by the trigger the selected time also changes, I don’t like that behavior. Can anyone help with this? Thanks.

Chrome Issue
by karti
2010-08-05 14:03

Hi everyone I have some problem in calendar (JSCal2-1.8) it works fine in FF and IE browsers. But even it doesn't appear in chrome browsers (version 5.0.375.9)can any one tell me.... my code is Calendar setup ({ inputField : "fromTxt", dateFormat : "%d %b %y", trigger : "fromBtn", align : "cR", onSelect : close });

Calendar Discussion
by dave
2010-08-21 15:53

will gladly purchase this if can get to work as needed. for now, I have some error -- calendar does not appear with this test code -- http://proximityone.com/jscal2.htm

can you please help. thank you.

one other thing. i want to show 1 date highlighted and when that date clicked show text "xyz" (as described in your examples) - how to set code?

thank you.

Re: Calendar Discussion
by John
2010-08-29 00:13

Confirmed -- it does not display. I'm having the results (though difference code). Spent over 3 hours trying to get a simple example. Note, the demos do work.

Bug with multiple calendars
by Jerroyd Moore
2010-08-25 22:55

I was working with this demo (http://www.dynarch.com/static/JSCal2/demo/multipleFields.html)

I noticed after you select one date, and then open the calendar with an empty value, the Calendar highlights the previous value when no date should be highlighted. It still works fine, but it may be confusing for users :(

Calendar Discussion
by John
2010-08-29 00:10

I could not get Firefox to display your basic example. In my debugging/research I noticed that simply loading the javascript files causes a page not to display. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>JSCal2 testing B</title> <script type="text/javascript" src="/JSCal2/js/jscal2.js"/> <script type="text/javascript" src="/JSCal2/js/lang/en.js"/> </head> <body> <p>This is a test of JSCal2using an inline mode.</p>

&lt;/body&gt;

</html>

Removing the script references causes the page to display normally; adding them causes a blank page to display.

Curious.

not selecting the date if started on a disabled day
by gigix
2010-09-07 03:25

If you are on a disabled date (let's say it is Sunday and all Sundays are disabled) then you cannot select nothing in the current month.

You have to change the month or to re-sort the weekdays. Any solution? Thank you.

Re: not selecting the date if started on a disabled day
by gigix
2010-09-07 23:32

updated to the latest version. all fine.

Calendar Discussion
by Tobi
2010-09-08 09:58

How to disable all dates till today?

how to disabled the passed days
by gigix
2010-09-08 16:21

<code> <script type="text/javascript">

  //specific dates
  var DISABLED_DATES = {
      20100908: true
  };

  function disallowDate(date) {

      var currentTime = new Date();

      // no sundays
      if (date.getDay() == 0) {
          return true;
      }

      // no past
      if (date.getDate() &lt; currentTime.getDate() && date.getMonth() &lt;= currentTime.getMonth() && date.getFullYear() == currentTime.getFullYear()) {
          return true;
      }
      if (date.getDate() &gt;= currentTime.getDate() && date.getMonth() &lt; currentTime.getMonth() && date.getFullYear() == currentTime.getFullYear()) {
          return true;
      }

      date = Calendar.dateToInt(date);
      return date in DISABLED_DATES;

  };

  Calendar.setup({
      inputField     :    "yourinputfield",            // input text field id
      trigger        :    "yourbuttonid",             // Calendar id

      min: 20100101,
      max: 20111231,     

      disabled    : disallowDate,
      onSelect    : function() { this.hide(); },


  });

</script> </code>

Re: how to disabled the passed days
by Tobi
2010-09-14 16:33

Thx!! works.

I need to know how to set max to changing value, like today+365

Re: how to disabled future days > 1 year
by gigix
2010-09-15 11:38

something like this:

<code> // no future, from today + 1 year if (date.getDate() > currentTime.getDate() && date.getMonth() >= currentTime.getMonth() && date.getFullYear() > currentTime.getFullYear()) { return true; } </code>

Re: how to disabled the passed days
by gigix
2010-09-08 16:26

stupid MM syntax, here is the code in plain text:

http://kul.ro/JSCal2_disable_past_days.txt

Wrong initial date displayed
by Omar
2010-09-08 15:53

Calendar will pop-up showing exactly one day before than the one display in the input object.

i.e. , an input with "2010-08-28" and when the calendar is triggered the day selected will be 2010-08-27

(and it happens the same whatever date I select and trigger the calendar again)

Re: Wrong initial date displayed
by tituxio
2010-09-10 07:07

I have the same problem too! I'm using MAC with firefox 3.5.9 and safari 5.0.1, i'm testing with the demo page. when i select one date on a popup calendar and then reopen, the selected date is one day before ...

Re: Wrong initial date displayed
by Rob
2010-09-13 23:12

I have the same exact problem.

Re: Wrong initial date displayed
by Rob
2010-09-13 23:16

Just as a test, I tried it on the DEMO site on here as well. It has the same issue. Pick a date with [...] by pulling up the calendar. Then go back and click [...] again, it will display one less as the previously picked date.

Calendar Discussion
by suresh
2010-09-09 13:12

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

Disable Future Day
by Scott
2011-03-18 12:16

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

Calendar Discussion
by suresh
2010-09-09 13:12

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

Calendar Discussion
by Luis
2010-09-10 11:27

Hi, I need to know the command to put the calendar multiselect with normal mouse click and not with the control key pressed.

Thanks

Calendar Discussion
by keith
2010-09-10 15:30

Hello Mihai, please forgive the lack of knowledge ,but currently my jscal seems to output the chosen date i click on, to my dbase field as a "TEXT" string , and my mysql dbase field is currrently set up as type " TEXT" , is it possible to output the jscal chosen date as mysql "DATE" format and change my dbase field type to " DATE " so i can manipulate the dates to display in ascending or descending order on my website page.

Calendar Discussion
by Archie Warnock
2010-09-12 23:53

Can JS Calendar display a full year at a time? This would be helpful in selecting multiple days over an entire year.

Thanks.

Calendar Discussion
by Andrés
2010-09-13 13:36

Hi, and thanks a lot for this great calendar! I'm using it to show a full year. Can the top controls and mouse wheel functionality be disabled? I want it to be static, with each calendar for each month, and being able to change the date defies that. Thank you!

Popup selected date drawing bug
by Gren
2010-09-14 01:46

There seems to be a bug in version 1.8 only in the popup calendar. If you select a date and close the calendar, then re-open the calendar, the selected date highlighted is focused on the previous day. The logical selected date has not changed... it's only the drawing that is highlighting the wrong day.

You can see this on the demo popup calendar on this site.

Thanks! (It's still the coolest JS calendar)

Popup selected date drawing bug
by Gren
2010-09-14 02:18

Sorry... I just noticed that this same bug is described in # 660 - #663.

I would still appreciate a fix.

Calendar Discussion locale
by santhosh
2010-09-16 16:31

Hi, I want to work on both english and german calendars. How to pass langarg to pick into language picker

Locale
by santhosh
2010-09-16 16:34

Hi, depends upon locale i need to populate date picker. For that where i have to change.

Calendar Discussion
by Lau
2010-09-17 18:53

Is it possible to add a link to a certain date?

Calendar Discussion
by Damian
2010-09-20 05:33

Is it possible to force the popup calendar to display from within my code? Instead of using the trigger on a button, can I just call say cal1.show()?

Calendar Discussion
by Simnesh V
2010-09-20 10:45

Hi, When I am using the calender in ASP.NET model popup, its displaying under the Model popup..please give me a solution for this.....

Regards Simnesh

Calendar Discussion
by User
2010-09-21 00:56

There appears to be a bug in IE; when you hit the Enter key on a screen that contains the Calendar field, the Calendar always pops up even when it does not have the focus. (You could try it on the Demo screen (JSCal tab);...I tested this in IE8) Could you provide a patch to fix this problem?

Thanks for your help!

Calendar Discussion
2010-09-21 20:59

very nice APP good job is their any way we can integrated with Arabic Hijri Calendar and make the arabic lang

i can help just give me the way to go with it

thanks

A suggestion
by Klama
2010-09-22 20:24

First, you donde a great job with the calendar. I want to suggest something for a new version; sometimes for some reasons you have to select a whole week, maybe you can do an update so you can select a whole week pressing the "Week Number".

Calendar Discussion
by Adrian
2010-09-22 23:09

Hello. It is possible to introduce a link in a date? I mean that when you click a date, it's possible to take you to another page? Thanks.

How to make the previous / future months navigation disappear?
by Johnny
2010-09-24 05:04

As title, ie. I have to take out the first week of next month / last week of last month from the current month display unless i select the next month / last month to navigate.

Any ideas?

Calendar Discussion
by Kamlesh Kumar
2010-09-24 07:59

hello this script is not working with asp.net while working fine with html. while i work with asp.net rum time error comes object require ar.

Calendar Discussion
2010-09-24 18:09

Hi,

Sorry for my english, but i'm french. I would like to display jscalendar in administration parameter product/type of product/parameter/date field in virtuemart (type of parameter) as it's displayed in status form. So a search according to parameter (date field) will be possible. How can i do that. Thanks best regards

Calendar Discussion
by Marivic
2010-10-01 12:06

I was booking a flight at Airphilexpress, i had a problem with the calendar. It is now dated March27, 2011. How can i return to the present date on their website? Even how much i try to move the calendar it stil stays at that date. i opened their help and i was forwarded to this website. Please send me details how to return to the present date so i could book from the present to the future

Bug in parseDate
by Diego Tolentino
2010-10-01 16:50

alert(Calendar.parseDate("29/11/2010", false))

show "Sun Nov 28 2010 22:00:00 GMT-0200"

least 1 day

Calendar Discussion
by Tobi
2010-10-05 12:25

Hi again!

Problem with the time. When I select a time and than switch to an other mounth - the time reset to current time. I would like to hold my time I set and also the changing to summer-time is nervy.

I think there is a way with the onChange-event, but I don't know how!

Thanks!

Calendar Discussion
by Tobi
2010-10-05 13:20

another question,

is it possible to show only the time-selector??

Calendar Discussion
by Siva
2010-10-05 19:59

I am evaluating to buy it. It is cool but not working right. If you click on button after date is selected, highlighted date on Calendar is one less than previously selected.

Error to select date
2010-10-05 22:52

I'm implemented the calendar. By default this command will schedule a date at 20101005, and it appears selected in the calendar 20101004. Can you configure this? Thank you very much.

Re: Error to select date
by Mihai Bazon (page author)
2010-10-05 23:01

Known bug. There will be a new release that fixes this, in the following days.

Re: Error to select date
2010-10-05 23:17

I'm waiting... Thank you!!

Re: Error to select date
2010-10-12 20:26

Hello Mihai, you got any news about the error in the calendar?

Re: Error to select date
2010-10-12 20:55

I found the solution. We must apply the following line: Calendar.SEL_MULTIPLE

Calendar Discussion
2010-10-05 23:16

I'm waiting... Thank you!!

Disabling dates
by Emma
2010-10-06 13:29

Hi Mihai - I have implemented the calendar with ColdFusion and I would like any date before 30 days in the future to be disabled. I have tried min & max, disabled and dateStatusFunc but none of them have any effect on my calendar whatsoever. I have a feeling it may be something to do with the 'date' variable. I am using IE8, and this is my current code:

<cfinput name="expiry_date" type="text" readonly /> <button type="submit" id="date_expiry_date">...</button> <script type="text/javascript">

Calendar.setup({ inputField: "expiry_date", ifFormat: "%d-%m-%Y", align: "BR" });

</script>

Any help would be greatly appreciated! Thanks.

Calendar Discussion
by Antonio
2010-10-06 17:27

Hello Mihai, I sent a doubt in this part of the contact and I'm posting here as well, it happens that I have problem to use version 1.0 of caledario in firefox, it happens that they lose alignment. In the other browser is perfect, it only happens in firefox. Please, I do not want to use another version using the 1.0 you can help me

Re: Error to select date
by Siva
2010-10-06 19:59

I need to implement this in urgent, Any estimated date for fixing this issue? (I'm implemented the calendar. By default this command will schedule a date at 20101005, and it appears selected in the calendar 20101004. Can you configure this? Thank you very much.)?

If you have any work around that I can use before next release please advice

Re: Error to select date
by Siva
2010-10-06 20:01

I need to implement this in urgent, Any estimated date for fixing this issue? (I'm implemented the calendar. By default this command will schedule a date at 20101005, and it appears selected in the calendar 20101004. Can you configure this? Thank you very much.)?

If you have any work around that I can use before next release please advice

Selected Date Highlight issue
by Siva
2010-10-07 19:03

Hi Mihai,

I am not sure how complex is it to fix this issue (698). I saw all list of messages to find work arround and nothing useful. Many asked for solution, but no positive solution. It is not acceptable to release product with such major unacceptable UI issue.

Am I missing some thing here? How can I correct the problem?

Your reply on this issue is greatly appriciated.

Calendar Discussion
by V-Dub
2010-10-11 02:52

как сделать календарь компактным (меньше в размере)?

Calendar Discussion
by V-Dub
2010-10-11 02:52

how to make a calendar compact (smaller in size)?

onChange event
by Diego
2010-10-11 11:39

Hello,

I am using the calendar to display events. I cannot retrieve all events at the same time so i would like to know when the user is changing months and/or year to load the new events. My calendar looks like this:

var cal1 = Calendar.setup({ cont: "calendar-container", weekNumbers: true, selectionType: Calendar.SEL_SINGLE, fdow: 1, showTime: false,
onChange: function(cal, date, anim){ alert('date.getMonth(): ' + date.getMonth()); }

But every time i change the month the function is called infinite times and the month continues going forward...

am i missing something, thanks very much

Re: onChange event
by Diego
2010-10-11 11:52

just an update if i change the code in the onChange to something like:

onChange: function(cal, date, anim){ //alert('date.getMonth(): ' + date.getMonth());
document.getElementById('txtSelectedMonth').value = date.getMonth() + ' ' + date.getYear();
}

Everything works fine, someone can tell me why? It is just curiosity coz i dont need, obviously, to show the date to the user.

Thanks a lot for the calendar and the work behind it.

Re: onChange event
by Mihai Bazon (page author)
2010-10-11 11:55

Try using something else instead of alert() for testing (for example console.log).

I'm pretty sure that alert() causes the apparent "infinite loop" (the problem is that the browser never gets the onmouseup event, since alert() blocks, and after you close the alert box it will loop as if you're holding the mouse down on the next/prev month/year buttons).

Re: onChange event
by Juan
2010-10-13 13:30

hi! I'm using the calendar for select a time interval to show datas on a map, the problem I have found is when i change the month or year, the hours change too, I want the hours doesn't change, thanks guys

Import Language
by george
2010-10-11 16:10

How can I add a new language?? I want to import Greek language and I have created the gr.js but I don't know how to add it.

Re: Import Language
by vlad
2010-10-12 12:53

Here's the line of code that loads Russian language. <script type="text/javascript" src="./JSCal2/js/lang/ru.js"></script>

All you need to do is replace the "ru.js" filename with yours.

Calendar width issue
by vlad
2010-10-12 12:57

I'm using your calendar on my joomla-based web-site. But there's a problem width calendar's width, according to template's css all tables are stretched to page's width.

Which line in calendar's css file should I fix to get rid of this problem? m not a web-developer thus I'm not very familiar with the stuff, just somebody who has no choice but manage company's web site.

Calendar error in form
by Andrey
2010-10-12 14:00

if the calendar in the <form> </form> it does not work.

Calendar Discussion
by Integer
2010-10-18 10:46

Edit timezone GTM +2. to find this.setHours(aG.getUTCHours() and edit to this.setHours(aG.getUTCHours()+2

Details
2010-10-20 14:58

please send to me calendar details.

Tooltip positioning
by Casey
2010-10-20 18:05

Hi There,

First off, thank you for such a great JS calendar!

How can I manipulate the position of the tooltip? I have multiple events on a single day and the tooltip goes off the end of the page. It would work if I could get the tooltip to popout to the right instead of under the calendar and force it to stay in the viewport, meaning if it tries to go off the bottom of the page, move the tooltip up a bit.

Thanks much!

Re: Tooltip positioning
by Casey
2010-10-20 18:51

Ok so I got the tooltip to appear to the right of the calendar by updating the following CSS class:

.DynarchCalendar-tooltip { position: absolute; left: 100%; top: 0%; width: 100%; }

And I gave it a top border by updating the following CSS class:

.DynarchCalendar-tooltipCont { margin: 0 5px 0 5px; border: 1px solid #aaa; padding: 3px 6px; background: #ddd; }

Now my only issue is getting the tooltip to stay within the viewport. I know this must be done using JavaScript which is not my forte so any help is appreciated :)

Thanks again!

Magento layout problem
by Eric
2010-10-22 08:05

Hi,

I got a layout problem when use jscal2 with magento. Check it out here http://iconvex.com/mics/jscal2_magento.png

How can I fix it?

Thanks Eric

Calendar Bug Recovery
by Guilherme Schmidt
2010-10-22 16:14

I have a bugFix to comment. My Timezone is Brazil(-3GMT). For some reason i don´t know, javascript takes like -2 hours from GMT. But the bug is on the calendar when it parses the date on the field. When the popup open, It take the hour with no GMT diferences, so if is 10h he takes 12 hours. I just remove form the code de UTC count. But the browser cauculate this item already, so we don´t need it. For anyone that have the time bug here is the solution:

change this three time funtions: • change "aG.getUTCHours()" for "aG.getHours()" • change "aG.getUTCMinutes()" for "aG.getMinutes()" • change "Date.UTC(aB,P-1,aD,av,ar,aC)" for "Date(aB,P-1,aD,av,ar,aC)"

For me this work perfectly.

Thx for the best calendar code....

Calendar Discussion
by Aly
2010-10-24 17:26

Hi guys! This script is amazing. I thought I couldnt't disable date but there's a whol chapter on it!

I just have one question! I have installed the plugin in Wordpress, works like a charm, but when I want to disable some dates, I followed the documentation but I don't know what to put in the cont: field, I don't know what is the ID of the container on wordpress Contact form....any idea?

Calendar.setup({ cont: "sample2", disabled: function(date) { if (date.getDay() == 5) { return true; } else { return false; } } });

THANKS so much in advance,

Aly

Calendar Discussion
by glumpsh
2010-10-30 16:35

hi there, thank you very much for this great calendar. i do have a question tho. i am trying to change the displayed as well as received date format. from month-day-year to day-month-year...

i am not sure how and where to do that.

could you please enlighten me?

thank you very much in advance.

: )

Calendar Discussion
by Alan Reeves
2010-11-02 19:54

I am trying to get your calendar to work with an AJAX call (similar to post 270 plus others). I am new to all of this, but here is what I have; I am using a page with tabs, using AJAX to populate the tabs (3 of them) with different PHP documents. When viewing the PHP by itself, the calendar works. When viewing within the main page with tabs, it does not work. I have inserted a function that parses the responseText and eval() the scripts, but I can't get the popup calendar to work. Any ideas? Thanks

Nice but not compatible with GoogleBlueprint CSS
by Julien
2010-11-11 11:16

Hi, I would like to add your calendar in a web page, having a GoogleBlueprint CSS : "http://www.blueprintcss.org/blueprint/screen.css" With Firebug, I've seen that some TD and TR tags have no CSS class, and that makes the calendar having 50% of the page... Not so nice that in your demos.

Could you explain me how I can use your calendar without breaking all my code ?

Calendar Discussion
by micro
2010-11-14 15:14

is der any possiblity to prevent your script from setting P = null, instead of moving the calendar.setup below the trigger and inputfield? i want to use the calendar within an ajax request an eval() the script provided from php. so i can't control the "physical" position of the code. as seen above in post 720 there are some other people who tried this. but there isn't a solution yet. any ideas?

Popup selected date
2010-11-15 05:56

Hello! In the comment 672 describes a serious bug. Please, fix it ASAP, we need this calendar working good, because, it's the coolest calendar ever. Thank you.

Calendar Discussion
by Snow
2010-11-18 16:54

Very easy to use ! Very good !

Thanks !!!

Bug Calendar Date
by Claudio
2010-11-19 19:04

Hello! When i select month 10 and day 16 in dateFormat %d%m%Y, i have a bug that doubles the day 16 in calendar. This bug occurs in this configuration.

Tooltip problem
by Qwazerty
2010-11-22 03:31

Hi,

First of all, thanks a lot for this js calendar! So here's my probleme : I would like to change the tooltip fonction, to show it not on mouseover, but on the date selected. Can someone help me ?

Thanks in advance.

Calendar Discussion
by theparasit
2010-11-24 13:01

wtf 100000 question about use the calendar in a form and no answer!

Calendar Discussion
by Moe
2010-11-25 12:18

i use JsCal2 1.8 an it is great. now i want disable the days "Mo, Tu, We, Th, Fr, Su". only Saturday should be selectable.

this ist my code. <input type="text" name="wann" id="f_rangeEnd" style="width:50%; border:1px solid; border-color:'.$fehler_wann.'" value="'.$wann.'" readonly="readonly"> <img name="kalender" id="f_rangeEnd_trigger" class="res_cal_icon" src="../Bilder/icon_cal.gif" style="position: relative; top: -2px; left: 5px; vertical-align: middle;" onclick="clearRangeEnd();">'

    .$fehler_wann_text.' '.$fehler_anzahl; ?&gt;

   &lt;script type="text/javascript"&gt;
                new Calendar({
                        inputField: "f_rangeEnd",
                        dateFormat: "%d.%m.%Y",
                        trigger: "f_rangeEnd_trigger",
                        bottomBar: false,
                        onSelect: function() { this.hide() }
                });

        function clearRangeEnd() {
                        document.getElementById("f_rangeEnd").value = "";
                        LEFT_CAL.args.max = null;
                        LEFT_CAL.redraw();
                };


              &lt;/script&gt;

how can i do this?

change the calendar language to spanish
by Jonathan
2010-11-25 18:16

Hi, how can i change the language of the calendar in the Calendar.setup ? i want to show the calendar in Spanish.

thanks

Calendar Discussion, not work in popup scriptaculous
by Luis
2010-11-26 04:08

Hi and thanks for your calendar, look this not work with popup scriptacoulous,not at all. please your help, thanks..

my english is bad, my spanish is my native language. bye and many thanks..

disableFunc usage
by Gus
2010-11-26 15:12

Hi Mihai:

Is there any way to disable days from the past with disableFunc parameter?

i.e: I want my customers to book them flights since today, not yesrterday.

Thanks in advance

Re: disableFunc usage
by kilkul
2010-11-28 19:42

You could use var minDate = new Date(); minDate.setDate(minDate.getDate() - 1); Calendar.setup({ ... min: minDate, ... });

Calendar Discussion
by Dennis
2010-11-28 18:50

Hi there. I am getting a weird error on the sample demo page on this website here: http://www.dynarch.com/static/JSCal2/index.html To recreate, click the "disable dates" button to pull down the calendar. When you select a date, close the calendar, and open it again, it selects the PREVIOUS day. I tried on the download as well, and I have the same result. Is this a bug or a wrong setting? Thanks in advance.

Dennis

Calendar Discussion
by kilkul
2010-11-28 19:51

Mihai, I needed a way to trigger the calendar on inputField element's focus event (not necessarily on inputField click, as the calendar behaves by default, but for example, for displaying the calendar if the user uses the keyboard for navigating in page - as I sometimes do). I managed to do that by calling calendar.popup(MyTargetInputField) on my inputField element's focus event. The issue was that, even though the calendar appeared correctly, it didn't updated its connected inputField's value when I selected a date from it (that is, from the newly opened calendar, on my field's focus event). Since I couldn't find any (quick) solution for this, I've patched it by setting on calendar's onSelect event MyTargetInputField.value = this.selection.print('%Y-%m-%d');

Just though to share this, maybe you (and others) need such a thing...

Calendar Discussion
by Bo
2010-11-29 21:04

In popup calendar, if you select a date and then click the calendar again, the highlighted date in the popup is always one day before the selected date. Guess this is a bug. Thanks.

Re: Calendar Discussion
by Bo
2010-11-29 21:19

This is the same question as 735 actually

Re: Calendar Discussion
by Bo
2010-11-29 21:20

sorry, should be the same as 736 by Dennis

Calendar Discussion
by sam
2010-11-30 09:12

Hello, at runtime I dont know what is the ID of target. I make the Calendar set up in a function like this:

function drawCal( trigger ) {

//The Trigger has die ID xxxxTrigger and the Input the ID xxxx
new Calendar({ trigger : trigger, inputField : trigger.substring(0, trigger.length - 7), animation : false, weekNumbers : true, selection : Calendar.dateToInt(new Date()), showTime :true,
onSelect: function() { this.hide(); } }) }; // --> // ]]>

In FF I must the first time make twice click on trigger than calendar appears, in IE is all ok for this issue.

in IE6 Calendar appears behind combo boxes, z-index makes nothing.

Is there any thing ,what can I do to avoid this 2 Mistakes?

regards sam

Re: Calendar Discussion
by sam
2010-12-03 15:43

i have initialed an trigger click for FF by onload. this solved the problem.

Re: Calendar Discussion
by Shaa
2012-01-23 12:24

Can you please explain about your solution.. Give sample for that one too..

Calendar Discussion to lunar (china)
by adamm
2010-11-30 11:09

its that any way use in lunar setting??

Disable date working - apply to text field also?
by Debbie
2010-12-02 00:39

Disabling dates works great, however, I'd like to prevent the user from overriding the calendar restriction by typing in a date into the associated text field. Is there a way to do this using the existing script or will a separate JS or other validation need to be fired on these fields to double check that the date in the text box is not a disabled date?

Calendar error by CHROME
by Radomir Muras
2010-12-02 12:30

Calendar is good but only on IE browser on the chrome browser is running incorectly - please show on URL for demo of this problem:

http://musokol.euweb.cz/CalPokus.htm?

-try this URL on chrome or firefox browser, Please help me???

Calendar Discussion
by Debbie
2010-12-03 04:58

Hi,

Your calendar looks exactly what I've been looking for.

Unfortunately, it doesn't seem to allow seconds to be selected, which is one of the things I need to be able to do.

Would you consider adding seconds to your time display, because that would make your calendar absolutely perfect and I would have no hesitation in using it then?

Debbie

Calendar in HTML-form
by Ilana
2010-12-03 12:27

Hi, I wanted to put the calendar in a html form, so I can submit several data with POST. But the calendar-button allready submits the form, allthough it shouldn't. How is it possible to use the calendar with button-function in a html-form? I didn't find out yet, and I couldn't get it from the other posts. Ilana :)

Re: Calendar in HTML-form
by Mihai Bazon (page author)
2010-12-03 12:38

Add type="button" to your <button> element (implicitly, in some browsers, it's a submit button).

Re: Calendar in HTML-form
by Ilana
2010-12-03 12:45

I tried, thanks, but it still does not work and also the calendar does not show when it is in the html-form.

<form name="formular1" action="" method="post">
<input name="vom" id="calendar-inputField" /><button type="button" id="calendar-trigger">...</button> <script type="text/javascript"> Calendar.setup({ trigger : "calendar-trigger", inputField : "calendar-inputField" }); </script> <br> <input type="submit" value="Urlaub einreichen"> </form>

Maybe this helps

Re: Calendar in HTML-form
by Satyen
2010-12-16 06:01

Try (input type="button"). That should prevent the html form from doing an autosubmit

Click today dont hide
by sam
2010-12-03 15:40

Hello, wenn i click today, the calendar must still be displayed and not hide. But wenn i click another date, it must hide. Is this possible?

thanks

Calendar Discussion
by Johan Muijtjens
2010-12-05 17:18

I like your calendar very much. But I like to adjust it to European / Dutch customs. I managed to adjust (in calendar-en.js) the names of days and months and so on. But I could not change the DATE FORMAT into day / month / year. How can this be done ? Thanks in advance for your help.

Johan Muijtjens

Calendar Discussion
by Susan McNab
2010-12-07 00:00

Mihai, Please could you let me know the best way to prevent the return/enter key from causing a calendar to pop-up? I have a form where users are typing a job number in an unrelated text field after having set a calendar date. After entering the job number they are in the habit of hitting the return key to execute the search. Prior to upgrading from the old calendar this was possible. Now the calendar is capturing the event and popping up a calendar instead of submitting the form. I can see a few ways this might be possible but hoping as author you are going to suggset the most elegant.

Re: Calendar Discussion
by Mihai Bazon (page author)
2010-12-07 09:03

Hi Susan, could you share an URL for me to see the issue? (please use the contact form if it's private).

That shouldn't happen, I mean, the calendar definitely doesn't hook on the ENTER key. Also, one thing to try if the calendar is triggered by a <button> element, is to add type="button" to it.

Re: Calendar Discussion - Event control problem
by Susan McNab
2010-12-08 01:20

Thanks Mihai, I sent the Web site details yesterday using the contact form as suggested.

The trigger is associated with an element type=image. I changed it to type=button but that didn't solve the problem. I am able to prevent the unwanted pop-up by globally capturing the keycode == 13 event and diverting it to form submission if (whatever) conditions are met.

There are probably other similar approaches I could take - but that is not an elegant solution either way. It will require huge effort in some situations to avoid inappropriate form submission.

Would appreciate any help you can give me.

Event control problem
by Susan McNab
2010-12-07 03:43

Mihai, my previous email above didn't have a meaningful title so may not be noticed. My company has purchased a license (can send details privately) is there some way I can get support for the issue described above? Issue: unable to prevent the calendar from popping up when a user hits the return key. I want to stop the calendar popup from interfering with form submission by dominating event capture for the return key.

Disable date to apply to related text field also?
by Debbie S
2010-12-08 01:16

Disabling dates works great, however, I'd like to prevent the user from overriding the calendar restriction by typing in a date into the associated text field. Is there a way to do this using the existing script or will a separate JS or other validation need to be fired on these fields to double check that the date in the text box is not a disabled date?

Re: Disable date to apply to related text field also?
by Susan McNab
2010-12-08 01:30

Hi Debbie, I deal with that situation by adding "readonly" to the text input field. Just an idea. It is nice and simple.

Re: Disable date to apply to related text field also?
by Debbie S
2010-12-08 17:43

I ended up grabbing the function explode from phpjs.org to format the date as a whole number. Then found a date compare JS (don't remember where) and modified it to my needs for the different date options on my forms. Then I added the check as an onClick event to my submit button so it fires before the form gets submitted to my PHP form validation proggie. I wanted to leave the option for the user to either type in the date OR pick it from the calendar. Thanks for your tip though, may be useful for other applications.

Calendar Discussion
by Madhu
2010-12-08 06:06

Hi,

Is there any option to clear the date after selection?

Calendar Discussion
by KAILASH
2010-12-08 10:33

I am using the CALENDAR.JS with two input boxes, one for the "From" date and the second with the "To" date. I am using the JSP PAGE as a basis for getting the two input boxes to work with each other, but I need to be able to add these additional restrictions:

1.Date range can be no earlier than 01 December 2008

2."To" date can be no later than today

3.Once a "From" date is selected, the "To" date can only be within a range of 7 days after the "From" date

4.If a "To" date is selected first, then the "From" date can only be within the range of 7 days before the "To" date (with the limit of 01 December being the first selectable date)

I can't seem to get all of the above working together.

Calendar Discussion
by Leslie
2010-12-08 20:14

Hello, I am trying to add your older calendar to my website. I have had success but..my "required" fields in form do not work with your calendar. Do you know what is enabling the fields from working? Leslie

Calendar Discussion
2010-12-08 22:35

I got it! Thank you!

Calendar Discussion (BUG)
by Chris
2010-12-09 17:26

The calendar does not display the selected date. Try the demo page for the manageFields feature [http://www.dynarch.com/static/JSCal2/demo/multipleFields.html], if you select a date and try to select a date for the same field you will notice that the date displayed is a day away from the selected date. (e.g. selecting 12-09-2010 displays 12-08-2010 as the selected date on the calendar) The same issue runs across all example on your site.

onTimeChange goes in infinite loop
2010-12-10 04:14

Dear sir, I wanted to write a function updateTime for recording change. Before going through desired coding I placed only an alert to check it. I found many many times this alert is displayed in loading as well as on changing hour/minute. I think there is some mistakes in calendar. I am using version 1.8.

Bilal

Re: onTimeChange goes in infinite loop
by Mihai Bazon (page author)
2010-12-10 08:57

Check it with something else, not alert. There is no loop, it's just that the alert box is modal (it prevents the browser from receiving events until you dismiss it) and the calendar doesn't get your onmouseup event, thus thinking that you're holding down the button on the +/- arrows.

'Calendar' namespace
by Satyen
2010-12-16 17:45

Would be nice if jscal didn't use the namespace "Calendar" in its javascript and instead used something like "JSCal2" or "JsCalendar" or "Dynarch.Calendar". So, instead of calling 'Calendar.setup' events you would call 'Dynarch.Calendar' events.

The problem is that "Calendar" is too generic and can conflict with other code on the document. When you're creating a framework that's going to get mashed up, you gotta be extra careful to avoid that.

Calendar Discussion
by Luis
2010-12-19 19:14

I notice that when i´m in an not IE explorer and used the function manageFields to create jscalendar under demand i have to do 2 clicks the first time to see the calendar popup, that doesn´t happend in a IE explorer. Please your help.

Calendar Discussion
by raj
2010-12-21 12:37

see this article http://mindstick.com/Beginner/BeginnerData.aspx?aid=D288F605-AC9E-4CF4-B698-D7762E674AE3%20&t1=ASP.Net%20&t2=Calendar%20Control%20in%20ASP.Net

Calendar Discussion
2010-12-21 19:25

Sir, Your calender component I god but their is sum problem will it. The problem is that few month i.e February, November & March is not working properly so please make it correct and let me know as soon as the problem is resolved....

Calendar v.1.0 is notshowing properly
by Hugo
2010-12-21 20:32

Hi,

I just have one quickly question , I installed the old version of your Calender, its work ok, but it is no showing properly by cause the others objects on the background , such as a text field, texts,or margins, HOW can I setup this properly ? its something in the HTML codes properties that I m missing to set up ? thank u and waiting ur answers.. Best regards Hugo

Enable Dates
2010-12-23 19:09

I would like to have all dates disabled, and then only enable selected dates. Like how highlight date works, so that users can only click on dates that will yield results to a query.

Calendar Discussion
by Haseeb
2010-12-24 09:16

Im using jscal 1.7 version.

The datetime picker is so good and working fine in all fields but it can't work in grid,grid is what it is collection of dates it working fine in first row but in second row the calendar was not open.im using processmaker .

where i want to change the code or waht?

Please help thanks in advance

Re: Calendar Discussion
by Haseeb
2010-12-24 09:34

Or when we click on second row clear button 1st row was erased.

Calendar Discussion
by Serbon
2010-12-24 19:23

Hi there,

This is great script, god job. I tried using it, but got a problem. Time is setting to default every time onSelect event is fired. If I set time and then click on date, date is good, but time is back on 11:00, I have to open calendar again and set time again and click a side to close calendar, rather then clicking a date. Perhaps I am not using it correctly. Could You make an example of this, using calendar with time, and writing time onSelect event. Thanks

Re: Calendar Discussion
2010-12-31 15:57

Ok, that's correct! However, when I mark the time or the calendar takes the system time, it always uses a time 3 hours more than the correct one. In addition, when using the time attribute, eg, time: 0945, the timetable does not mark this time correctly.

My calendar is:

 Calendar.setup({
   cont          : "cal_retirada",
   weekNumbers   : false,
   selectionType : Calendar.SEL_MULTIPLE,
   selection     : my_date, /* without slashes */
   date        : my_date,
   time        : my_hour,
   minuteStep    : 1,
   showTime      : 24,
   onSelect      : function() {
var date = this.selection.get()[0];
date = Calendar.intToDate(date);
var data_ext = Calendar.printDate(date, "%d/%m/%Y");
      var h = this.getHours(), m = this.getMinutes();
if (h &lt; 10) h = "0" + h;
if (m &lt; 10) m = "0" + m;
document.getElementById("data_retirada").value = data_ext;
document.getElementById("hora_retirada").value = h + ':' + m;
  }

});

Calendar Discussion
by Haseeb
2010-12-28 06:42

Please reply for post 773

problem using Dynarch calender with Ditchnet tab
by Dale Stephens
2010-12-29 10:30

Hi,

I am using JSCal2-1.8 to my web app. My page also has tabbed panes (ditchnet.org/tabs/),where i am using the dynarch calandar control. But the Calandar does not pop out. It works fine when used without the ditchnet tabs. Is it a known issue? Any help will be appreciated.

Regards,

Dale

Anybody please help in this regard...

Regards Shiva

Problem with time
2010-12-30 16:24

Hi!

I need set a initial time of calendar like this:

time: 1130;

for 11:30pm, but this feature don´t work. There are something to correct this?

Thanks,

Marcos

Calendar Discussion
2010-12-31 07:03

Hello,

I am looking for a 'better' calendar for my wife's Gathering Space Availability link - select it on the left WEDDING AVAILABILITY -

I use MS EXCEL to create a spreadsheet and then change the colors to indicate if dates are available - we only do one function a day - then I export it as a HTML file from MS EXCEL - but it really does not look good - I have been using a MAC - previously used PC and it was better; however, little functionality - I would like a bride to see the 'big picture' i.e. the year - and be able to see if the date(s) they are considering are available for booking - then if they have booked I would them to be able to use a password I would supply to allow them to update their information as they proceed in the wedding planning process - i.e. music, florist, caterer, etc. and by them filling in this info on 'their page' my wife would not to do so much manually and on paper - and as the event approaches - she could more efficiently send an updated contract and bill -

any ideas if the calendar you have could be of help/use???

I am not a Java programer - I do have Flash, and Dreamweaver and MS Excel and FTP tools -

Thank you in advance -

Calendar Discussion
2011-01-01 17:53

Hi. Im about to build a website and need a calendar for booking purposes. Is it possible to display sevral months at the same time i.e. a quarter, Haflf a year? With kind regards Torgny

selection problem at IE and Chrome
by Alvin
2011-01-03 10:35

Just found that "cal.selection.get()" is not work at IE and Chrome. Is there any workaround method?

After Selection Date Wrong
by Dennis
2011-01-03 17:52

Hi there everyone. When can we expect to have the update that fixes the wrong date issue after selecting a date and then re-selecting it again shows one day prior? I think it has been fixed, but was told it was only being pushed out to paying customers. Would love to start using this new version that works with different doctype's.

Please let me know, thank you!

Dennis

European dat (Dutch) is not recognized
by John
2011-01-04 02:45

I have translated the calendar-en.js in Dutch. That seems to work right but doesn't :-)

A 3 letter month name that differs from Englisch is not recognized as a valid date. As all is translated I have no clue what to try now. Anyone?

Thanks a lot John

Calendar Discussion
by hassan
2011-01-05 12:03

Is there anyway to obtain what Year/Month (displayed at the top of the Calendar) the Calendar is currently on. Each time a Month or Year is changed, there are 3 possible months if we base it on a selection.

Also we noticed that the onFocus event fires twice everytime the Calendar popsup. Is there anyway to ensure that we get the event fired once?

Any help would be greatly appreciated

Calendar Discussion
2011-01-06 15:16

I would recommend allowing the CSS z-index of the pop-up calendar to be configurable. Currently it is hard-coded at 10000 and this causes it to pop-up below dialogs that we have. I have modifying it in the source version we have, but I would think this could be easily added to the Setup.

HIDE METHOD
by hassan
2011-01-07 11:29

If you call the cal.hide() in IE it works but in Chrome and Firefox it does not.

Any ideas

HIDE METHOD
by hassan
2011-01-07 11:29

If you call the cal.hide() in IE it works but in Chrome and Firefox it does not.

Any ideas

Calendar Discussion
by Jesper
2011-01-09 18:25

Hi, great job you did on the calendar...

I believe Im not the first who's having a hard time with <TABLE> . Outside the TABLE tag it works perfect. Inside, however it doesn't show the calendar... so I removed all CLASS, WIDTH and HEIGHT properties,but nothing works... then I thought... lets try it without <FORM> and YES!!! the calendar popped up.

For everyone who may think the <TABLE> is the problem... look at <FORM>...

Breaking my balls on this one! Anybody?

Error
by Kb
2011-01-11 10:46

I am unable to figure out the error Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.6) Timestamp: Tue, 11 Jan 2011 08:56:51 UTC

Message: Object expected Line: 11 Char: 29985 Code: 0 URI: http://localhost:8080/IAMS/JSCal2/src/js/jscal2.js

Disable Saturdays and Sundays
by Evan
2011-01-12 04:01

Is there a way to disable weekends? Either show them and not have them selected or not display them at all. Nice calendar!

Re: Disable Saturdays and Sundays
by Evan
2011-01-12 04:32

<input id="f_rangeStart" /> <button id="f_rangeStart_trigger">...</button> <script type="text/javascript"> new Calendar({ inputField: "f_rangeStart", dateFormat: "%m/%d/%Y", trigger: "f_rangeStart_trigger", bottomBar: false, onSelect: function() { var date = Calendar.intToDate(this.selection.get()); this.hide(); var my_field = document.getElementById('f_rangeStart').value; } }); </script>

<script> Calendar.setup({ disabled: function(date) { if (date.getDay() == 5) { return true; } else { return false; } } }); </script> I doesn't work. Obviously I don't know a lot of Javascript, but can anyone suggest anything? Thanks, Evan

Calendar date disable Discussion
by diya
2011-01-13 08:19

can any one tell me how to disable all the previous dates, only current and next dates will enable

is there an onHide Event Handler?
by frustrated
2011-01-14 01:12

is there an onHide event handler?

so it will fires even if I don't select a date and click outside the calendar?

Calendar Discussion
by Rob
2011-01-14 20:32

Can someone stop the time so we don't need a calendar?

About time changing
by 孙新
2011-01-17 11:40

when I want to change the minute value by clicking the arrow icon, I found it was added by 5. is there any option can change it so that it will be added by 1 when clicking.

Calendar Discussion
by Declan
2011-01-18 19:29

Hey really like this implemenation.

Is there anyway to prevent the sliding of the month days into and out of the calendar when changing months?

When using this I can see the sliding days outside the boundary of the calendar itself which isn't ideal

Re: Calendar Discussion
by Declan
2011-01-20 14:03

Turn animation off, got it :)

Calendar Discussion - time increments
by Hugh McCutchen
2011-01-25 02:34

Can we specify the time selection to increment by 10 or 15 minute increments (speeding up selection of time in our call center application).

Re: Calendar Discussion - time increments
by Hugh McCutchen
2011-01-25 05:58

Never mind, I see the minute step function.

Calendar Do not work on Chrome
by Antonio Parra
2011-01-25 13:25

Hi, i have installed Calendar and it works on IE but when i try it on Google Chrome or Firefox don`t works.

I puss the btton but nothing happen. What can be happening?

Thank you

Popup calendar - trigger button submits form on safari
by Dana Scholle
2011-01-27 20:45

Just did an implementation of the popup version of the calendar. Seems to be working fine in IE, but clicking the popup trigger button in safari submits the form instantly, even though I have not made any code changes to the javascript other than renaming the target field name. Anyone have any siggestions?

Re: Popup calendar - trigger button submits form on safari
by Mihai Bazon (page author)
2011-01-27 20:49

Include type="button" for that <button> element, that should fix it. I'll add an work-around for this in the next release.

New Language Persian (Farsi)
2011-01-28 13:50

Hi, I created a new language: FA Persian (Farsi) You can download it from http://www.RojinDigital.com/dynarch/fa.js Hope it helps

Calendar Discussion
by Wolfgang
2011-01-29 22:20

How can i make for day, month and year a extra field?

Calendar Discussion - 19th century year
by vera
2011-01-30 01:52

Hello,

I have this calendar as selector in a plugin I build a catalogue with in Joomla now, for a change of platform of my website.

The first use for it is selection of birth date and death date of artists. However, the artists on my website were mostly born in the 19th century, and this calendar selector begins in 1900.

Forgive me if the question seems perhaps obvious to you, I have no experience with these things. How do I make dates in the 19th century?

Thank you for your answer, Vera

Re: Calendar Discussion - 19th century year
by vera
2011-02-05 14:39

Can you please address this issue?

Vera

Error with non-English languages
by Ivan
2011-02-01 10:55

Environment: OS: Linux Ubuntu 10.10; Browser: Chromium 8.0.552.237, Firefox 3.6.13.

I'm watching example page. If you choose language with non latin symbols and choose some date, reading of month in text field will fail and I'll see day and year which I choosed and CURRENT month. As I can see reading of UTF-8 symbols from text field fails. For example, language is Russian.

Calendar Discussion behind activex control
by Chris Fontan
2011-02-01 19:10

I have this calendar on a page that returns activvex for crystal report.. when i click on the calendar it goes behind the activex control.. how do i make it go on top?

Incorrect Selected Date
by looner
2011-02-03 23:55

When I open a popup calendar from a field that already has a date in it, the calendar highlights the day BEFORE the date in the field, causing confusion. Is this a known issue and how can I fix this without manually setting the date selection to one day later?

Incorrect Selected Date
by looner
2011-02-03 23:55

When I open a popup calendar from a field that already has a date in it, the calendar highlights the day BEFORE the date in the field, causing confusion. Is this a known issue and how can I fix this without manually setting the date selection to one day later?

Calendar Discussion
by Jonas
2011-02-09 18:58

Hi Is it possible in an easy way to disable all dates and then enable just the few I want to be enabled?

I have tried by setting min and max so that min is the first date I want to enable and max is the last I want to enable. I then disable all dates in the span that I do not want to be enabled with your example using the array DISABLED_DATES. Since the span is many months, over a year, the DISABLED_DATES array from your example becomes very large.

Cheers, Jonas

Calendar Discussion
by GB
2011-02-10 19:28

Hi,

I have a bug report on the component. The problem has been seen on v1.7 and v1.8. Explaination : I have a div with an horizontal scroll and multiple calendar icons. As long as I do not scroll, the calendar popin prints just below the mouse cursor. When I scroll right, xhen I click the calendar icon, the calendar popin is not below the cursor any more but on the right. The more you scroll, the more the popin will print on the right.

I saw that people already got this problem but I did not find any solution. Have someone any idea ?

Thx

Calendar Discussion
by GB
2011-02-11 17:22

Hi, in response to #817, I managed to find a solution.

This little function saved my life (well, at least my day ...)

function GetAbsolutePosition(obj,XY) { objBody=document.body; Position=0; while (obj != objBody && obj != null){ switch (XY){ case 'X': Position+=obj.offsetLeft; break; case 'Y': Position+=obj.offsetTop; break; } obj=obj.offsetParent; }

          return Position;

}

If you have any question, contact me on my blog : http://phpsymfony.com.

Calendar Discussion
by Jeff Schneider
2011-02-11 17:31

Can anyone get the initial time to work correctly? I want to purchase this product, but if I cannot set the initial time, then it won't serve my purpose.

I'm following the documentation here:

"time — initial time to display in the time selector. This is an integer in the form "HHMM" — for example if you want the calendar to display 9:45 pm, pass 2145. By default the calendar will use the current time, adjusted to a multiple of minuteStep."

Neither one of these set the initial time. This is always set to today:

   Calendar.setup({
      trigger    : "calendar-trigger1",
      inputField : "calendar-inputField1",
  align      : "bR",
  showTime   : true,
  time       : "0800",
  minuteStep : 15,
  dateFormat : "%m/%d/%Y %l:%M %p"
  });

and I have a calendar created by a js event that always goes to 12:00 pm:

var cal2 = Calendar.setup({
  trigger    : "calendar-trigger2",
  inputField : "calendar-inputField2",
  date       : startDate,
  min      : startDate,
  onSelect   : function() {this.hide();},
  align      : "bR",
  showTime   : true,
  minuteStep : 15,
  time       : ,
  dateFormat : "%m/%d/%Y %l:%M %p"
});

--

Thank you. I've written the developer but haven't received a reply. I want to buy this product, but this will be a showstopper. Thank you

Calendar Discussion
by Nilay Gosalia
2011-02-14 11:27

Hi,

i have one customer. when he is try to click on Calender widget for Date selection. Pop up cant open successfully. if he refresh the IE8 browser form then he can successfully change the button. While this calendar feature is work properly on FireFox and other browser. he can not reproduce this issue frequently on IE8 browser. on my IE if i remove "about:blank" name in trusted "Trusted Site" the i can reproduce the issue.

Please help me out to how can i resolve the issue.

thanks in advance Nilay

Calendar Discussion
by Borja
2011-02-14 12:18

Hi, I have a problem with navigator compatibility, in IE.8 run well done, but in Firefox no insert in the InputText. Can you help me please?

version calendar = version 1.0

I use Spring, put here my code:

<pre> <TR> <TD class="mantCab" align=left><spring:message code="mant.periodo.crud.fecIniCont"/></TD> <TD align=left valign=top> <spring:bind path="periodo.fechaIniCont"> <input type="text" readonly="true" class="texto" name="borja" maxlength="10" size="10" value="<c:out value="${status.value}"/>"/> </spring:bind>  <img src='images/calendario.gif' id='lanzador1' /> </TD> </TR> <TR> <TD class="mantCab" align=left><spring:message code="mant.periodo.crud.fecFinCont"/></TD> <TD align=left> <spring:bind path="periodo.fechaFinCont"> <input type="text" readonly="true" class="texto" name='<c:out value="${status.expression}"/>' maxlength="10" size="10" value="<c:out value="${status.value}"/>"/> </spring:bind>  <img src='images/calendario.gif' id='lanzador2' /> </TD> </TR> <TR> <TD class="mantCab" align=left><spring:message code="mant.periodo.crud.fecIniDis"/></TD> <TD align=left valign=top> <spring:bind path="periodo.fechaIniDis"> <input type="text" readonly="true" class="texto" name='<c:out value="${status.expression}"/>' maxlength="10" size="10" value="<c:out value="${status.value}"/>"/> </spring:bind>  <img src='images/calendario.gif' id='lanzador3' /> </TD> </TR> <TR> <TD class="mantCab" align=left><spring:message code="mant.periodo.crud.fecFinDis"/></TD> <TD align=left> <spring:bind path="periodo.fechaFinDis"> <input type="text" readonly="true" class="texto" name='<c:out value="${status.expression}"/>' maxlength="10" size="10" value="<c:out value="${status.value}"/>"/> </spring:bind>  <img src='images/calendario.gif' id='lanzador4' /> </TD> </TR>

<script type="text/javascript"> <spring:bind path="periodo.fechaIniCont"> Calendar.setup({ inputField : "borja", ifFormat : "%d/%m/%Y", button : "lanzador1", singleClick : true, align : "Tr", weekNumbers : false }); </spring:bind>
<spring:bind path="periodo.fechaFinCont">
Calendar.setup({ inputField : "<c:out value="${status.expression}"/>", ifFormat : "%d/%m/%Y", button : "lanzador2", singleClick : true, align : "Tr", weekNumbers : false });
</spring:bind>
<spring:bind path="periodo.fechaIniDis"> Calendar.setup({ inputField : "<c:out value="${status.expression}"/>", ifFormat : "%d/%m/%Y", button : "lanzador3", singleClick : true, align : "Tr", weekNumbers : false }); </spring:bind>
<spring:bind path="periodo.fechaFinDis">
Calendar.setup({ inputField : "<c:out value="${status.expression}"/>", ifFormat : "%d/%m/%Y", button : "lanzador4", singleClick : true, align : "Tr", weekNumbers : false });
</spring:bind> </script> </pre>

Thanks!

Calendar Discussion
by Borja
2011-02-14 13:17

Hi,i solved the problem, it was a silly mistake, missing add the "id" to <input> in the jsp file, without this id does not load the params in calendar-setup.js in Calendar.setup to Firefox: function = function (params) {

var tmp = ["InputField", "DisplayArea", "button"]; for (var i in tmp) { if (typeof params [tmp [i]] == "string") { params [tmp [i]] = document.getElementById (params [tmp [i ]]);// not load } }

the injected code to fix it:

<input id = '<c:out value="${status.expression}"/>' / / id missing

Thank you very much and sorry for the inconvenience.

I need Help
by Slow Lee
2011-02-15 22:13

Hi, Am currently using the jscalendar-1.0 in an online hotel management system I am developing. I am able the popup the calendar and select dates but I want to disable all dates older than the current date (Say Today) so that guest do not select a date earlier than that date(today). The guest is suppose to enter his arrival date as well as departure date and number of nights. I want my system to calculate the number of nights once the departure date is entered. If the number of nights is changed, I want the departure date to also change.It is my project work at school and am having this problem so I need your help in doing that. Am counting on you.

I need Help
by Slow Lee
2011-02-15 22:15

Hi, Am currently using the jscalendar-1.0 in an online hotel management system I am developing. I am able to pop-up the calendar and select dates but I want to disable all dates older than the current date (Say Today) so that guest do not select a date earlier than that date(today). The guest is suppose to enter his arrival date as well as departure date and number of nights. I want my system to calculate the number of nights once the departure date is entered. If the number of nights is changed, I want the departure date to also change.It is my project work at school and am having this problem so I need your help in doing that. Am counting on you.

Calendar Discussion
by chazy
2011-02-16 08:02

hi, i would like to ask how to get today's time... i seem to have problem with the populatefields demo... if i click today, it will give me a time which is 8 hours late.

Calendar Discussion
2011-02-17 03:00

Testing JSCal2, how to preset the "Disable Dates Before" to be the current date in PopUp calendar?

Calendar Discussion
by Jack Schuurkes
2011-02-19 12:17

Hi, Could you please show me how to use setDisabledHandler() to enable only tomorrow and the next 5 days. By the way you've created a very nice calendar application.

Best Regards,

Jack

Calendar Discussion
by Nicolas L
2011-02-21 12:19

hello, I can't set "selection" when a date is already present in the input button. I tried this, but no success :

var date_input = parent.document.getElementById("input").value; Calendar.setup({ cont : "calendar-container", selection : Calendar.dateToInt(date_input), });

Any ideas ? Thx in advance

Calendar Discussion
by schwenk
2011-02-21 13:05

How could i get the position of the calender in a callback function? Is there something like "cal.selection.get();" for the position (when you change the month or year)?

Calendar Discussion
by Abhiram
2011-02-22 19:48

Hi,

Not sure if this is right place to post my question regarding Calendar control.We are using an portal and one of the screen which has calendar control is populating some invalid characters when selected date from calendar control(like nn/nn/nnnn). Wierd thing is its happening only for few users who recently got new laptops with Windows 7 OS. There others users with Windows 7 OS and working fine for them.I am sure it is related to some Java versions installed. Could provide me some help what all should I look for and where can I check these Java settings in browser?

Regards, Abhiram.

Calendar Discussion
by ferrari2k
2011-02-25 11:05

Hi, I am using your calendar for a project and I am wondering how to disable the month selection when you click on the month name.

Disabling dates after contruct
by David Crawford
2011-02-27 16:06

I need to disable dates AFTER the calendar has been constructed. As items on my page are selected certain dates will disappear. Is there any way to call "disabled" other than in the constructor?

Calendar Discussion
by Nick
2011-02-27 18:06

Hi Mihai,

I'm using your calendar because it's integrated in the joomla component eventlist. In IE there is a problem when clicking on the calendar.png. The calendar box opens offscreen and I don't know how the solve that problem. In Safari and Firefox everything is ok. Could you add some script to impose where the calendar has to open?

Thanx

firefox closes popin
by william
2011-02-27 18:57

I like a few other have a cal upgrade failure in FireFox - click the cal trigger cal shows and hides right away

works in chrome, and probably anywhere else

annoying to see 3 users with the same problem and no help

Calendar Discussion - Midnight forced to be Noon
by Matt L.
2011-02-28 19:37

Hello,

Using version 1.8 (built 2010/04/11 12:26 GMT) with this setup:

  now = new Date()

  var cal_2  = Calendar.setup({
      trigger    : "calendar-trigger",
      inputField : "id_input",
      dateFormat : "%Y-%m-%d %H:%M",
      align      : "Tr",
      min        : Calendar.dateToInt(now),
      showTime   : true,
      minuteStep : 1,
      onSelect   : function() { this.hide() },
  });
  cal_2.selection.set(Calendar.dateToInt(now));
  cal_2.setTime(Calendar.printDate(now,"%H%M"));

...I can successfully use the calendar to set the time to any hour from 1 to 23, but trying to set hour to 0 (midnight) always results in hour being set to 12.

Re: Calendar Discussion - Midnight forced to be Noon
by Matt L.
2011-03-08 05:47

Version 1.9 has fixed this problem--thanks!!

Calendar Discussion
by Seb
2011-03-01 05:03

Calender does not seem to work in IE5. do you know about this or am I doing something wrong

BUG : Selection in february displayed in March - only non English?
by Dav
2011-03-01 11:27

I noticed a bug today (1st march) that you can reproduce on the demo page (http://www.dynarch.com/static/JSCal2/index.html) - use one pop-up calendar ("Disable dates before:" for instance) to select one date in February 2011.. until here everything is ok. - then trigger the calendar once again --> the calendar does not show the right month (the day selected is in March)

One thing : it seems relative to some language other than English (French for instance). Switch language just before the 2nd trigger, you'll see the bug (or not) depending on the language.

Weird..

Re: BUG : Selection in february displayed in March - only non English?
by Dav
2011-03-01 12:21

I noticed it can be reproduced selecting a date in December..

So.. as in French December (Décembre) and February (Février) have an accent, I would highly think a problem with specific letters such as "é"..

Re: BUG : Selection in february displayed in March - only non English?
by Nathan
2011-03-03 19:14

I can confirm that this is happening for months with accented Es on my site as well. When working in French, preselecting dates in months like January (Janvier) and March (Mars) works fine, but February (Février) does not. You can still select dates within those months and the calendar behaves fine, but it does not remember the selection if you reopen the calendar.

Re: BUG : Selection in february displayed in March - only non English?
by Dav
2011-03-04 14:35

I hope this will be fixed quite soon, because despite this bug this is a great calendar!

Re: BUG : Selection in february displayed in March - only non English?
by Mihai Bazon (page author)
2011-03-04 20:37

Indeed, it seems to be a problem with accents. When it's being clicked again, the calendar has no memory of the previously selected date — instead it tries to figure it out from the value of the field. Looks like when doing that it only considers plain ASCII characters to read a month name.

The problem should not appear if you're using a date format without names, such as 2011-03-04.

I will think of a fix...

Re: BUG : Selection in february displayed in March - only non English?
by Dav
2011-03-05 15:00

Yes I figured out that not using month name would bypassed the problem. The thing is I'd like to use date format with the full name so I'd really appreciate the fix :) Thanks in advance

Re: BUG : Selection in february displayed in March - only non English?
by Mihai Bazon (page author)
2011-03-06 15:19

Finally, I released version 1.9 containing some long pending fixes and a fix for this one too.

Re: BUG : Selection in february displayed in March - only non English?
by Nathan
2011-03-08 18:36

Version 1.9 looks great, but it looks like it still has a date offset bug that also exists in version 1.8 when using Chrome. This can be seen on the pop-up demo on the site. Open the calendar and pick a date, such as March 10th, 2011. Then click elsewhere to close the calendar and notice that the correct date is in the text field. Now click the pop-up again and notice that the pop-up calendar has the previous day (March 9th) highlighted. This happens with every date I've tested in both 1.8 and 1.9. Again, this problem only appears to happen in Chrome; I could not reproduce it in Firefox.

Calendar Discussion
by Emulman
2011-03-01 16:53

i have an annoying error with your calendar JSCal2 1.8, the best i have found...on the last versions of Chrome (9.0) and Firefox (4.0 beta 12) when i click on the trigger button the calendar vanishes very soon, so i cannot choose any sort of date...

Calendar Discussion
by Emulman
2011-03-01 17:39

Note that the error above happens only when i inserted the calendar in PHP files, in normla HTML pages the calendar works...

David Crawford-Need ur help
by Slow Lee
2011-03-09 12:01

Am using the calenda in my project and i need to disable past dates. I saw ur comment and i think its similar to mine so try n let me have the codes if u get it.thanks

Calendar Discussion
by Jeremie
2011-03-09 14:56

Hi! Multi-selection is great in the demo but doesn't work if I use multi-months (ex: 1 day in April + 1 day in May). Is there a way to fix it ? Thx !

Need Server Side Current Date
by Nitin
2011-03-10 16:30

Hi, We need to select the Date which is Set on the Server But your calender selects date of the client pc please tell us any way to select and show the current date of the server.

Hi, is it compatible with ZK
by Daniel
2011-03-12 01:35

It´s a very interesting calendar, I wanted to know if it´s compatible with ZK 3 or ZK 4, thank you very much

Calendar Discussion
by Sean
2011-03-16 14:29

Can anyone provide the code to use the getdate() function to output a group of selected dates in a textbox separated by a comma (no date ranges)?

ALWAYS DECEMBER the second time the calendar is selected ...
by mauricio ramirez
2011-03-16 21:14

How to fix the "in the second time it always get december when using colons to separate hours and minutes"?

This bug is present since version 1.5, at least.

Calendar Discussion
by Sanjeet
2011-03-18 02:35

Does this calendar support tooltips

Calendar Discussion
by Roberto
2011-03-21 13:47

Hi, Is the calendar free of charge, or do I need to purchase a licence? Thanks

Calendar Discussion
by Bo
2011-03-21 20:23

1.9 doesn't work for collection with IE and Chrome, but works with Firefox.

e.g.

<input type="text" name="employers[0].previousEmploymentEndDate" size="11" value="11/19/2010" id="borrowerEmployer_employers_0__previousEmploymentEndDate"/> <a href="JavaScript:void(0);" id="borrowerEmployer_employers_0__previousEmploymentEndDate_button" onmouseover="calCode('borrowerEmployer_employers_0__previousEmploymentEndDate','borrowerEmployer_employers_0__previousEmploymentEndDate_button');this.onmouseover=''"><img src="/loanApplication/images/queryFormCal.gif" class="calendarIcon" width="16" height="16" border="0" alt="Click here to pick a date"></a> <script type="text/javascript">calCode("borrowerEmployer_employers_0__previousEmploymentEndDate","borrowerEmployer_employers_0__previousEmploymentEndDate_button");</script>

<script type="text/javascript">//<![CDATA[

    var cal = Calendar.setup({


       onSelect: function(cal) { cal.hide() },
        showTime: true
    });

    cal.manageFields("borrowerEmployer_employers_0__previousEmploymentEndDate_button", "borrowerEmployer_employers_0__previousEmploymentEndDate", "%m/%d/%Y");


  //]]&gt;&lt;/script&gt;
Calendar Discussion
by Jose Joaquin
2011-03-23 21:13

Hi!, is it possible to capture the month change event? OnChange event doesnt work very well. I need it and to get the selected month. How is possible to do it?, Thanks a lot.

Calendar Disabling Dates Issue
by Jigar
2011-03-28 20:37

Hi,

I am using jscalendar-1.0 (can't upgrade). Now the case is I want my calendar to disable all the dates those are before specific date, It disables using dateStatusFunc method, It disables the dates but if we use monnth/year navigation it updates the date, I could handle this using onSelect but the issue here is id of input is dynamic .

Any way out with the same version ?

IE 8 not adjusting well
by Vicente
2011-03-29 10:58

Hi!, I was planning to buy a lincese, but I've tested on some browsers, and it does not shows properly the popup's top background (month and week days area) on IE 8, the most used by our customers... Seems to aligned to left.

Is there any way of solving it?

Calendar Discussion
by Emi
2011-03-30 04:56

if i save file using html and run on ie nothing problem. but if i save as cfm end run on ie their align have problem but on mozilla ok

Popup Selected Date is Day Behind
by the_0ne
2011-03-30 21:09

We're using your calendar as a popup calendar. The red date shows as today's date correctly. However, the gray selected date is always a day behind the date in the textbox.

For instance, today is 3/30/2011. I type in 3/26/2011 in the textbox and then click on the trigger button. Red Date shows 3/30/2011 correctly. The gray highlighted date is 3/25/2011 instead of 3/26/2011 though.

This is every time on every page we use. I can't figure out how to change this when the calendar pops up.

Here is a screen grab...

http://j.mp/h4u5Ur

Thanks.

Calendar Discussion
by BigZ
2011-04-01 17:13

Hello !

Just a little question : I use the dateInfo param, 20100315: { klass: "highlight", tooltip: "Event 1" }

It works good, but if I have 2 event on the same day, the calendar can't show the two both .

It is possible to change that ?

Thanks

BigZ

P.S. Sorry for my english ;-)

Multiple Dates Calendar - Populate Form Field
by Mikeman
2011-04-07 00:10

Hello, I am using your multiple dates calendar that I found here: http://www.java2s.com/Code/JavaScript/GUI-Components/CalendarMultipledayselection.htm

It works well where it displays the dates selected. However I need to populate an input box or text area with the date selections made. Do you have a sample that shows how to do this? I'm not that well versed in Javascript.

Thank you.

Calendar Discussion
2011-04-07 03:10

Hello !

Thanks

Calendar Discussion
by Kapil
2011-04-08 18:23

Can any one please tell how can i disable future dates in this calendar. I am using this calendar for date of birth. so after today all dates should be disabled.

Re: Calendar Discussion
by test
2011-06-24 13:47

rgagda

Calendar Discussion
2011-04-08 18:28

I have a site with lot of apartments I rent, yet I need a searchable calender for availability to add in my search form. I saw that in the following site they use Jscalendar in the way I would like to use it: http://www.windowsonitaly.com/region/florence

Is any one so kind to give and indication of out I can make this. At the moment I am using a free Real Estate php program called Open Realty. Grazie

Calendar Discussion
by Silas Aitchison
2011-04-11 20:25

Great calendar! I am attempting to use it in prototip ajax call, however when I do this it throws and error "Calendar is not defined Calendar.setup({" Even when giving an absolute path the the js files this error happens. If I load the page where the calendar is located and not through prototip the calendar works just fine. Any ideas?

Re: Calendar Discussion
by Silas Aitchison
2011-04-11 20:31

It appears to be a problem with prototype at this point: Version 1.6.1 on Line 495 function evalScripts() { return this.extractScripts().map(function(script) { return eval(script) }); }

Calendar Discussion
2011-04-13 14:04

Hello, i have installed on inline mode the dynarch calendar..

Calendar displayed in page are for tree months. I would ask how to disable horizontal month scrolling when i move the mouse wheels.

Thank for help.

Maurizio

Calendar Discussion
by Ceddoc
2011-04-14 18:58

I've got the same error than #296 on IE all is Ok but in firefox i've an error like "P is null" ... Some ideas?

Hi Jigar i need ur help..Calendar Discussion
by Slow Lee
2011-04-15 01:07

Hi Jigar, am using the 1.0 and i need to disable days before today.i dont want past dates to be active...i see dat u ve written da code 4 dat..could u pls send it to me...pls i realy need it 4 ma project work in school.thanx....slowizzy@hotmail.com

Show only years and months
by sTuZeNeGeR
2011-04-19 01:16

I need show only Years/Months calendar? is this possible? If posible little example pls...

Calendar Discussion
by Danny
2011-04-28 04:15

I have downloaded JSCal2-1.9 and have purchased a license for it. Previously i was using the old version 1 calendar without issues. However, now I need the multiple date selection feature so I am upgrading to JSCal2-1.9. I have it working but the title area, the calendar days area and the time area (so that is almost the entire calendar)all show up with a white background. What be the best way to fix it in the css file? Secondly, the up and down time selection arrows do not display onload or when you hover them. The images path is correct because the month left and right arrows show up fine. Please help if at all possible.

Calendar Discussion
2011-04-28 15:30

Hi,

I am using WordPress with the latest version, i have also installed latest plugin of Contact Form 7.

When i installed CF7-Calender Plugin it shows error. This link is also broken, can u send my the file.

http://webwoke.com/wp-content/uploads/2009/07/cf7-calendar.php.txt

Thanks in advance Peeyush Gupta

Calendar Discussion
by anu
2011-04-29 06:48

how could i keep 'selected' the today date in a dynarch calender by default?

Close Popup Calendar with enter key
by Danny
2011-05-03 21:40

I am using the calendar in popup mode to capture a date and time. I am currently using onSelect : function() { this.hide() } to close the popup when a date is selected. However this is not the best solution when a date a time is needed as people most often select the date first and then the time....thus they are closing the popup unintentionally before the time is selected. The best solution for my app according to my test users would be to utilize a function similar to onSelect that that closes the popup when the enter key is used. How would you suggest that I accomplish that? Do you have other functions available to us programmatically besides onSelect (and the other couple that are listed in the documentation)? Any ideas or help is greatly appreciated.

Thank you for your time and consideration

Limit multiple selection
by Orlin
2011-05-04 12:38

How can i limit the selected dates in multiple selection mode? (to select maximum 3 dates etc.)

Time selector only
by Danny
2011-05-04 22:03

In a few pages I have need of just selecting time with no date. How would I best accomplish that with the calendar script?

Calendar in ASP.NET pages
by Yogananda
2011-05-06 07:41

Hi,

I have a problem in including this calendar for ASP.NET pages which has Master page, It works fine if i integrate this to HTML controls but for .NET TextBox control it throws error "Object Required", but I dont want to have html controls as the value will not be persisted on Ajax Asynchrnous post backs, Is there any way i can include this for content pages?? Please let me know, thanks in advance.

Calendar Discussion
by Josef Jura
2011-05-06 08:55

Hi, is there some easy way to change the loading of default visible date? I need to seek Today if the value field is not filled, but it doesnt work like that. If I open popup calendar where some 1999-1-1 is filled and then open some other popup calendar, but unfilled, it pops up with the 1999-1-1 in view. How can I change it ?

Calendar Discussion
by Bugfinder
2011-05-09 12:05

There is a Bug when someone types mor then 4 numbers into the textfield before the calender is called

Calendar Discussion
by Wioyno
2011-05-11 20:38

Can you tell me how to make for calender event or booking calender?

Thank you... Wiyono

Calendar Discussion
by sebastian
2011-05-12 03:21

como hago apra q el calendario funcione en cualquier navegador ya que lo corro pr mozilla firefox y al despelgar el calendario miniza la apgina seria de gran ayuda gracias

Calendar Discussion
2011-05-17 08:23

hey nice calendar plugin plugin good work

Calendar Discussion
by Jerry
2011-05-22 09:42

Is there a way to display more than one month at a time?

Calendar Discussion
by Nathalie
2011-05-22 21:15

How do we add days, months or years to this calendar?

Re: Calendar Discussion
by Nathalie
2011-05-23 18:15

Nevermind, figured out how to.

Calendar Discussion
by Rick
2011-05-24 04:37

I'm building an AJAX project and have the calendar (popup version) in a dynamic table with other info that is then placed in the innerHTML of a div using AJAX callback function Issue issue is that when i click on the button to show the calendar it does not show nore do i get any errors.

Is it even possible to do what i would like to do?

Calendar Discussion
by David
2011-05-25 00:59

Fantastic job!!! There is any posibility of viewing directly all the 12 months of a same year in the page?? This would help me very much, and I don't know if there is an easy way or better I touch the code.

Thank you very much

Calendar Discussion
by Adeela
2011-05-26 20:40

I am using this calendar. It is woking fine in IE but within box its shifted to left. and on firefox it is not displayed, in error console there is an error in jscal2.js file that says c is null at line 11.

Calendar Discussion
by Mark
2011-05-26 22:59

I am having a problem with useing this fantastic calendar. I am useing the calander in a scrollable div. But when I scroll in that div, the calander scrolls with it. Is there a solution for this?

Calendar Discussion
2011-05-27 16:24

HI guys; I want to disable all dates before today, can i do that and how? pls help

Re: Calendar Discussion
by Nathalie
2011-06-02 15:53

There is a section in the demo page that tells you how to disable dates.

Calendar Discussion
by Jordi
2011-05-29 22:55

Hi all, I've tried some javascript calendars and this is the one i like most of all but i've got some problems. In my web site there is a radio button and depending on what you select you will find some enabled dates or some others in the calendar. In the event onclick I call this function: function objDate() { findDates() //here is where i get de dates with AJAX var calc = Calendar.setup({ inputField : "NameInputText", trigger : "NameButton", disabled : function(date) { date = Calendar.dateToInt(date); if (date in enabledDates) return false; else return true; } }); The problem is that I can't see the enabled dates in the current month, I have to move the month and then works. Any idea?

Calendar Discussion
by George
2011-06-07 18:04

I have the same problem as Chris 494th post. I have't found an the answer. How to enter the date of the mysql database so that these dates are shown highlighted on the calendar. Variable as an array in php. Besides javascript function I have such as the date 20110624 20110620 20110720 20110820 20110819 20110603 20110703

And in the midst function, such 20110703 20110703 20110703 20110703 ... So many times as the number of days in a month

please help

Calendar doesn't work on Mozilla and Chrome
by Marcelo
2011-06-15 19:51

Hello, i'm having a problem with the calendar in my application java-web. It works fine on IE browser, but when i try to open the same page in Mozilla or Chrone, the calendar doesn't appear at all. If anybody can help me with this i'll appreciate very much.

Calendar Discussion
by Marcelo
2011-06-15 20:13

To clarify my situation: i'm working with genexus 9.0 in a java-web model. And the problem only appears when i set the value of the property Display Flat (Datepicker) to 'True'. Thanks for the help.

Calendar Discussion
by Hyder
2011-06-23 14:37

i am using this date format(dateFormat: "%d-%b-%Y",) its display the date 02-12-211 but i need 02-dec-2011 how to format it

Calendar Discussion
by vangeled
2011-06-29 16:16

Hi, i want to use dateInfo in combination with disabled. e.g. if a date is disabled i want to show a tooltip why it is disabled. this does not seem to work. both used separately work fine.

Calendar Discussion
by Madhava Reddy
2011-06-30 15:39

Hi, I am using calendar. I have one requirements in my project that is i have to disable the previous date and enable the dates from today onwards only. I am working on liferay portals. I have seen your calendar file i am unable to find where i have to change the code. i am sending the code. Plese send me reply where i have to change the code

/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/ * --------------------------------------------------------------------------- * * The DHTML Calendar * * Details and latest version at: * http://dynarch.com/mishoo/calendar.epl * * This script is distributed under the GNU Lesser General Public License. * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html * * This file defines helper functions for setting up the calendar. They are * intended to help non-programmers get a working calendar on their site * quickly. This script should not be seen as part of the calendar. It just * shows you what one can do with the calendar, while in the same time * providing a quick and simple method for setting it up. If you need * exhaustive customization of the calendar creation process feel free to * modify this code to suit your needs (this is recommended and much better * than modifying calendar.js itself). */

// $Id: calendar-setup.js,v 1.25 2005/03/07 09:51:33 mishoo Exp $

/** * This function "patches" an input field (or other element) to use a calendar * widget for date selection. * * The "params" is a single object that can have the following properties: * * prop. name | description * ------------------------------------------------------------------------------------------------- * inputField | the ID of an input field to store the date * displayArea | the ID of a DIV or other element to show the date * button | ID of a button or other element that will trigger the calendar * eventName | event that will trigger the calendar, without the "on" prefix (default: "click") * ifFormat | date format that will be stored in the input field * daFormat | the date format that will be used to display the date in displayArea * singleClick | (true/false) wether the calendar is in single click mode or not (default: true) * firstDay | numeric: 0 to 6. "0" means display Sunday first, "1" means display Monday first, etc. * align | alignment (default: "Br"); if you don't know what's this see the calendar documentation * range | array with 2 elements. Default: [1900, 2999] -- the range of years available * weekNumbers | (true/false) if it's true (default) the calendar will display week numbers * flat | null or element ID; if not null the calendar will be a flat calendar having the parent with the given ID * flatCallback | function that receives a JS Date object and returns an URL to point the browser to (for flat calendar) * disableFunc | function that receives a JS Date object and should return true if that date has to be disabled in the calendar * onSelect | function that gets called when a date is selected. You don't have to supply this (the default is generally okay) * onClose | function that gets called when the calendar is closed. [default] * onUpdate | function that gets called after the date is updated in the input field. Receives a reference to the calendar. * date | the date that the calendar will be initially displayed to * showsTime | default: false; if true the calendar will include a time selector * timeFormat | the time format; can be "12" or "24", default is "12" * electric | if true (default) then given fields/date areas are updated for each move; otherwise they're updated only on close * step | configures the step of the years in drop-down boxes; default: 2 * position | configures the calendar absolute position; default: null * cache | if "true" (but default: "false") it will reuse the same calendar object, where possible * showOthers | if "true" (but default: "false") it will show days from other months too * * None of them is required, they all have default values. However, if you * pass none of "inputField", "displayArea" or "button" you'll get a warning * saying "nothing to setup". */ Calendar.setup = function (params) { function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } };

param_default("inputField",     null);
param_default("displayArea",    null);
param_default("button",         null);
param_default("eventName",      "click");
param_default("ifFormat",       "%Y/%m/%d");
param_default("daFormat",       "%Y/%m/%d");
param_default("singleClick",    true);
param_default("disableFunc",    null);
param_default("dateStatusFunc", params["disableFunc"]); // takes precedence if both are defined
param_default("dateText",       null);
param_default("firstDay",       null);
param_default("align",          "Br");
param_default("range",          [1900, 2999]);
param_default("weekNumbers",    true);
param_default("flat",           null);
param_default("flatCallback",   null);
param_default("onSelect",       null);
param_default("onClose",        null);
param_default("onUpdate",       null);
param_default("date",           null);
param_default("showsTime",      false);
param_default("timeFormat",     "24");
param_default("electric",       true);
param_default("step",           2);
param_default("position",       null);
param_default("cache",          false);
param_default("showOthers",     false);
param_default("multiple",       null);

var tmp = ["inputField", "displayArea", "button"];
for (var i in tmp) {
  if (typeof params[tmp[i]] == "string") {
    params[tmp[i]] = document.getElementById(params[tmp[i]]);
  }
}
if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button)) {
  alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please check your code");
  return false;
}

function onSelect(cal) {
  var p = cal.params;
  var update = (cal.dateClicked || p.electric);
  if (update && p.inputField) {
    p.inputField.value = cal.date.print(p.ifFormat);
    if (typeof p.inputField.onchange == "function")
      p.inputField.onchange();
  }
  if (update && p.displayArea)
    p.displayArea.innerHTML = cal.date.print(p.daFormat);
  if (update && typeof p.onUpdate == "function")
    p.onUpdate(cal);
  if (update && p.flat) {
    if (typeof p.flatCallback == "function")
      p.flatCallback(cal);
  }
  if (update && p.singleClick && cal.dateClicked)
    cal.callCloseHandler();
};

if (params.flat != null) {
  if (typeof params.flat == "string")
    params.flat = document.getElementById(params.flat);
  if (!params.flat) {
    alert("Calendar.setup:\n  Flat specified but can't find parent.");
    return false;
  }
  var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
  cal.showsOtherMonths = params.showOthers;
  cal.showsTime = params.showsTime;
  cal.time24 = (params.timeFormat == "24");
  cal.params = params;
  cal.weekNumbers = params.weekNumbers;
  cal.setRange(params.range[0], params.range[1]);
  cal.setDateStatusHandler(params.dateStatusFunc);
  cal.getDateText = params.dateText;
  if (params.ifFormat) {
    cal.setDateFormat(params.ifFormat);
  }
  if (params.inputField && typeof params.inputField.value == "string") {
    cal.parseDate(params.inputField.value);
  }
  cal.create(params.flat);
  cal.show();
  return false;
}

var triggerEl = params.button || params.displayArea || params.inputField;
triggerEl["on" + params.eventName] = function() {
  var dateEl = params.inputField || params.displayArea;
  var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
  var mustCreate = false;
  var cal = window.calendar;
  if (dateEl)
    params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
  if (!(cal && params.cache)) {
    window.calendar = cal = new Calendar(params.firstDay,
                 params.date,
                 params.onSelect || onSelect,
                 params.onClose || function(cal) { cal.hide(); });
    cal.showsTime = params.showsTime;
    cal.time24 = (params.timeFormat == "24");
    cal.weekNumbers = params.weekNumbers;
    mustCreate = true;
  } else {
    if (params.date)
      cal.setDate(params.date);
    cal.hide();
  }
  if (params.multiple) {
    cal.multiple = {};
    for (var i = params.multiple.length; --i &gt;= 0;) {
      var d = params.multiple[i];
      var ds = d.print("%Y%m%d");
      cal.multiple[ds] = d;
    }
  }
  cal.showsOtherMonths = params.showOthers;
  cal.yearStep = params.step;
  cal.setRange(params.range[0], params.range[1]);
  cal.params = params;
  cal.setDateStatusHandler(params.dateStatusFunc);
  cal.getDateText = params.dateText;
  cal.setDateFormat(dateFmt);
  if (mustCreate)
    cal.create();
  cal.refresh();
  if (!params.position)
    cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
  else
    cal.showAt(params.position[0], params.position[1]);
  return false;
};

return cal;

};

Calendar Discussion
by Dorian
2011-07-05 18:36

Hi,

I'm using a jscal component into my webpage. It works fine. I'm disabling some date with an ajax call and I would like to setup automatically the value of the datepicker with the fisrt non disabled date.

Any idea ?

Thanks,

Dorian

PHP parse error
by Peter
2011-07-05 23:45

Hi there! I'm editing some php-code that uses this great calendar. The script gives a parse error that's triggered by tis line:

$("calendar-info").innerHTML = Calendar.formatString(${count:no date|one date|two dates|# dates} selected, { count: count });

My code-editor marks this part as the error-source: ${count:no date|one date|two dates|# dates}

I think it has to do with the '$' that needs to be escaped in PHP...

How can I make the calendar work? Thanks for helping me out!

load date in multiple date
by federico
2011-07-06 16:19

Hello, I would like to insert the module for managing multiple-dates of the concerts. Dates are stored in a mysql database. For the inclusion of the dates I have modified the function closed as follows:

To change the event as I set the dates in the calendar?

thanks

load date in multiple date
by federico
2011-07-06 16:19

Hello, I would like to insert the module for managing multiple-dates of the concerts. Dates are stored in a mysql database. For the inclusion of the dates I have modified the function closed as follows: <script type="text/javascript">//<![CDATA[ // the default multiple dates selected, first time the calendar is instantiated var MA = [];

  function closed(cal) {

    // here we'll write the output; this is only for example.  You
    // will normally fill an input field or something with the dates.
    var el = document.getElementById("output");

    // reset initial content.
    el.innerHTML = "";

    // Reset the "MA", in case one triggers the calendar again.
    // CAREFUL!  You don't want to do "MA = [];".  We need to modify
    // the value of the current array, instead of creating a new one.
    // Calendar.setup is called only once! :-)  So be careful.
    MA.length = 0;
    j=0;
    // walk the calendar's multiple dates selection hash
    for (var i in cal.multiple) {
      j++;
      var d = cal.multiple[i];
      // sometimes the date is not actually selected, that's why we need to check.
      if (d) {
        // OK, selected.  Fill an input field.  Or something.  Just for example,
        // we will display all selected dates in the element having the id "output".
       // el.innerHTML += d.print("%A, %Y %B %d") + "&lt;br /&gt;";
        el.innerHTML += "&lt;input name=\"data"+j+"\" type=\"text\" value=\"" + d.print("%A, %Y %B %d") +  "\" style=\"width:300px;\" readonly &gt; ";

        // and push it in the "MA", in case one triggers the calendar again.
        MA[MA.length] = d;
      }
    }
    cal.hide();
    return true;
  };

  Calendar.setup({
    align      : "BR",
    showOthers : true,
    multiple   : MA, // pass the initial or computed array of multiple dates to be initially selected
    onClose    : closed,
    button     : "trigger"
  });
//]]&gt;&lt;/script&gt;

To change the event as I set the dates in the calendar?

thanks

load date in multiple date
by federico
2011-07-06 16:20

Hello, I would like to insert the module for managing multiple-dates of the concerts. Dates are stored in a mysql database. For the inclusion of the dates I have modified the function closed as follows: <script type="text/javascript">//<![CDATA[ // the default multiple dates selected, first time the calendar is instantiated var MA = [];

  function closed(cal) {

    // here we'll write the output; this is only for example.  You
    // will normally fill an input field or something with the dates.
    var el = document.getElementById("output");

    // reset initial content.
    el.innerHTML = "";

    // Reset the "MA", in case one triggers the calendar again.
    // CAREFUL!  You don't want to do "MA = [];".  We need to modify
    // the value of the current array, instead of creating a new one.
    // Calendar.setup is called only once! :-)  So be careful.
    MA.length = 0;
    j=0;
    // walk the calendar's multiple dates selection hash
    for (var i in cal.multiple) {
      j++;
      var d = cal.multiple[i];
      // sometimes the date is not actually selected, that's why we need to check.
      if (d) {
        // OK, selected.  Fill an input field.  Or something.  Just for example,
        // we will display all selected dates in the element having the id "output".
       // el.innerHTML += d.print("%A, %Y %B %d") + "&lt;br /&gt;";
        el.innerHTML += "&lt;input name=\"data"+j+"\" type=\"text\" value=\"" + d.print("%A, %Y %B %d") +  "\" style=\"width:300px;\" readonly &gt; ";

        // and push it in the "MA", in case one triggers the calendar again.
        MA[MA.length] = d;
      }
    }
    cal.hide();
    return true;
  };

  Calendar.setup({
    align      : "BR",
    showOthers : true,
    multiple   : MA, // pass the initial or computed array of multiple dates to be initially selected
    onClose    : closed,
    button     : "trigger"
  });
//]]&gt;&lt;/script&gt;

To change the event as I set the dates in the calendar?

thanks

load date in multiple date - closed
by federico
2011-07-08 10:56

I solved the problem (I read the comments:)). dates can be initialized in the array, but for example: var MA = [new Date (2006, 0, 18), new Date (2006, 0, 19)];

thanks

Calendar Discussion
2011-07-13 10:49

Disable date is ok in static cal using Calendar.setup({ cont: "cont", min: 20110713, max: 0}); But how to disable date in popup calender

Highlight dates from ajax result
by weintor
2011-07-21 22:02

Hi! I want to highlight those dates that i get from an ajax process. The results are the dates in format "Ymd". I have this: var dates; var jq = $.post("../getdata.php", { pub: pub, option: "date" }, function(data) { dates=data.split(','); });

So "dates" is an array with the dates that i want to highlight. What is the next step? Whay i need to get it?

Thanks in advance.

Re: Highlight dates from ajax result
by weintor
2011-07-21 23:00

Ok, i get it. If someone want the same, this is the process that i've make: var dates = new Array(); $(document).ready(function() { var jq = $.post("../getdata.php", { pub: pub, option: "date" }, function(data) { var temp = data.split(','); for (i=0;i<temp.length; i++) dates.push(parseInt(temp[i]));

  calendario = Calendar.setup({
    trigger    : "selectDate",
    inputField : "calendar-inputField",
    onSelect   : function() { this.hide(); },
    dateInfo : getDateInfo
  });
});

};

function getDateInfo(date, wantsClassName) { var as_number = Calendar.dateToInt(date);

if (jQuery.inArray(as_number, dates)&gt;=0)
  return { klass: "highlight" };

};

Hope this helps someone.

Calendar Discussion
by kkkk
2011-07-23 04:54

hhhhhhhhhhhhhhhh

Calendar Discussion
by Daniel Newman
2011-07-25 19:58

I have a resize_page method in jQuery something like,

$(document).ready(function() {

          setTimeout(function() { resize_contorls() }, 100);

          $(window).resize(resize_contorls);

}

A lot of my controls widths/heights have to be calculated otherwise the my page is distorted.

I have 3 dynarch calendars side by side, if i click a calendar my 'right menu div' collapses below my 'content div'. I hooked the 'onclick', 'onblur', and 'onfocus' events for each calendar so that it calls my resize() method, and that accounted for most scenarios!

But if i click between calendars in a specific pattern. Suppose there are calendars a, b, c respectively, i'll click calendar b, then calender a, then click calendar a again. Then the right menu div is re positioned below the content.

Calendar IE - Doctype Issues
by Shaunak
2011-07-26 01:13

Hi,

JsCal works fine on firefox but on IE without the Doctype the calendar gets slightly distorted and doesn't look good.

As soon as I add the doctype it looks amazing, however the page layout gets disturbed.

What I have observed that all the Divs and margins become ineffective as if they are not in the code.

Has anyone faced a similar issue and know a solution, please reply back.

Thanks, -Shaunak.

Show calendar for two months only and highlight dates according to dates that I get from javascript arrays.
by Colin Rodrigues
2011-07-28 10:52

Hi, I want to display some events on particular days which occur only during two months. i.e...the current month and the next month only..all the remaining dates should be disabled..

Now about the arrays that i get..here's an example: aVN = new Array(); aVN.push(new Array('CET', 'July', 'Birthday', '20110704')); aVN.push(new Array('CGT', 'July', 'Anniversary', '20110705'));

So when i click on the dates that comes from the array it has to be highlighted and secondly n when i click that particular date it should show other the other message from the array...like"Birthday" or "Anniversary"...is this possible in this calendar...any help will be really appreciated. Thanks in advance.

Calendar Discussion
by laptop
2011-08-02 18:39

very interested javascript but i have some problem when to put it

How to parse Date and Time selected in 2 fields
by Rcageot
2011-08-08 04:10

Hello Is it possible from the popup to parse the selected Date and Time into 2 different input fields ? <input type=text name=date> // will contain only the date selected <input type=text name=time> // will contain only the time selected

Thanks,

Calendar Discussion
2011-08-17 00:40

I have a form with two fields one is fecha_in and the other is fecha_out. I wish when somone select fecha_out this one dont be less than fecha_in.

Thanks a lot for your help

needa coding for time selector
by syed
2011-08-17 08:31

Well i am happy to get a calendr script,but i am looking for time selector as we select calendar, actually i want to select a particular date and on the same date time to be selected!!something like online appointing pls send me the coding.. thnks!!!

Calendar Discussion
by Shrenik
2011-08-17 12:01

How can I disable future dates?

Calendar Discussion
by Gunnar
2011-08-17 20:52

How to disable the popup calendar, if a checkbox is checked ?

Calendar Discussion
by Youn
2011-08-19 06:17

hi I have a problem with calendar2-1.9.DreamWeaver told me "There is a synthax error on line 11 ofjscal2.js . I tried with Notepad++ the same.need a help PS: Sorry for my english :D

Calendar Discussion
by satya
2011-08-19 08:38

how to validate dates in two calenders

Calendar Discussion
by James Lux
2011-08-19 12:11

How can I disable dates past yesterday? I have a reporting function that only has data "as of yesterday" so I would like to disable date selection ability beyond yesterday.

Calendar Discussion
by madmix
2011-08-21 13:28

What is the setting for the display of two months. Sorry for my english, i am german

Calendar Discussion
2011-08-25 08:41

i am using js calender. i want that when i select the date(click on the calender image) , it will automatically select the date 7 days more than current date. thank you

Need CSS/Theme for old Calendar Discussion
2011-08-25 16:28

hi

we're using the very old calendar which ist only styled with the calendar.css. Now we're looking for some more modern stylesheet. Does anybody can give us a hint where to look or maybe have a calendar.css of its own? thanx!

regards, Thorsten

Programatically set min and max
by Eric
2011-08-26 22:31

I'm trying to set the min and max properties at runtime. How do I access these via code? I was thinking of trying to put this in the onSelect event: calendarName.args.min = this.selection.get(); Is this close? Any help would be appreciated.

Calendar Discussion
by Vaibhav Gupta
2011-08-28 20:30

How can i hide other month dates in current month but not in next month??

Popup function error
by ary
2011-09-02 09:04

When opening the calendar with the popup function: var cal = Calendar.setup({inputField:'date1',...}); cal.popup(...); It looks like it doesn't get the reference to the inputField... It doesn't mark the input's value at the calendar, neither put the calendar's selected value at the input (the last one can be resolved with Carlo's solution, msg #403). Is these been resolved or is going to be resolved at any code update?

Calendar Discussion
by john
2011-09-03 09:14

I am working on a access dbms,I need to add a current date and time on a form when it is opened first time and the current date and time in another field when the record is saved but it should not get updated when it is opened second time

Calendar Discussion
by Kapil
2011-09-03 15:44

I want to display small calendar beside the text box from where the user can select the date. Please help me.

Calendar Discussion
by aliving
2011-09-08 06:41

fiona-If winter comes, can spring be far behind ?

Calendar Discussion
by aliving
2011-09-08 06:41

fiona-If winter comes, can spring be far behind ?-<a href="http://www.watchesuksale.co.uk/gucci-jucci-watches-uk-sale-2372.html">Gucci Jucci watches uk sale</a>

Calendar Discussion
by Vaibhav
2011-09-08 14:22

I have more than 1 calendars in a document and I want to disable selected/range dates of active in other calendars, so that the same date(s) can not be selected in other calendars..

Please, help.

Calendar Discussion - daynames
by larry
2011-09-08 18:26

Is there a way to change the calendar daynames, i.e. Su to Sun? where would this be changed?

Re: Calendar Discussion - daynames
by larry
2011-09-08 18:34

I found the array in the language .js files. thanks

Calendar Discussion
by lils
2011-09-09 11:21

@kapil

I think, you should visit this url: http://balendra15.wordpress.com/2011/05/19/adding-security-to-birt-reports/#comment-16

I think it will be of help to you cos it was for me.

Calendar Discussion
by Sandeep
2011-09-11 13:00

Hi, I have implemented one of ur calendars in the above mentioned website. The calendar works fine in Firefox and chrome, somehow its not working in IE. Can you help me on this?

Calendar Discussion
by Vaibhav Gupta
2011-09-11 14:26

I am getting this error: Object 20110914 has no method 'toSource'

having onSelect function: onSelect: function(){ var $this=this, count = $this.selection.countDays(), dates = $this.selection; $nAd.find('.dates').val(dates.get().toSource()); }

Calendar Discussion
by larry
2011-09-12 23:09

What classes are applied to the tooltip on hover. When I have my event display, which has a class applied, it is not applying to the tooltip directly. Even if you could identify the element it is wraped in.

Calendar Discussion
by George
2011-09-13 04:13

I am trying to use the calendar widget within a facebox popup page, but it doesn't work. It works fine if I load the page on its own, but when I load the page via facebox the calendar just does not appear. I guess there is some conflict between the two scripts but I have no idea where to start to resolve this. Any ideas?

Clear date
by Sergio
2011-09-13 19:24

Hi, Does anyone know how can i clear a date from jscalendar?

Calendar Discussion Pass values
by Umuayo
2011-09-13 21:30

Is it possible to pass date values to the calendar Widget, and have it populated with all the date values? e.g. data from db, 09/01/2011/,09/05/2011, 09/08/2011, 09/12/2011. I need to have these dates preselected on the Calendar widget

--Umuayo

Calendar Discussion
by Umuayo
2011-09-13 23:16

I mean, to have the Calendar Widget pre-selected with some date values. Particularly not in a range order, but arbitrary dates in the same month

Calendar Discussion
by Doug
2011-09-14 21:43

I am impressed with your calendar control and am trying to test in an ASP.NET page in my development environment. I am using your popup example as a starting point. I have changed the input box to an asp textbox. When the page renders the javascript on button press does not fire. In tracing the script in the page I see an error message "jscal2.js:11Uncaught TypeError:Can not read property 'tag name' of null in the line Calendar=function(){funtion bm ..............

Any suggestions?

Re: Calendar Discussion
by Doug
2011-09-15 19:19

I figured it out. I was using the wrong syntax to retrieve the ASP.NET control name after it was served. Calendar is working fine now.

Calendar Discussion
by diana
2011-09-19 09:28

buenas noches tengo el siguiente codigo del jscal 1.8 que me permite actualizar una lista al darle click a la fecha me funciona bien html pero en php no no se si sean la hojas de estilos que le tengo a la pagina y otra cosa como hago para mostrar el calendario dandole click a una imagen no lo quiero fijo gracias aqui esta el codigo function updateFields(cal) {
var date = cal.selection.get();
if (date) {
date = Calendar.intToDate(date);
var datoFecha=Calendar.printDate(date, "%Y-%m-%d"); alert("datofecha: "+datoFecha); document.getElementById("f_date").value = Calendar.printDate(date, "%d-%m-%Y");

//Actualización de la lista de turnos: $("#ListaTurnos").load("listaturnos.php?f_date=" + $("#f_date").val()); }
};

    Calendar.setup({
            //cont         : "cont",
            &lt;!--showTime     : 12,--&gt;
            onSelect     : updateFields,
            onTimeChange : updateFields
    })
How to disable all past dates
by pradeep
2011-09-20 09:05

hey, how to disable all past dates

Calendar Discussion
by Mike
2011-09-22 15:03

Hi folks, I just turned to work on the project that almost complete. Devs who worked on this project used JSCal2, version 1.7, and now I have to fix few bugs, but can't get rid of this, in particular this code doesn't work for me

<asp:HiddenField ID="hfSelectDate" runat="server" /> <div id="cont" style="text-align: center"> </div>

     &lt;script type="text/javascript"&gt;

         var calendar = Calendar.setup({
             cont: "cont",
             weekNumbers: false,
             selectionType: Calendar.SEL_MULTIPLE,
             dateFormat: "%Y%m%d",
             selection:[20090507, 20090521],
             fdow: 0,
             onSelect: function () {
                 // do something
             }
         });

As you can see, I'm tryin to set selection dates for jscal2, but it always shows up todays date. Any clue ?

Calendar Discussion
by Gianny Miranda Ramos
2011-09-27 21:58

Hi, how to disable all past dates wiht jscal 1.9 and?

Calendar Discussion
by Moka Miki
2011-10-01 17:54

I downloaded the JSCal2-1.9 version. This license is free to use or need?

Calendar Discussion
by JENS
2011-10-06 14:57

I have this code and i want to put the date selected in the Hidden Field or get it in server side after the button click. Please help:

<div> <asp:HiddenField ID="HiddenField1" runat="server" /> <asp:TextBox ID="f_date1" runat="server"></asp:TextBox> <button id="Button1">...</button><br />

                    &lt;script type="text/javascript"&gt;//&lt;![CDATA[
                        Calendar.setup({
                            inputField: "f_date1",
                            trigger: "f_btn1",
                            onSelect: function () { this.hide() },
                            showTime: 12,
                            // dateFormat : "%Y-%m-%d %I:%M %p"
                            dateFormat: "%d-%m-%Y"
                        })

                        }
                        // var f_date1 = Request.Form["f_date1"]; ;
                   //]]&gt;&lt;/script&gt;

</div> <div>

  &lt;asp:Button ID="BtnSave" runat="server" Text="Button" /&gt;
  &lt;/div&gt;
Calendar Discussion
by JENS
2011-10-06 17:17

Thks! It's working now!

Calendar Discussion
by npap
2011-10-11 00:42

Hi, I have used your tool, which is fantastic. I just have some comments for it :) 1. the popup(anchor, align) method does not affect inputField (inputField remains null) and selecting a date does nothing. Maybe popup should assign inputField to the anchor parameter and selecting a date should fill it. 2. a method for "undoManageFields(trigger)" should be introduced, for "unmaking" a trigger element. So clicking on that trigger element, after calling that method, won't do anything. 3. you set z-index to a very high value. Maybe z-index would be set on setup (like min or max). Though I have come up with a workaround for that, by setting this.els.topCont.style.zIndex=... in the onFocus setup. 4. Maybe an "onTab" function would be introduced, for defining behavior if user presses "tab" while calendar is shown.

Thanks again and keep up the good work!

Calendar Discussion
by Amrit
2011-10-11 08:17

I read most of the questions (not all) and I could not find query related to mine. Is it possible to change the color of particular day according to need?

Calendar Discussion
by Madhu
2011-10-11 08:32

I wanted a calender for month and year only. I mean I wanted to select particular month and respective year against it, instead of dates. Could some body help with this. VBA code is also Okay. Thank you in advance.

calendar inline elements are aligned left
by marky
2011-10-12 09:49

hi,

my calendar's inline elements are all left aligned, the demo is centered. how do i fix this? :)

Calendar Discussion
by jibran
2011-10-12 14:46

hello all, i have created a pop up calender for some selected cells in sheet,so that i can select a date from the calender,now i want all the holidays (Saturday,Sunday & specific holidays)to be inactive/locked, so that nobody would be able to enter any holidays date in the cells.

desperately looking for a solution

Wrong year in popup
by Marcus
2011-10-17 15:37

I've got the calendar installed as part of a Joomla component called RSEvents. When adding a new event the calendar shows a year far in the future. It was 2018 last week and is 2023 this week. I can't see anything obviously wrong with the hosting environment so do you have any ideas?

Calendar Discussion
by Usha
2011-10-19 12:41

I have 2 problems with my popup calendar. I am Followed 'cal.manageFields' method to display my popup cal.

  1. How to update the input date field whenever, changed the date & time of the pop up calendar?
  2. When i use 'onSelect: function(cal) { cal.hide(); }', it closed my absolute div also.

Let me know the solution ASAP.

Thanks

Calendar Discussion
by tuxxen
2011-10-19 18:59

Forbidden

You don't have permission to access /JSCal2/ on this server.

I get this messenge when trying to edit it ive set permission to 755 but it dosent work can u tell me what can be wrong? i would really like to use this calendar.

Upgrading from old jscalendar to new jscal2 version
by Sandeepan
2011-10-24 12:32

I need to have disabling of dates past some date, so I am considering upgrading from jscalendar (http://www.dynarch.com/projects/calendar/old/) to jscal2. Two things I would like to know -

  1. In the existing code of my project, I see some jscalendar.js file, which contains the function showCalendar() which calls var cal = new Calendar(). But, I don't see that file in the downloads I did today - I downloaded both the old version (which is no more supported) and the new version. Please let me know about the correct upgrading process. I think I am missing somethning.

  2. Can I use the product on a commercial web app without a license? I did not exactly understand what is meant by "The new calendar isn't exactly free.". The purchase section says "Registered users get access to full uncompressed source code and may modify it as needed." So, can I use the product as such without registering, if I don't need to modify?

Calendar Discussion
by Jonas
2011-10-25 23:21

Hi

Your calendar works fine on my site, but it looks totally wierd. I'm using it in a wordpress page. It seems that it inherits a bunch of styles from the wordpress stylesheet.

It really seems to boil down to this piece of html generated by Jscal2: <table class="DynarchCalendar-topCont" cellspacing="0" cellpadding="0" align="center">

The class DynarchCalendar-topCont doesn't exist in any stylesheet, and therefore it gets overridden with other table styles.

Or am I blind?

Thanks Jonas

Calendar Discussion
by Rafael
2011-10-28 14:40

Hi,

I need to show a Time Zone. It is possible? Is Zapatek the previos version of JS Calendar?

Thanks Rafael

Calendar Discussion
by Knas
2011-10-31 17:18

I am seriously looking for a calendar and I do have a "Must" -requirement: It have to pass validation at jshint.com Your calendar do not pass either.

Calendar Discussion
by pio
2011-11-01 14:41

Hi, how to implement calendar(jscal 1.0)into a dynamic add/remove row. i did this way but it not working var cell6 = row.insertCell(5); var element5 = document.createElement("TD"); cell6.setAttribute("align","left"); cell6.setAttribute("colspan","2"); cell6.innerHTML="<p class='style14'><input type='text' name='DOB"+ rowCount1 +"' id='DOB"+ rowCount1 +"'><input type='reset' value=' ... ' onclick='return showCalendar('DOB"+ rowCount1 +"','%d-%m-%Y');'> </p>"; cell6.appendChild(element5);

thanks.

Calendar Discussion
by Ila
2011-11-04 18:22

Hi, Does the Calendar allow tooltip display for disabled dates? If so, can you please advise how to implement the same.

Thanks

Calendar Discussion
by tony
2011-11-06 02:47

the Calendar doesnt appear in its correct position, it appears upwards that i cant choose the date, Thx for your help

Show only months
by Frasese
2011-11-07 14:42

Hi all, is it possible to show only years and months (without dates)?

Thanks

Re: Show only months
by ChouR
2011-11-17 09:13

ThankYou

Re: Show only months
by Jay
2011-12-08 08:55

Hi, i have manage the holiday in calender but How to disable the particular date.

Calendar Discussion
2011-11-09 12:24

i hope thats the answer are you sure thats the answer?

Calendar Discussion
by Shaa
2011-11-15 07:41

I am getting issue while loading popup calendar. It is not visible on first click. It appears only on second click. What is reason for this issue? Provide me a solution also.

Thank You

Calendar Discussion
by Shaa
2011-11-15 08:45

One More Question, Is it possible to display the calendars in different position using same instance method?

Calendar Discussion
2011-11-15 11:11

Hi Guys, I took over a project recently that had an embedded Dynarch calendar. It was necessary to up grade to JSCal2-1.9. As I have taken over this project I have also inherited the Doctype declaration <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">. The calendar works perfectly using this doctype in Firefox and chrome but in IE-8 it is all out of kilter. It is very quick to test to see the difference; just copy the doctype above in and see the differences. Does any one have any tips on how to get around this. Thanks, Anthony

Calendar Discussion
by shaker
2011-11-18 07:17

i maker a calendar with text field when i enter any date in text field it show me that year calendar,but now i want i select date in that calendar that date show me in text field. This all work i done in classic asp.

Calendar Discussion
by Harold Hernan Gonzalez Potes
2011-11-21 16:22

Hello. first of all excellent development, it is possible to disable the dates before today?

Thank you.

Re: Calendar Discussion
by Harold Hernan Gonzalez Potes
2011-12-14 21:47

Hola, disculpen no lei la documentacion esta es la solución.

Calendar.setup({ cont: "sample1", min: 20090408, max: 20091225 });

Calendar Discussion
by Chiro
2011-11-21 21:52

Hi! This is an excellent calendar! I am just wondering if there is an easy way to disable top menu (month/year) selection? Thanks in advance!

week number display
by benitto
2011-11-23 17:46

Hi,

great script, however I have an issue with the week number. I select a date, I format it as %Y-%W and when I want to re-open the calendar it is not able to recognize the week number and selects current date. Is there a way to instruct the calendar how to parse the value of the textbox when re-opening the calendar?

Calendar Discussion
by Bharath
2011-11-23 22:16

I want to fill three text boxes with month date and year using a single button like you showed in that demo multiple feilds a single text box takes date month and year i would like to separate them , is there any way to do that

Calendar Discussion
by Hemant
2011-11-25 13:05

I have a calendar which i initialize like this

var today = new Date(); Calendar.setup({ inputField : "test1", trigger : "test2", weekNumbers: true, align : { prefer : "Br", fallX1 : "Br", fallX2 : "Br", fallY1 : "Br", fallY2 : "Br" }, onBlur : function(){ if(document.getElementById("test1").value == ''){ this.moveTo(today,false); } }, onSelect : function() { this.hide(); }, showTime : true, dateFormat : "%d/%m/%Y %H:%M" });

I am getting errors in js as "align.split is not a function". Please help me fix this issue.

I am trying to open the calendar popup always at the bottom of the button that triggered it.

using just align : "Br" makes the popup cover the button sometimes if the button is present near the bottom of the page

Calendar Discussion
by Kim
2011-11-30 00:13

Hello everybody,

Thanks for this superbe calendar ;-)

It will be very nice if someone could show me the code to have a "popup-input-field" & "date-info" calendar, I tried several combinations but without sucess,

Thanks very much, Kim.

Calendar Discussion
by Kim
2011-11-30 23:53

Hello,

To avoid that input field remains empty before using the calendar, is there a setting to add in order to show today's date in the input field ?

Thanks in advance, Kim.

Date Format
by Kumar Kshitiz
2011-12-04 21:42

Hi, would you please let me know how can I change the format to DD-MMM-YYYY for e.g. 26-Mar-2000. I made the array of month and kept the function c.getMonth(), I got '1Mar' in place of Mar.. Any help would be appreciated..

Calendar Discussion
by kostas
2011-12-08 15:30

hi , can please answer to me if in this calendar can i choose a specific day ? lets say i want to add an event and the event repeated every friday this calendar has any fuction for choose lets say "every friday" wtih no specific dates?

Calendar Discussion
by mei
2011-12-08 22:24

The calendar year selection is 10. How can I increase 10 to 30? So I do not need to do "back" and "back" and "back" serveral times to find the year.

Thanks

Mie

singleClick alternative
by Cristian
2011-12-13 00:21

In older version of calendar was an attribute called 'singleClick'. When this was setup to false then calendar hide only on double click - very usefull function. Now there is no more available this attribute! Do you any possible alternative/code to hide the calendar on doubleclick?

Calendar Discussion - SEL_MULTIPLE
by Mark
2011-12-14 14:10

Is it possible to use sel_multiple and generate a flat list of dates like this... 06-DEC-2011, 07-DEC-2011, 08-DEC-2011 not like this... 06-DEC-2011 -> 08-DEC-2011? Many thanks.

Re: Calendar Discussion - SEL_MULTIPLE
by Mark
2011-12-14 14:38

Figured it out myself.

<pre> Calendar.setup({ fdow : 0, trigger : "calendar-trigger", inputField : "calendar-inputField", dateFormat : "%d-%b-%Y", selectionType: Calendar.SEL_MULTIPLE, onBlur : function(){document.getElementById('calendar-inputField').value=this.selection.getDates()} });</pre>

Calendar Discussion
by abdess
2011-12-18 11:27

Hello everybody; First i have to admit that this calendar saved me days of developpement and it's more than good. I have a problem with it, i have statistiques to display as a Flash in a DIV and the calendar slids under it. I tried with zIndex in my page but without success and the other elements (such as SELECT) are displayed over my statistiques without problems. How to make the calendar always comes over the other elements?

Re: Calendar Discussion
by Matt
2012-01-25 21:25

Try this:

$(function() { var zIndexNumber = 1000; $('div').each(function() { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 10; }); });

This will reverse the default z-index stacking order of the elements on the page. It has helped me solve many many z-index issues. Its worth a try.

how to download it?
by vjhh
2011-12-21 08:59

hgbjnb hjv

Calendar Discussion
by korede
2011-12-23 17:08

i want to download it and try it

Calendar Discussion
by korede
2011-12-23 17:08

i want to download it and try it

Calendar Discussion
by Pankaj
2011-12-23 22:48

I am using Dynarch calendar-setup.js version 1.25 ... Till IE 8.0, we are having no problem in selecting the dates, but with IE 9.0 we have problems on few systems. The calendar dates are greyed out/disabled on IE 9.0 on few systems, for few it works well. It is becoming a big issue on clients and we are on heat.

Can someone suggest anything ?

Calendar Discussion
2011-12-24 01:49

hi my names ahmet yesilcen .. how tu download link pls ..

Calendar Discussion
by Martin Gonzalez
2011-12-29 01:26

Hi guys, can anyone tell me what kind of data is the selected date on the calendar? Is it a String or is a DATE datatype?

I want to compare a selected date with today's date (with javascript for a form validation), but this question I made to you is driving me crazy! (I'm new at programming, BTW)

Calendar Discussion
2012-01-02 15:46

How to disable every monday in the calendar.

Calendar Discussion
2012-01-03 05:39

Hi,

I am using version 1 of the Calendar in ASP.Net 1.1.

I am using Calendar.setup to specify an onUpdate function.

When the onUpdate function is called, I want to activate a Server Side event.

I have tried calling the __doPostBack function, created by ASP.Net, from the onUpdate function but nothing happens.

Thanks, Michael.

Calendar Discussion
2012-01-14 09:23

In google chrome if I select date where date is greater than 12 eg 14/01/2012 ,it is not working , i think chrome treating days i.e dd as month i.e MM that's why it is not working Please suggest solution

Calendar Discussion
by Troy
2012-01-24 18:21

On your code below, how can I pass the dates from DB to var DISABLE_DATES? My dates from DB are 20120405,20120406,20120407,20120408 I didn´t find a way to put them into DISABEL_DATES.

var DISABLED_DATES = { 20090502: true, 20090505: true, 20090510: true, 20090511: true }; Calendar.setup({ cont : "sample3", disabled : function(date) { date = Calendar.dateToInt(date); return date in DISABLED_DATES; } });

I tried this ASP code to get the dates from DB.

Do while not rsReserva.EOF vDias = rsReserva("dia") vMes = rsReserva("mes") vAno = rsReserva("ano") vDias = split(vDias,",") for i=0 to ubound(vDias) vDiasReservados = Trim(vDias(i)) vdata=vAno&vMes&vDiasReservados 'response.write vdata&","%> <script> dt=Number(<%=vdata%>); alert(dt); var DISABLED_DATES = {
dt: true, }; Calendar.setup(); </script> <%next rsReserva.MoveNext Loop %>

Thanks a lot.

Calendar Discussion
by Troy
2012-01-25 15:13

I thought someone would respond the questions here! :(

Position on a PopUp Calendar
by Raul Urzua
2012-01-25 21:06

Hi,

I have a problem with the position on a PopUp calendar, how can define the position? I tray to use showAt or popup methods, but i cant position the popup calendar under the under the input box in a table.

I hope you can help me.

Thanks

Calendar Discussion
by Matt
2012-01-25 21:22

I would like to be able to specify the date that the calendar is going to use. Im getting a date from perl. I would like to put this into a JS variable and use this date as "TODAY" on the calendar. I do not want it as a selection, I want it set as todays date. class="DynarchCalendar-day DynarchCalendar-day-today".

I want the calendar to be the same time/date as my server. Instead of using the browsers time, which can cause issues because of different time zones.

Is there a function already in place that would do this? Has anyone been able to successfully perform this? Any help would be greatly appreciated.

Calendar Discussion
by miwa
2012-01-28 03:52

I want to change the months and day to my own native language. (Eg. Change January to something to my native language). Is't possible in js.

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.

*
*