Disableing only past dates
2008/05/29 22:07
Viewed 2981 times
Replies: 0/0

Hi everyone

Thanks for this great calendar, it saves me a lot of time.
Anyway I have a problem, which is maybe discussed already here, but cannot find a solution,
I want to disable only past dates, so only the dates from today are clickable.
I saw the posts about how to disable a period in the calendar, but doesn't helped me much, since i'm not that good in javascript.
I would appreciate any solution.

Thanks in advance

last
When click in next mont(year) and the previous month(year)
2008/06/05 12:23
Viewed 3112 times
Replies: 1/1

Hi experts,

I have a problem, when click in the next month (or year) or in the previous month (or year) appear the date in the textbox... How can avoid it? I only want that write the date when click in a day.

Thanks in advance,

last
Deleting or replacing next/previous year buttons
2008/09/16 17:28
Viewed 1614 times
Replies: 0/0

Hi all.

I noticed that many visitors on my website are confused with the date navigation buttons: "previous month" (<), "next month" (>), "previous year" (<<), "next year" (>>).

They think the buttons behave this way: "previous day" (<), "next day" (>), "previous month" (<<), "next month" (>>).
So they often ask me for cotations starting September 2009 instead of September 2008, for example!

Do you know how I could:
- either delete "previous year" and "next year"
- or (better option) replace "previous/next month" by "previous/next day" and "previous/next year" by "previous/next month"
??

Thanks in advance.

last
Multiple date selection
2008/06/15 21:06
Viewed 3216 times
Replies: 0/0

Hi There,

Before I begin, I'd like to extend my thanks to the creator of this awesome bit of open souce code allowing people like me to not have to re-invent the wheel when it comes to enhancing the user friendliness of their sites, cheers!

To business - I've been playing with the pop-up calendar for a while now and what I'd truly like to do is allow the user to make multiple date selections.
Using calendar-setup.js and thanks to the documentation this is fairly straight forward. However, I've been trying to combine this with the prototype window code (http://prototype-window.xilinus.com/) ie set the calendar within a prototype window (essentially a floating div set 'above' the page thanks to its z-index) and to cut a long story short have had no success (more than likely due to my relative inexperience :).
I was able to have it work by calling the calendar via the old manual way (ie calling the calendar constructor within my own javascript function) that preceded the calendar-setup.js way of calling the calendar. The problem comes in when I try to set the calendar to multiple selection mode. Upon closing the calendar I'm not able to output the list of dates that I assume have been stored in the cal.multiple hash/array to the referenced input field or text area.
My question is firstly, is it possible to call a multiple data selection calendar using the manual way of calling the calendar and secondly could someone show me an example of how to do it?
Any and all comments welcome - been tearing my hair out on this one for what seems like ages!

Larry

last
All selects hidden
2008/07/08 21:09
Viewed 2382 times
Replies: 0/0

I am trying to use the calendar as a flat calendar. I have positioned my div element so it is no where near any inputs that are selects. However when I load the page all selects and hidden until I choose a date on the calendar. At that point they all are visible and everything works great. This is happening in ie7. Can you point me to the place in the code where you hide the select inputs so I can try messing with it?

last
dateEl is null (Firefox problem)
2008/07/09 17:51
Viewed 2983 times
Replies: 0/0

I am have trouble using the calendar in firefox, it works perfectly fine in IE but when using FF3 I get the following error

"dateEl is null"
cal.parseDate(dateEl.value || dateEl.innerHTML);

This happens when I click the calendar icon, the calendar does not appear, just that error (picked up with firebug, if firebug is not used then nothing happens at all)

Is this a known issue at all? any ideas? Thanks very much

last
Pre-selected date
2008/07/27 19:09
Viewed 3020 times
Replies: 1/8

Hi all,

My thanks for this great piece of code!
I wonder if anyone could help with this query? Basically I want to be able to pre select at least one date within an instance of the pop up calendar when it is called by the user and I wondered if anyone out there had any experience on doing this.

The context to this is as follows:
I want the user to be able to edit the dates that are associated with an event record that is stored in my database. This means when calling up details on the event for editing within a form, the current dates attached to this event are also displayed in a text area. When calling up the multiple date enabled calendar in order to change the dates that are currently displayed in this text area, I want the dates displayed to be pre selected in the calendar.
I've been looking through the reference document for the calendar and have noticed a calendar method called parsedate which sets the calendar to a specific date. My thinking is that I need something like this to happen with regards to getting dates in to the multiple property of the calendar but I'm a bit confused as to how to do this! Can anyone give me any pointers?

