» Forums
» DynarchMenu forum
» Support
» DHTML Calendar in Firefox
DHTML Calendar in Firefox
2007/06/29 00:17
Viewed 2915 times
Replies: 1/2

Hi,

I am using the DHTML Calendar and it works great in IE but it is acting funny in Firefox. The calendar displays with no CSS style and the months display below the calendar, making the page longer.

Here is the code I am using:

in <head> section:
<link rel="stylesheet" type="text/css" href="search_style.css">
<script type="text/javascript" src="jscalendar/calendar.js"></script>
<script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>

NOTE: The last line in search_style.css is:
@import url('jscalendar/calendar-blue.css');

in <body> section:
<script type="text/javascript">
function dateChanged(calendar) {
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth()+1;
m = (m < 10) ? "0"+m.toString() : m.toString();
var d = (calendar.date.getDate() < 10) ? "0"+calendar.date.getDate().toString() : calendar.date.getDate().toString();
if (isNaN(y) || isNaN(m) || isNaN(d))
{
// Cannot set a date if one of the inputs is not a number
return;
}
}
recent_year = y;
recent_month = m;
recent_day = d;
}
</script>
<div id="calendarcontainer" style="margin-left: 50px; width: 250px;"></div>
<input type="hidden" name="recent_since" id="recent_since">

I know the all the file locations are correct because IE works fine. Why is firefox messed up?

Thanks!

Re: DHTML Calendar in Firefox
2008/02/11 16:06
Viewed 1347 times
Replies: 1/1
Hi, Did you every solve this problem? I am experiencing the same trouble. In IE, it is all good. In Firefox, no CSS at all. I'm really only concerned with supporting those two browsers primarily although I have to make sure it all works well in MAC Safari as well. I am using Firefox version: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
last
Re[2]: DHTML Calendar in Firefox
2008/02/12 23:27
Viewed 2260 times
Replies: 0/0

Hi,

No I didn't...the project I was working on decided to scrap the calendar idea so there was no reason for me to keep messing around with it.

Good luck!
AP

last
Google