Re: language files
2006/07/21 17:23
Viewed 10908 times
Replies: 1/1


Almost 2 years later I have the same problem. None of the language files work (same behaviour as in OP) with the exception of "en" and "es" (well almost).

Any help appreciated.

Thanx.

last
multiple dates on 1 form
2004/12/25 04:32
Viewed 14115 times
Replies: 0/0

Is there a way to put 2 calendar fields one after the other? ie. arrival and departure date for instance, I am able to set the arrival but how do I trigger a secondary date on the same form?

last
Bug in Firefox hidden select-box
2004/12/29 07:27
Viewed 14377 times
Replies: 0/0

I have the follow situation:
1 - A form with 2 tabs using the calendar, if i open the calendar in the active tab, a select-box in the hidden tab dissapears,
but when i close the calendar and select the tab, that was hidden, a select-box contained in that tab does't appear again!

last
wrong month
2004/12/30 13:47
Viewed 14020 times
Replies: 1/1

for some reason when i click a date on the flat calendar its one month behind.

this sample calendar is the same way
http://www.dynarch.com/demos/jscalendar/simple-2.html

however, the one on this page is not
http://www.dynarch.com/demos/jscalendar/

any ideas? seems only to be the calendars that submit to the URL.

last
Re: wrong month
2004/12/31 06:26
Viewed 16475 times
Replies: 0/0
JavaScript counts its months from zero to 11, as shown in the code example. If you amend one line to var m = calendar.date.getMonth()+1; it should do what you expect.
last
Select element call back
2005/01/09 16:04
Viewed 13602 times
Replies: 0/0

I am wondering if anyone has created select element call back. What I would like is to offer select elements for a user to fill in the date, with the calendar menu on the right if they want to use it, in the typical way you see for example on airline reservation systems. I would also like that select element for the time.

Has anyone created a modification to the onClick handler to handle this?

Thank you.

last
Calendar returning a 'blank' value
2005/01/11 13:10
Viewed 13620 times
Replies: 0/0
by Dave

I'm playing with the calendar and I'm looking for a way to have the calendar widget return a 'blank' value...

Basically, I have a field that is not user editable where the date is held. Once the date is added, there doesn't seem to be a way to make it blank using the calendar control. I don't really want to have to add a new button to delete the field value at each field.

Any suggestions ? Thanks !

last
Error message
2005/01/12 16:11
Viewed 13374 times
Replies: 1/1

This is my first time using this control. I keep getting the following js error when I call showCal()...

Line: 1324
Error: "this.element.style" is null or not an object.

The line in calendar.js is: this.element.style.display = "block";

My code is just: showCal(document.frm.txtDate); and i can get the value of the textbox from js so I know it's valid.

Any ideas?

Thanks in advance,
Jim

last
Re: Error message
2005/01/13 09:52
Viewed 15812 times
Replies: 0/0

Never mind... it's okay now. I should know not to try something new at the end of a tough day :)

Thanks!

last
Question regarding additional info in cells
2005/01/13 12:49
Viewed 13142 times
Replies: 1/1

I am presently attempting to make an interactive calendar which displays additional info when a date is highlighted and pressed. I am currently using the following code:

function dateChanged(calendar) {

if (calendar.dateClicked) {
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth();
var d = calendar.date.getDate();
var link;
link = "http://someplace.com/Calendar/" + y + m + d + ".shtml";
PopItUp(link)
}

};

Calendar.setup(
{
flat : "calendar-container", // ID of the parent element
flatCallback : dateChanged // our callback function
}
);
function PopItUp(url)
{
newwindow=window.open(url,'name','height=305,width=300');
if (window.focus) {newwindow.focus()}
return false;
}

I guess it would be pretty tedious to attempt to make a html page for each date. So basically, is there a way to return a universal html page for all dates that do not have any additional info? Also, I was reading on a past post on how to make non-selectable dates, but it seems to me that the code only considers one range. How would I make multiple ranges (for example, non-selectable dates from Jan. 1 - 16. Additional info on Jan. 17. Non-selectable dates from Jan. 18 - 24...etc.)? Thanks.

last
Re: Question regarding additional info in cells
2005/01/18 10:18
Viewed 15514 times
Replies: 0/0

