473,500 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help Me Test My Calendar

Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.

I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.

There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.

--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #1
7 1356
"Dennis M. Marks" <de******@domain.invalid> writes:
There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.


Immediate impressions:
The month/year/today form controls are missing in Opera.
In IE, all months seem to have 29 days.

Looking at the code, I can see April listed as having 3 days in your table.
You don't need (and shouldn't have) "<!--" in your script file.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
I have read the following message from Lasse Reichstein Nielsen
<lr*@hotpop.com>
and have decided to lend my vast knowledge.

The writer said:
"Dennis M. Marks" <de******@domain.invalid> writes:
There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.


Immediate impressions:
The month/year/today form controls are missing in Opera.
In IE, all months seem to have 29 days.

Looking at the code, I can see April listed as having 3 days in your table.
You don't need (and shouldn't have) "<!--" in your script file.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'


and my reply is:
Table fixed. 29 days problem fixed. Comment delimeters removed. Works
fine in IE5 and Netscape7 on a Mac. Since I don't have opera I will
need advice on what would cause the problem.

--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #3
Dennis M. Marks wrote:
Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.

I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.

There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.

I don't see any controls on the calendar (Safari 1.1, Mac), you may
want to see how I approached the same task.
http://www.mickweb.com/javascript/arrays/oopsCal.html
Mick
Jul 20 '05 #4
I have read the following message from Mick White
<mw******@BOGUSrochester.rr.com>
and have decided to lend my vast knowledge.

The writer said:
Dennis M. Marks wrote:
Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.

I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.

There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.

I don't see any controls on the calendar (Safari 1.1, Mac), you may
want to see how I approached the same task.
http://www.mickweb.com/javascript/arrays/oopsCal.html
Mick


and my reply is:
I gave up since I didn't see much use for the dynamic calendar anyway.
I now display a calendar generated with document.write which can't be
changed.

--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #5
"Dennis M. Marks" <de******@domain.invalid> wrote in message
news:210220041628260701%de******@domain.invalid...
Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.

I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.

There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.

You might want to add the following line after the first "for" statement:

if (i==6&&daily>monthDays) break;

This will suppress the last line when it doesn't contain any dates.
Jul 20 '05 #6
I have read the following message from "McKirahan" <Ne**@McKirahan.com>
and have decided to lend my vast knowledge.

The writer said:
"Dennis M. Marks" <de******@domain.invalid> wrote in message
news:210220041628260701%de******@domain.invalid...
Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.

I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.

There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.

You might want to add the following line after the first "for" statement:

if (i==6&&daily>monthDays) break;

This will suppress the last line when it doesn't contain any dates.


and my reply is:
I thought about that but decided to keep the calendar the same size
always. Thanks anyway. Maybe I'll get tired of the current calendar and
change it later.

--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #7
I have read the following message from "Dennis M. Marks"
<de******@domain.invalid>
and have decided to lend my vast knowledge.

The writer said:
I have read the following message from "McKirahan" <Ne**@McKirahan.com>
and have decided to lend my vast knowledge.

The writer said:
"Dennis M. Marks" <de******@domain.invalid> wrote in message
news:210220041628260701%de******@domain.invalid...
Before you say anything I know that there are many monthly calendars
out there. I did it for the challenge. My calendar was COMPLETLY done
from scratch with no copied code except for the dynamic writing.

I think is is one of the smallest dynamic calendars. It allows you to
change the year and month with instant updating. It can be placed
anywhere. On my page it is within a table cell.

There are only 2 files. The javascript goes where the calendar is to
appear. The CSS file goes in the head.

Please test it and let me know if you find any problems.

You might want to add the following line after the first "for" statement:

if (i==6&&daily>monthDays) break;

This will suppress the last line when it doesn't contain any dates.


and my reply is:
I thought about that but decided to keep the calendar the same size
always. Thanks anyway. Maybe I'll get tired of the current calendar and
change it later.

--


and my reply is:
Ok. I took your advice. "i==6&&" is not required. At that point in the
loop it is always the first day of the week. If I'm past the last day
of the month then "break" and skip 1 or 2 weeks. Don't forget If
February starts on a sunday in a non leap year there will only be 4
weeks.

BTW: The current code does not allow the date to be changed after the
display and it is in a "div" rather that a table cell.

Can anyone find a smaller script for a monthly calendar? :-)

--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3448
by: Martin | last post by:
Hello, I'm new with triggers and I can not find any good example on how to do the following: I have two tables WO and PM with the following fields: WO.WONUM, VARCHAR(10) WO.PMNUM,...
2
4175
by: M Rao | last post by:
I have xml data coming in as a stream from a web service running against exchange server.The attributes for the elements dtstart and dtend, b:dt="dateTime.tz"...
1
1959
by: 848lu | last post by:
hey i really need help...i got this code....basically im suppose to make a calender that allows a user to type in month and year .... and the calander displays it on the scree using...
20
3734
by: johnnyboy7 | last post by:
I don't know a lot about ASP and I know even less about SQL. I have been trying to search the web for information to be able to get done what I need. I've tried piecing things together from many...
2
3131
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
3
1956
by: mikaint | last post by:
I'm really confused here...i'll need some help with the following... i have a sceipt that will open a popup win which is actually a calendar and i'm trying to apply a style on the popup... Here's...
7
2339
by: gubbachchi | last post by:
Hi all, In my application I need to display the data fetched from mysql database after the user selects date from javascript calender. I have written the code in which after the user selects the...
3
2380
by: Lester | last post by:
I'm driving myself crazy with a problem in trying to translate a query written for Access to that for SQL server. I would think that I would use a trigger, but am not sure how to set it up. We...
10
4837
by: carletongardener | last post by:
I'm trying to make a calendar where the frost date is input and based on this date, a list of other dates are calculated that will be specific times from the input date. I have minimal programming...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.