» Re[3]: js calendar bug?, by matiashazard [ quick view ]
Add a hidden date format?
2005/03/26 00:15
Viewed 10693 times
Replies: 0/0

Okay, I may have missed this, but I'd like to display the date in one format, but pass it to my database in another format. For example, display the selected date in the input field as "Friday, March 25th, 2005" while passing that date as "2005-03-25" when the form is submitted. I know I can just reformat the date in code before the form passes it to the database, but it would be very elegant if the calendar was capable of just passing the correct format in the first place.

Anyone try this or have a suggestion?

Thanks for any help.

last
have 2 calendars on page-need to set one based on other
2005/03/28 20:10
Viewed 10469 times
Replies: 0/0

Hi, I have 2 calendar objects on one page as flat calendars for an arrival and departure date. By default I set arrival to today and departure to today+1. And all works fine.

Now I need to make a change. If the user changes the month or year of the arrival calendar, I need to set the departure to the same. This is to avoid requiring the user to change both, or worse, forgetting to change the departure.

I know there is a public function to set the date. So in my flatCallback, which is the same for both calendars, I need to check to see if this is the arrival calendar, and then if the month or year have changed set the date accordingly for the departure.

But I am using the Calendar.Setup so I have no reference to the departure calendar when I am in the callback for the arrival calendar. How do I get a reference? Do I need to use the constructor instead? If so, could someone post a step by step on how it is done? There is mention of it in the docs but it assumes you know more than I do.

Thanks for any help.

last
How to validate as required
2005/03/29 05:31
Viewed 10614 times
Replies: 0/0

I have setup the calendar and it is running smoothly. The selected date goes to a hidden field for insertion into a database on submitting the form. The problem I have is I need the date provided by the calendar to be a required field. I don't simply know how to validate a hidden field on the client. Is there a way you know or resource I can visit? I am using version 0.9.6 of the calendar.

last
Submit Form
2005/03/30 03:58
Viewed 10820 times
Replies: 1/1
by Joel

Hi, I have been wondering how you would go about making a form that holds the calendar automaticly submit when a date has been selected. Thanks.

last
Re: Submit Form
2005/03/30 16:10
Viewed 13409 times
Replies: 0/0

Pass the "onUpdate" parameter to Calendar.setup, like this:

function submitForm() {
var form = document.getElementById("my-form");
// note, your form should have this ID
form.submit();
}

Calendar.setup({
...
onUpdate : submitForm,
...
});

Hope this helps.

last
Disable First Day of Week Feature
2005/03/30 18:40
Viewed 10866 times
Replies: 1/3

First off..this control is fantastic! I would like to know if there a way to disable the feature that allows a user to modify the first day of the week? I have a very 'simple' user base and would like to eliminate any chance of confusion. Thanks much!

last
Re: Disable First Day of Week Feature
2005/03/30 18:52
Viewed 13663 times
Replies: 1/2

Err, not quite possible yet, but the idea is good. :-) We'll keep it in mind for the next version.

/me thinks .oO( after spending a lot of time adding features, we now have to spend time allowing folks to disable them :)) I guess that's how things go with software... )

last
Flat calendar and multiple dates
2005/04/05 20:39
Viewed 10984 times
Replies: 1/2

Greetings,

I am wondering if it is possible to do the following:

1. Have a flat calendar
2. Be able to select multiple dates
3. Have the calendar load with certain dates selected

I am trying to develop an events calendar system whereby the administrator would be able to choose multiple dates for an event. When the admin edits the event, I'd like the calendar to appear with his chosen dates pre-selected.

Any ideas on how to pull this off?

Thanks!
Chris

last
Re: Flat calendar and multiple dates
2005/04/13 23:04
Viewed 13565 times
Replies: 1/1

Haven't gotten a response yet. Is this possible? Is any of what I'm asking about possible?

last
WeekNumbers selectable
2005/04/06 12:30
Viewed 10407 times
Replies: 1/1

Hi,

is it possible to get the weeknumbers selectable?

I want to use the calendar as follows. If you click a date, the single date should be selected and output in the input field. But if you click the weeknumber, only the weeknumber should be selected. Is this possible?

Thx
Matze

last
Re: WeekNumbers selectable
2005/09/26 17:02
Viewed 11189 times
Replies: 0/0

selectable weeknumbers like you describe would be a nice feature, and also selectable month. Is it possible to implement, or planned to be?

last
Pre-selected dates
2005/04/12 22:12
Viewed 10149 times
Replies: 0/0

If one has two dates (eg. April 13, 2005 and April 30, 2005) and the code for setting the multiple selection parameter is MA[MA.length] = d, what is the appropriate way to format each date string as the variable, d, so that the calendar will show both dates as selected the first time it is triggered? BTW, Congrats on such elegant and useful code.

last
Don't select old dates
2005/04/16 02:22
Viewed 10269 times
Replies: 1/1

Firstly, thanks a lot. This calendar is superrb, and east to configure.
Is there a way to make sure that dates older than today are not available for selection (i.e. future dates only)?

Many thanks

last
Re: Don't select old dates
2005/06/21 14:19
Viewed 12194 times
Replies: 0/0

Hi,

I too would like to implement this option, but have almost zero experience with javascript.

How would I implement this so that any dates previous than the current day are disabled and not selectable?

Please help.

Regards,

Chris

last
Why is Aqua theme so slow?
2005/04/18 21:49
Viewed 10495 times
Replies: 1/3

why is is that when I try to use the Aqua theme, it is incredibly slow? as the user moves the mouse around, it is constantly downloading the many images required. on the sample page on your site, or locally, it is smokin' fast, and very nice looking. but i put that exact same code on my site, and it's unacceptably slow. seems like maybe the aqua images need to be read into an array, but i'm not too sure how to do that.

thanks for any help!
--Jeremiah

last
Re: Why is Aqua theme so slow?
2005/04/18 21:57
Viewed 13572 times
Replies: 1/2

It's an Internet Explorer issue. If you check with any other browser you'll notice it's OK, but IE insists on loading all the images over and over instead of returning them from cache.

The only solution that I know of is to include all the images linked from the Aqua theme somewhere in your HTML code, like this:

<div style="display:none">
<img src="/calendar/skins/aqua/dark-bg.gif" />
<img src="/calendar/skins/aqua/menuarrow.gif" />
... etc.
</div>

Hope this helps.

last
Google