Click to See Complete Forum and Search --> : help with a calendar
sarment_02
11-12-2003, 09:21 PM
hi, i need a calendar where u have 2 spaces to put the begin dat and the end date, that u click submit or something like that, and to show those dates, and when i see the dates they can show if there is any event those days, can somebody help, if any bosy know how please, put the code here or attach a file that contains the code,,
thanks!!!!
jalarie
12-02-2003, 09:02 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US">
<head>
<title>Dates</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Author" content="James A. Alarie - jalarie@umich.edu" />
<link rev="made" href="mailto:jalarie@umich.edu" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<!--
Author: James Alarie
Company: University of Michigan - Flint
Address: Murchie Science Building - 203E
303 E Kearsley St
Flint MI 48502
United States of America
Telephone: +1-810-762-3394x21
Fax: +1-810-762-3687
Web Site: http://spruce.flint.umich.edu/~jalarie/
E-Mail: jalarie@umich.edu
Comments: Having said that, I've probably told you more than I know.
-->
<script type="text/javascript">
<!-- Hide this code from non-JavaScript browsers
Events=new Array(
'2003-11-31,Halloween',
'2003-12-02,Today stuff',
'2003-12-03,Tomorrow stuff',
'2003-12-25,Christmas'
);
function CheckIt() {
f1=document.forms[0]; // abbreviation
DFrom=f1.DateF.value;
DTo=f1.DateT.value;
Message='Meetings in the given date range:';
for (ix1=0; ix1<Events.length; ix1++) {
Event=Events[ix1];
Event_Date=Event.substring(0,10);
if ((Event_Date >= DFrom) && (Event_Date <= DTo)) {
Message+='\n '+Event;
}
}
alert(Message);
return false;
}
// End hiding -->
</script>
</head>
<body background="jaa_bgnd.jpg" bgcolor="#ffffee" text="black"
link="blue" vlink="#800088" alink="red">
<!-- Page Header -->
<center><h1>Dates</h1></center>
<hr />
<!-- Content -->
<center>
<form method="post" action="" onsubmit="return CheckIt()">
From: <input type="text" name="DateF" id="DateF" /> as yyyy-mm-dd
<br />
To: <input type="ext" name="DateT" id="DateT" /> as yyyy-mm-dd
<br />
<input type="submit" value=" Submit " title=" Submit " />
<input type="reset" value=" Reset " title=" Reset " />
</form>
</center>
<!-- Page Footer -->
<br clear="all" /><hr />
Written on December 2, 2003, by:
<a href="mailto:jalarie@umich.edu">James Alarie</a>
</body>
</html>