Larry

last
Re: Pre-selected date
2008/08/01 00:29
Viewed 3857 times
Replies: 1/7

Try 'date' in Calendar.setup:

Calendar.setup({
displayArea : 'output-flat',
flat : 'calendar-container-flat',
multiple : MA,
flatCallback : myCallback,
date : '<?php echo date("Y/m/d H:i",$row['events_date']);?>', // Get date from db
});

/Barry

last
Disabling todays date
2008/08/01 12:42
Viewed 2705 times
Replies: 0/0

I have the DHTML calendar on a web site and I am using the dateIsSpecial function to only show valid dates.

However is it possible to get the script to automatically disable/hide todays date??

Thanks

last
XHTML trouble
2008/08/07 00:04
Viewed 2209 times
Replies: 0/0

Hello all,

I looked through the documentation and browsed around the forums and was unable to find a solution to my problem. I found a topic describing a similar issue that was titled "Use dynarch calendar script in JSF" and was posted in late May of 2007 (http://www.dynarch.com/forums/2003).

When my pages that use jscalendar are saved with the XHTML file extension, the popup calendars don't work (I haven't attempted with flat calendars). The same also applies when I use PHP's header() function to set the content type to application/xhtml+xml.

I use the Firebug extension in Firefox, and yesterday, the first few times I attempted to use XHTML with jscalendar, Firebug threw two unhandled exception errors when I would click on the trigger. The first time I would click, the error was occurring at line 1138 of calendar.js. The second time I would click, the error would was occurring at line 763. Then no more errors were thrown in subsequent clicks. Both lines deal with setting the innerHTML of a table cell.

Unfortunately, in the last several attempts, Firebug hasn't thrown these errors, so I am unable to post them.

So I guess my question is, is anyone aware of what may be causing this issue or of any workarounds?

Sorry to be so long in the description of the issue. Thanks in advance for any assistance.

Sid

last
Spin-Buttons
2008/08/11 22:10
Viewed 2457 times
Replies: 0/0

Hello,

On the down belog image, the time fields of the calendar object have to spin buttons (up/down):
http://www.dynarch.com/img/dl.png

Is there any chance to set these up/down buttons for the time fields of a calendar?

Thank you very much
Markus

last
Set Mutiple Dates
2008/08/15 21:57
Viewed 2380 times
Replies: 0/0

I would like to initialize the calendar with multiple dates.

My usecase would be to use the Calendar in multiple-select mode in a form to set some information. When someone would like to change this information, they would acces the "Edit Info" Page, and all the previously recorded information would already be entered in the form. How do I pre-select the dates in the calendar? I've tried multiple variation of the SetDate function, but nothing seems to work.

Thanks

last
Problem with flat calendar
2008/09/17 22:20
Viewed 1425 times
Replies: 0/0

I'm having an issue using the flat calendar. I can get it to work as long as the user selects a date, including the current date, but if they do not click on a date, the date gets set to December 31, 1969. Obviously this presents a problem. Also, every time I try to set the inputField to the id of the input on the form, the calendar fails to display. If I either get rid of the input tag on the form, or get rid of the inputField info in the Calendar.setup, the calendar displays.

The only way I can get the calendar to work at all flat is to use this (in which case the calendar displays and works correctly):

the first line of my form:
<input name="Date" type="text" id="date">

my script after the form:

<script type="text/javascript">

function dateChanged(calendar) {
// Beware that this function is called even if the end-user only
// changed the month/year. In order to determine if a date was
// clicked you can use the dateClicked property of the calendar:

document.timesheet.Date.value = calendar.date;


};

Calendar.setup(
{
flat : "calendar-container", // ID of the parent element
flatCallback : dateChanged // our callback function
}
);
</script>

and in my PHP form processor I had to add this to get the date formatted correctly:

$array['Date'] = date("m/d/Y",strtotime($array['Date']));

The calendar is awesome, just not functional for me at the moment. By the way, I know next to zero javascript, so that doesn't help.

Thanks in adavnce.

last
Google