Problem in IE6 on XP
2005/03/18 21:02
Viewed 11259 times
Replies: 0/0

I would first like to heap praises on the developers of this calendar.

I am getting errors in IE6, no surprise I am sure. What I want to do is have no button to open the calendar and just open the calendar when the date input field has the recieves the focus or when it is clicked. The following configuration and code works fine in FireFox but has strange behavior in IE6. This is how I setup the calendar code in my html file, which does validate:

<label for="date1">*Action Date:</label>
<input tabindex="5" onclick="openTheCalendar('date1');" type="text" size="12" id="date1" name="date1" value="" >
<script type="text/javascript">
Calendar.setup({
inputField : "date1",
ifFormat : "%m/%d/%Y",
eventName : "focus",
align : "BR"
});
</script><noscript><span>Dates should be entered following this format: mm/dd/yyyy</span></noscript>

The function openTheCalendar is defined in an included script file, here is the definition:
<script>
function openTheCalendar(cont)
{
var field= document.getElementById(cont);
var val= field.value;
if(val != null && val != '')
{
if( window.calendar != null && window.calendar != 'undefined')
{
window.calendar.parseDate(val);
window.calendar.showAtElement(cont,'BR');
}
}
else
{
if( window.calendar != null && window.calendar != 'undefined')
{
window.calendar.showAtElement(cont,'BR');
}
}
return false;
}</script>

In IE I get nothing when I tab to the control however when I click on the control I get some errors, and no calendar pops up but when I click on the icon in the lower left hand corner of the window to look at the error description and then close the pointless dialog that opens the calendar appears. If I remove the onclick function from the input element the calendar opens without errors when onfocus is fired. Advice Please.

sorry for the super long sentence.

last
combining functions
2005/03/19 01:47
Viewed 11557 times
Replies: 2/5

I previously posted a question about disabling dates prior to 7 days from todays date and received a great answer (http://www.dynarch.com/forums/367). My problem now is that the disable function suggested in the post destroys my disable weekend days function. Is there a way to combine these two functions into one? Or call the first from the second? I tried to combine them to no avail. (see code below). Let me say in closing that I have made an exhaustive search for pop up calenders and found this one to be the best and am thankful for Open Source site like this one.

Eric

var SEVENDAY = 3600 24 1000 * 7;

function disallowDate(date) {
date = date.getTime();
var now = new Date().getTime();

if ( (date < (now + SEVENDAY) &&
date.getDay() == 3)) {
return true;
}
return false; // enable other dates
};

last
Re: combining functions
2005/03/19 01:49
Viewed 14001 times
Replies: 1/2

I see that I forgot to mention that my weekend days are Sunday and Wednesday, not just Wednesday as suggested in my non working code :)

last
Re: combining functions
2005/03/21 03:30
Viewed 13834 times
Replies: 1/1

Sorry Eric. Everything I've tried doesn't seem to work. It seems that instructing the script to evaluate dates after now + 7 should work, but it does not. It appears that the two disable functions interfere with each other. I guess that we'll have to wait and see if Mihai Bazon can solve this one.

last
Settng Default Date
2005/03/21 02:22
Viewed 11671 times
Replies: 1/1

I have a form that calls itself in the action attribute. How can I use date or parseDate to set the calendar to the value in it's linked control? I'm using the "for the impatient" code with a pop-up calendar.

last
Re: Settng Default Date
2005/03/21 02:40
Viewed 14465 times
Replies: 0/0

<cough..cough> Ah...never mind.

This calendar is programmed better than I though. It automagically picked up the value in the input box.

Great job!
NS

last
Noob exposed.....
2005/03/21 17:51
Viewed 10768 times
Replies: 0/0

First time here. Great Calendar, love it's look.

I have spent the past week or so working with your great flat calendar. Looking for a way (examples, with clean code) to connect this to a MS Access db to retrieve and display events. i've not got great experience with DHTML/JS/PhP/etc so be gentle with me. For instance, for whatever reason, am unable to locate the proper syntax to open an MS Access db to retrieve data and post on intranet. Once I'm able to locatre this syntax, retrieval should be simple enough

last
next/prev year and month not visible
2005/03/21 18:30
Viewed 10681 times
Replies: 1/2
by bram

Hi there,
I'm having a problem with the calendar: the bar that should contain the 'prev year', 'prev month', 'next month' and 'next year' buttons is not visible. To be exact, it is partly visible, but the text that's in it isn't visible. Also the dropdown-menu for the years doesn't come up when I hold the button.
However, the buttons do work (except the dropwdown-function).

I've tried to change some params in 'calendar-setup.js' and I also changed some things in the CSS, but it didn't work out.

Is there somebody who could help me?

Thanks in advance, Bram

last
Re: next/prev year and month not visible
2005/03/21 19:45
Viewed 13276 times
Replies: 1/1

Sounds like a brower issue, unless you've tinkered with the code a lot. ;-) What browser/version are you using? What OS?

last
Calendar shows JS function in
2005/03/22 17:49
Viewed 10649 times
Replies: 1/1

Hello, I'm using this calendar control for a small Intranet page. It works fine for all users except one. On their system, the calendar pops up, but then where it would normally display the date at the bottom, it displays "function (par) { return s[par] || par; }" three times. Clicking a date updates the text box wtih the js function.

They are using IE 5.5 SP2 on Windows 2000 SP2 (same as everyone else), and I've confirmed JS is enabled and works on other parts of the page. I have reset their security settings and IE advanced settings, but I'm having the same issue.

Does anyone know what this might be?

last
Re: Calendar shows JS function in
2005/11/02 19:48
Viewed 10962 times
Replies: 0/0

Christopher,

Have you figured out what caused the problem? I have the same issue with one of the users of my app. The IE version is 6.0, but the problem is exactly the same as what you are describing.

Thanks

Alex

last
js calendar bug?
2005/03/23 11:11
Viewed 11003 times
Replies: 1/3
by vrnb

I saw this problem only on firefox/IE on windows. On firefox linux works fine.
Description: if the date format is "%d/%m/%Y" (DD/MM/YYYY) and the associated input field is initial selected with some date, the calendar is broken on March 2005. (you see twice the 26th day).
Can anybody help? I also tried on the calendar demo page, and it's the same. (I thaught is because of my setup.)
Thank you.

last
Re: js calendar bug?
2005/03/23 11:38
Viewed 13759 times
Replies: 1/2

That's a very strange bug indeed. I discovered it long time ago and after 2 days digging I traced it down to this setting in Control Panel at Date/Time setup: "Automatically adjust time for daylight saving changes". Uncheck that box and miraculously, the calendar starts working fine. (!)

At this time I don't have a solution, sorry. Try enabling the "showOthers" feature, it seems to work fine when it displays dates from adjacent months.

last
Google