Nevermind...found the code in the documentation. Thanks all!

last
Using Calendar With Separate Form Fields For Y/M/D etc.
2005/01/17 12:35
Viewed 13148 times
Replies: 1/1

I'm trying to adapt The DHTML Calendar for use with Textpattern which has separate form fields for year, month, day, hour, and minute. Can I have The Calendar output to the separate fields all at once? If so, how do I do it?

Thanks for such a cool calendar!

  • jeff
last
Re: Using Calendar With Separate Form Fields For Y/M/D etc.
2006/05/12 22:46
Viewed 10696 times
Replies: 0/0

Try this:

<input type="text" name="month" id="f_date_a" size="2"/>/
<input type="text" name="day" id="f_date_b" size="2"/>/
<input type="text" name="year" id="f_date_c" size="4"/>
<input type="reset" id="f_trigger_b" value="...">

<script type="text/javascript">
function catcalc(cal) {
var date = cal.date;

var field = document.getElementById("f_date_b");
field.value = date.print("%d");

field = document.getElementById("f_date_c");
field.value = date.print("%Y");
}
Calendar.setup({
inputField : "f_date_a",
ifFormat : "%m",
button : "f_trigger_b",
onUpdate : catcalc
});
Calendar.setup({
inputField : "f_date_b",
ifFormat : "%d"
});
Calendar.setup({
inputField : "f_date_c",
ifFormat : "%Y"
});
</script>

This will populate the first box with the month, then use the onUpdate to populate the other 2 boxes with the day and year of the selected date.

last
show and hide calender
2005/01/18 18:31
Viewed 12881 times
Replies: 0/0

I am using your calender in a web based application.

I am trying to hide and show calender popup based on a js validation. I am using the default calender.setup ie

<script type="text/javascript">
Calendar.setup({
inputField : "letterDate_1", // id of the input field
ifFormat : "%d-%b-%Y", // format of the input field
button : "calenderIcon_1", // trigger for the calendar (button ID)
align : "Bl", // alignment (defaults to "Bl")
singleClick : true
});
</script>

The validation js occurs somewhere else. I am using a Icon instead of a button for the user to click. Is there a way I can call that particular obj and call its method hide()?

Regards,
Raaj

last
Question regarding Calendar.setDateStatusHandler function
2005/01/20 15:06
Viewed 13092 times
Replies: 1/1

The documentation states that you can highlight specific "special" dates using this function (Calendar.setDateStatusHandler, reference number 4.3.8), although you have to define the CSS class that you return. How do you define a CSS class? Do you have to make an entirely new sheet or do you just add the appropriate style tags to an existing CSSsheet? Or can you define the class in your existing HTML document? Also, the documentation has the following code:

if (dateIsSpecial(y, m, d)) return ' ' special ' ';

is this four single quotes (' ' special ' ') or is it supposed to be two double quotes ("special")?

I am assuming that this is where the special CSS sheet is supposed to be passed, but I am having a tough time making it work. Any help or guidance would be greatly appreciated. Thanks.

last
How to show calendar on MouseOver
2005/01/28 11:21
Viewed 12817 times
Replies: 0/0

I would need to open tha calendar when passing the mouse over an icon instead of having to click on it.
I tried the Calendar.show() function... but I get an error saying that this unction doesn't exist.

Any idea?

Thanks,
Michi

last
compare dates
2005/01/30 14:59
Viewed 13059 times
Replies: 3/3

Hello,

I use the calendar to enter a start and an end date. Often users enter an end date which is earlier than the start date. How can I adjust the end date calendar so that the user can't enter a date which is before the start date (and only if it is just entered)?

Jens

last
Issue with Ctrl-F
2005/02/01 22:54
Viewed 15671 times
Replies: 0/0

Hi,

This calendar is awesome, really cool stuff. But I am having an issue in IE6 having this calendar.
Steps to recreate:

1. Go to a page with the calendar displayed
2. Do Ctrl-F and search for any word. Hit Find Next
3. IE crashes. I have to kill it from Task Manager.

What is causing IE to crash? How to get around it ? I could reproduce this in multiple machines, both with XP and Win2K

Thanks

danerles

last
Google