473,804 Members | 2,028 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 1373
"Dennis M. Marks" <de******@domai n.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/rasterTriangleD OM.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******@domai n.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/rasterTriangleD OM.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******@BOGUS rochester.rr.co m>
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******@domai n.invalid> wrote in message
news:2102200416 28260701%de**** **@domain.inval id...
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>mo nthDays) 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******@domai n.invalid> wrote in message
news:2102200416 28260701%de**** **@domain.inval id...
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>mo nthDays) 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******@domai n.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******@domai n.invalid> wrote in message
news:2102200416 28260701%de**** **@domain.inval id...
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>mo nthDays) 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
3464
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, VARCHAR(10) WO.PROBLEMCODE, VARCHAR(8)
2
4194
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" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/, are causing trouble. I tried to create schema using xmlspy and I get an error saying name "b:dt" cannot have a namespace prefix. I am new to xml. Can somebody please help with schema. <appointments> <appointment>
1
1982
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 "GregorianCalendar"....and finally the users shold be able to select a date and store information... please feel free to edit the code and play around with it...if you do please commen them out so i understand it... peace... P.S. IT CANT BE ON APLET ...
20
3774
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 different sites, adding my own info in where needed, but it just isn't working. What I want to do is, using an existing database setup for a calendar application, pull information out of the database and display a title of an entry that corresponds...
2
3158
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 then the calender gone actually i want if i click outside off the calender then it should me removed ..How kan i do this ... Pls inform me as early as possible .. I am waiting for ur quick replay ...Here i attached the source code .... <!DOCTYPE...
3
1983
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 the popup code: var cal1 = new calendar1(document.forms.elements); cal1.year_scroll = true; cal1.time_comp = false; calendar1 is: function calendar1(obj_target) {
7
2375
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 date from calender and clicks search button it will fetch data from database. But what I need is as soon the user clicks the date, it should fetch data for that date from database. How to do it. Here is the code I am using <html> <script...
3
2396
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 have a database that manages bookings in four banquet halls. It was running in an Access database, but two years ago, I migrated it to SQL server. In the access database I used VBA to check to ensure no duplicate bookings. I wanted no dup...
10
4876
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 skills and would appreciate any help. I've gotten code that will input the frost date and output a single date (6 weeks prior to this date = tomato planting date). I wish the output button was a list of dates, or there were multiple buttons that pop...
0
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10088
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4306
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 we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.