Where To Get A Calendar App
Mar 8, 2011I don't have any knowledge of apps but would like to get one like this and be able to change/add info to it myself.
View 2 RepliesI don't have any knowledge of apps but would like to get one like this and be able to change/add info to it myself.
View 2 RepliesThe following code is working fine only in IE. when i click on the calender img, calender window is not coming up in firefox/chrome.
[Code]....
preferably one that when clicked can update three date dropdowns (day, month, year) like ...
View 19 Replies View RelatedI want to popup a calendar (which is not difficult to many developer),
but the difficulty to me is, how to make the user select only on a
particular period, like he/she can only select a date from today to the
date of (today + 10).
I have a button that opens a calendar and populates a text box. I use
the onclick event to open the calendar.
Now the textbox has a onChange event that calls a function. The
onChange fires perfectly if I type the date on the textbox, but if the
calendar changes the date on the field then the onChange event doesn't fire.
I even try the following, but it seems that both functions run at the
same time and the value on the field is never picked up.
I have a page of dates in a form field which currently are being entered manually and wish to have a calendar pop up for each one to make it a bit easier i have managed to use a calendar routine 'tigra calendar' i found online but now after working out not to get it working within my own template i faced the problem on multiple date fields.
i currently use a numbers field 1-10 or how every many there needs to be on that page. but how would i integrate this within the coding from 'tigra calendar' can anyone suggest a better way to do this.
if needed i can sort out a zip file of the files i have for tigra calendar.
Floating, "perpetual" calendar, displaying one month at a time, in a standard calendar grid. Click a date and a form field is populated with mm/dd/yyyy. Populate one or multiple form fields with a single click. May specify up to 7 form fields to populate. Customizations for jumping a number of months/years ahead or behind. Floats to the left hand side or the right hand side. Tested in IE6 & FF1.5.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Any Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
/* Copyright 2007, Michael J. Hill. Used with permission. www.javascript-demos.com */
/* Free use of the code, so long as BOTH copyright notices are kept intact */
// Customizations
var defaultMonth = 0; // 1 displays next month onload, -6 displays six months ago
var hopMonths = 6; // number of months to "jump" for Fast Forward and Rewind buttons
var hopYears = 5; // number of years to "jump"
var hiLiteToday = true; // if and when current month is displayed
var floatTo = "right"; // right or left
var clickField = [];//Do not delete this line, the following lines are optional and you may have up to 7 fields
clickField[0] = "contractDate,Order Received"; // fieldName,Description
clickField[1] = "startAssembly,Started Assembly";
clickField[2] = "endAssembly,Finished Assembly";
clickField[3] = "dateShipped,Order Shipped";
// End Customizations
// Do not edit below this line
var IE = false;
if (navigator.appName == "Microsoft Internet Explorer"){IE = true}
var monthNames = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var refDate = "";
var today = "";
var usedToday = "";
var prevField = "";
var leftStr = "";
if (floatTo == "right"){leftStr = (screen.width)-235+"px"}
if (floatTo == "left"){leftStr = "0px"}
if (clickField.length > 0){for (t = 0; t < clickField.length; t++)
{clickField[t] = clickField[t].split(",")}}
function stayHome(){
var nV = 0;
if(!document.body.scrollTop){nV = document.documentElement.scrollTop}
else {nV = document.body.scrollTop}
document.getElementById('nCalendar').style.top = nV+'px'
setTimeout("stayHome()",50);
}
function rewindM(){
refDate = new Date(refDate.getFullYear(),refDate.getMonth()-hopMonths,1)
createCalendar();
}
function forwardM(){
refDate = new Date(refDate.getFullYear(),refDate.getMonth()+hopMonths,1)
createCalendar();
}
function rewindY(){
refDate = new Date(refDate.getFullYear()-hopYears,refDate.getMonth(),1)
createCalendar();
}
function forwardY(){
refDate = new Date(refDate.getFullYear()+hopYears,refDate.getMonth(),1)
createCalendar();
}
function prevM(){
refDate = new Date(refDate.getFullYear(),refDate.getMonth()-1,1)
createCalendar();
}
function nextM(){
refDate = new Date(refDate.getFullYear(),refDate.getMonth()+1,1)
createCalendar();
}
function prevY(){
refDate = new Date(refDate.getFullYear()-1,refDate.getMonth(),1)
createCalendar();
}
function nextY(){
refDate = new Date(refDate.getFullYear()+1,refDate.getMonth(),1)
createCalendar();
}
function fillField(n){
if (usedToday != "" && refDate.getMonth() == today.getMonth() && refDate.getFullYear() == today.getFullYear()){usedToday.style.backgroundColor = "#ffff00"}
if (prevField != "" && prevField != usedToday){prevField.style.backgroundColor = "#ffffe0"}
var fillDate = refDate.getMonth()+1+"/"+n.lastChild.data+"/"+refDate.getFullYear();
fillDate = fillDate.replace(/^(d{1}/)/,"0$1").replace(/(d{2}/)(d{1}/)/,"$10$2")
for (i = 1; i < clickField.length+1; i++)
{
if (document.getElementById('fieldBox'+i).checked)
{
document.forms[0][clickField[i-1][0]].value = fillDate;
document.getElementById('fieldBox'+i).checked = false;
if (n.style.backgroundColor == '#ffff00'){usedToday = n}
if (n.style.backgroundColor == 'rgb(255, 255, 0)'){usedToday = n}
n.style.backgroundColor = "#90ee90";
prevField = n;
}
}
}
function createCalendar(){
document.getElementById('header').lastChild.data = monthNames[refDate.getMonth()]+" "+refDate.getFullYear();
var currEOM = new Date(refDate.getFullYear(),refDate.getMonth()+1,refDate.getDate()-refDate.getDate()).getDate();
var pageMap = document.getElementById('monthPage');
for (i=2; i<8; i++)
{
for (n=0; n<7; n++)
{
if (IE){pageMap.rows[i].cells[n].lastChild.data = " "}
else {pageMap.rows[i].cells[n].lastChild.data = "-"}
pageMap.rows[i].cells[n].style.backgroundColor = "#ffffe0";
pageMap.rows[i].cells[n].style.cursor = "auto";
}
}
var counter = 0;
var startDay = new Date(refDate.getFullYear(),refDate.getMonth(),1).getDay();
for (i=2; i<8; i++)
{
for (n=0; n<7; n++)
{
if (i == 2 && n >= startDay)
{
counter++;
pageMap.rows[i].cells[n].lastChild.data = counter;
pageMap.rows[i].cells[n].onclick = function(){fillField(this)}
pageMap.rows[i].cells[n].style.cursor = "pointer";
}
if (i > 2 && i < 6)
{
counter++;
pageMap.rows[i].cells[n].lastChild.data = counter;
pageMap.rows[i].cells[n].onclick = function(){fillField(this)}
pageMap.rows[i].cells[n].style.cursor = "pointer";
}
if (i == 6 && counter < currEOM)
{
counter++;
pageMap.rows[i].cells[n].lastChild.data = counter;
pageMap.rows[i].cells[n].onclick = function(){fillField(this)}
pageMap.rows[i].cells[n].style.cursor = "pointer";
}
if (i == 7 && counter < currEOM)
{
document.getElementById('lastRow').style.display = "";
counter++;
pageMap.rows[i].cells[n].lastChild.data = counter;
pageMap.rows[i].cells[n].onclick = function(){fillField(this)}
pageMap.rows[i].cells[n].style.cursor = "pointer";
}
if (IE && i == 7)
{
if (pageMap.rows[i].cells[0].lastChild.data == " ")
{document.getElementById('lastRow').style.display = "none"}
}
if (!IE && i == 7)
{
if (pageMap.rows[i].cells[0].lastChild.data == "-")
{document.getElementById('lastRow').style.display = "none"}
}
}
}
if (today.getFullYear() == refDate.getFullYear() && today.getMonth() == refDate.getMonth() && hiLiteToday)
{
for (i=2; i<8; i++)
{
for (n=0; n<7; n++)
{
var tmp = pageMap.rows[i].cells[n].lastChild.data;
if (tmp == today.getDate())
{pageMap.rows[i].cells[n].style.backgroundColor = "#FFFF00"}
}
}
}
}
function insertRow(){
var isTable = document.getElementById('clickFields')
var index = isTable.rows.length;
var nextRow = isTable.insertRow(index);
var isBox = nextRow.insertCell(0);
var isDesc = nextRow.insertCell(1);
var idStr = "fieldBox"+index;
isBox.innerHTML = "<input type='checkbox' id="+idStr+">";
isBox.style.width = "20px";
isDesc.innerHTML = clickField[index-1][1];
}
function buildClickFields(){
if (clickField.length == 0)
{
document.getElementById('clickNotice').style.display = "none";
document.getElementById('clickFields').style.display = "none";
}
else {
for (r = 0; r <clickField.length; r++)
{insertRow()}
}
}
function buildSupport(){
var styleStr = "<style type='text/css'>.left {border-left:solid black 1px;border-right:solid black 1px;border-bottom:solid black 1px;text-align:center;width:27px}.other {border-right:solid black 1px;border-bottom:solid black 1px;text-align:center;width:27px}.btn {font-size:6pt;font-weight:bold;width:22px}.day {border-right:solid black 1px;border-bottom:solid black 1px;text-align:center;width:27px;font-family:arial;font-size:10pt;font-weight:bold}.leftDay {border-left:solid black 1px;border-right:solid black 1px;border-bottom:solid black 1px;text-align:center;width:27px;font-family:arial;font-size:10pt;font-weight:bold}</style>"
var tableStr = "<DIV id=nCalendar style='POSITION: absolute; TOP: 0px'><TABLE id=holder style='MARGIN: 10px; BACKGROUND-COLOR: #ffffe0' cellSpacing=0 cellPadding=0 align=center><TBODY><TR><TD><TABLE id=monthPage style='FONT-SIZE: 14pt' cellSpacing=0 cellPadding=3 width=189 border=0><TBODY><TR><TH id=header style='BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: times; BACKGROUND-COLOR: #ffe4b5' colSpan=7> </TH></TR><TR style='BACKGROUND-COLOR: #f0e68c'><TD class=leftDay>S</TD><TD class=day>M</TD><TD class=day>T</TD><TD class=day>W</TD><TD class=day>T</TD><TD class=day>F</TD><TD class=day>S</TD></TR><TR><TD class=left> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD></TR><TR><TD class=left> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD></TR><TR><TD class=left> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD></TR><TR><TD class=left> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD></TR><TR><TD class=left> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD></TR><TR id=lastRow style='DISPLAY: none'><TD class=left> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD><TD class=other> </TD></TR><TR><TD style='BORDER-RIGHT: black 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 12pt; PADDING-BOTTOM: 5px; BORDER-LEFT: black 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #87ceeb' align='center' colSpan=7><INPUT class=btn id=rwMonths onclick=rewindM() type=button value='<<'> <INPUT class=btn title=Previous onclick=prevM() type=button value='<'> Month <INPUT class=btn title=Next onclick=nextM() type=button value='>'> <INPUT class=btn id=fwMonths onclick=forwardM() type=button value='>>'> </TD></TR><TR><TD style='BORDER-RIGHT: black 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 12pt; PADDING-BOTTOM: 5px; BORDER-LEFT: black 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: black 1px solid; BACKGROUND-COLOR: #87ceeb' align='center' colSpan=7><INPUT class=btn id=rwYears onclick=rewindY() type=button value='<<'> <INPUT class=btn title=Previous onclick=prevY() type=button value='<'><SPAN style='LETTER-SPACING: 1px'> Year</SPAN> <INPUT class=btn title=Next onclick=nextY() type=button value='>'> <INPUT class=btn id=fwYears onclick=forwardY() type=button value='>>'> </TD></TR><TR id=clickNotice><TH style='BORDER-RIGHT: black 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: black 1px solid; FONT-FAMILY: arial; BACKGROUND-COLOR: #90ee90' colSpan=7>Click To Field: </TH></TR></TBODY><TABLE id=clickFields style='BORDER-RIGHT: black 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: black 1px solid; WIDTH: 189px; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: arial; BACKGROUND-COLOR: #7fffd4' cellSpacing=0 cellPadding=0><TBODY><TR></TR></TBODY></TABLE></TR></TBODY></TABLE></TD></TBODY></TABLE></DIV>"
document.write(styleStr);
document.write(tableStr);
}
function initCalendar(){
buildSupport();
document.getElementById('rwMonths').title = " -"+hopMonths+" ";
document.getElementById('fwMonths').title = " +"+hopMonths+" ";
document.getElementById('rwYears').title = " -"+hopYears+" ";
document.getElementById('fwYears').title = " +"+hopYears+" ";
today = new Date();
refDate = new Date(today.getFullYear(),today.getMonth()+defaultMonth,1)
createCalendar();
buildClickFields();
document.getElementById('nCalendar').style.left = leftStr;
stayHome();
}
</script>
<style type="text/css">
body {background-color:#eae3c6;margin-top:60px}
form {width:260px;height:1200px;margin:auto}
fieldset {width:260px;background-color:#f0fff0;border:1px solid #87ceeb}
legend {font-family:tahoma;font-size:10pt;font-weight:bold;color:#00008b;background-color:#87ceeb;padding-left:3px;padding-right:3px;margin-bottom:5px;letter-spacing:+1px}
label {font-family:times;font-size:12pt;color:#00008b;padding:5px}
.dates {font-family:times;font-size:10pt;text-align:right}
</style>
</head>
<body>
<form method='post' action=''>
<fieldset>
<legend> Order Tracking </legend>
<label> Order Received <input type='text' size=Ə' name='contractDate' class='dates' readonly></label><br>
<label> Started Assembly <input type='text' size=Ə' name='startAssembly' class='dates' readonly></label><br>
<label> Finished Assembly <input type='text' size=Ə' name='endAssembly' class='dates' readonly></label><br>
<label> Order Shipped <input type='text' size=Ə' name='dateShipped' class='dates' readonly></label>
</fieldset>
</form>
<div style='margin-left:auto;margin-right:auto;text-align:center;font-size:8pt;padding:3px'>Click to Field Calendar, © Copyright 2007, Michael J. Hill. Used with permission. <a href='http://www.javascript-demos.com'>www.javascript-demos.com</a></div>
<!-- Keep the following line as the LAST line in the Body -->
<script type="text/javascript"> initCalendar() </script>
</body>
</html>
I wanted a small calendar for a web page that is created for the current month and highlights the current day and a date passed in. I also added a variable to show text when the cursor is over the highlighted dates. It's nothing special, but I like it and thought I'd share it. Here is the code and it is attached for downloading as well.
Let me know what you think of it.
<html>
<head>
<title>Calendar</title>
<script type="text/javascript">
var month = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var moDays= [31,28,31,30,31,30,31,31,30,31,30,31];
function display(d,txt) {
var highlightDate = new Date(Date.parse(d));
var flag = false;
var startDate = new Date();
startDate.setDate(1);
if (new Date(startDate.getFullYear(),1,29).getDate() == 29) moDays[1] = 29;
var endDate = new Date();
endDate.setDate(moDays[endDate.getMonth()]);
if (highlightDate >= startDate && highlightDate <= endDate) flag = true;
if (!txt) txt = "";
var start = 0 - startDate.getDay();
var end = endDate.getDate() + (7 - endDate.getDay());
var r = document.getElementById('calendar').insertRow(0);
for (i = start; i < end; i++) {
if ((i - start - 1) % 7 == 0 && i != start) {
r = document.getElementById('calendar').insertRow(-1);
r.className = 'newRow'
}
var c = r.insertCell(-1);
if (i > 0 && i <= endDate.getDate()) {
c.innerHTML = i;
if (i == new Date().getDate()) {
c.title = 'Today'
c.className = 'selectedCell'
} else {
c.className = 'newCell'
}
if (flag && i == highlightDate.getDate()) {
c.title = txt;
c.className += ' highlightedCell'
}
} else {
c.innerHTML = ' '
c.className = 'hiddenCell'
}
}
var title = document.getElementById('calendar').rows[0].cells[0];
title.innerHTML = month[startDate.getMonth()] + ' ' + startDate.getFullYear();
title.colSpan = 7;
title.className = 'title'
}
</script><style type="text/css">
#calendar {
position: absolute;
color: navy;
font: italic 75% sans-serif;
margin: 2px;
padding: 1px;
background-color: lightcyan;
border: 1px solid gray;
}
TR.newRow {
background-color: white;
}
TD.newCell {
text-align: right;
margin: 1px;
padding: 2px;
border-right: 1px solid lightskyblue;
border-bottom: 1px solid lightskyblue;
}
TD.selectedCell {
background-color: cyan;
text-align: right;
margin: 1px;
padding: 2px;
border-right: 1px solid lightskyblue;
border-bottom: 1px solid lightskyblue;
}
TD.hiddenCell {
background-color: lightcyan;
}
TD.title {
font: bold 110% sans-serif;
text-align: center;
border-bottom: 1px solid skyblue;
}
TD.highlightedCell {
background-color: palegoldenrod;
}
</style>
</head>
<body onload="display(ཁ/25/2006','Adam's Birthday');">
<table id="calendar"></table>
</body>
</html>
I have this code working fine but need to switch the formatting from MM/DD/YY to DD/MM/YY.
How would I do this??
<script>
$(function() {
$('#date1').datepicker();
setMinDate(); // Set it now
[Code]......
I am trying to embed a calendar into my customers pages - the JS, CSS and jQuery are held on my server, so to allow my customers to just have to add one line of code, the link I give them, links to a JS file, which then dynamically loads the other files required, then adds a textbox, dropdown and button to the BOM, using document.write. However, to add the jQuery calendar to the textbox, I have to be sure jQuery has loaded. If it hasn't, by the time the page script hits the $( to check for jQuery, if it hasn't loaded, all of the jQuery is ignored. How can I get the script to stop and wait (without having the customer having to press a button)?
So I give my customers this one line:
<script src="[URL]" language="javascript" type="text/javascript"></script>
The mt.js file contains...
//JS to load files
function loadjscssfile(filename, filetype) {
if (filetype == "js") { //if filename is a external JavaScript file
var fileref = document.createElement('script')
fileref.setAttribute("type", "text/javascript")
fileref.setAttribute("src", filename)
}else if (filetype == "css") { //if filename is an external CSS file
var fileref = document.createElement("link")
fileref.setAttribute("rel", "stylesheet")
fileref.setAttribute("type", "text/css")
fileref.setAttribute("href", filename)
}
if (typeof fileref != "undefined")
document.getElementsByTagName("head")[0].appendChild(fileref)
}
loadjscssfile("[URL]", "css");
loadjscssfile("[URL]", "js");
loadjscssfile("[URL]", "js");
//write GUI to DOM
document.write("<input id="calendar" type="text" />");
document.write("<input id="btnCheck" type="button" value="Check" />");
document.write("<br /><div id="result" />");
//Jquery to add calendar to textbox added above
$(function () {
$("#calendar").datepicker({
showOn: "button",
....
....
});
So if the jQuery/UI/CSS hasn't loaded, the script will get here, without having added the jQuery calendar to the textbox.
My project is using Jquery calendar..and it works fine in Chrome,IE 7.But its not working in IE 8,means we are able to see the calendar..but not able to input the date..
View 2 Replies View RelatedI am trying to build a calendar that has clickable dates that reveal a pop up box with the event of the day when you click on them.I have got some basic functionality at the moment with the pop up working on one date,making it work on multiple dates.at the moment I have the pop up box positioned relative and and am using the toggle function to switch the display form none to block.I need to work out how to position the pop up box no matter which date you click on?here is the mark up for part of the table:
<tr>
<td>21</td>
<td>22</td>
[code]....
My calendar control does not display Mar 31 for the years 1968, 1991 :confused: . There maybe a few other years where it is not being displayed, but this has been noticed.
Here is the code that we are using.
function constructCalendar () {
var dateMessage
varstartDate =newDate (yearSelected,monthSelected,1)
varendDate= new Date (yearSelected,monthSelected+1,1);
endDate= new Date (endDate- (24*60*60*1000));
[Code]....
This returns the enddate as Mar 30 for the year 1968, 1991 in client server. Whereas it returns. Mar 31 in our local server. I even tried changing the regional settings of my local machine as well as local server (db server) to the same as in our client server.
I downloaded a popup datepicker from javascriptkit.com. All great but can't take the time out of the footer. I only want the date to show, and once selected, I would like the field to be filled with "Day, Date, Month, Year" (no time).
[Code]....
Here is my code. It is supposed to open a calendar when you click the "Select Date" link. I have gone over it many times but cannot get it to come up.
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "[URL]">
<html xmlns="[uRL]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Coast City Windsurfing</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
/* <![CDATA[ */
var dateObject = new Date();
var month = dateObject.getMonth();
var monthArray = new Array("January","February",
"March","April","May","June","July","August",
"September","October","November","December");
function getTodayDate() { .....
I would like to find a small calendar that I can use to allow people to choose a date. I am planning on placing a small icon to the right of my date fields to allow people to choose the date from a calendar. It doesn't need to be full sized. I'm using ASP for scripting, but a control is an option (com or activex).
View 2 Replies View RelatedI am trying to use this pop up javascript calendar and it works fine but as i am in the United Kingdom our date format is different. At the moment it displays mm/dd/yyyy but i would like it to display dd mm yyyy.
Can you help me change it slightly. I have looked but cannot seam to change. As you would have guessed i am new to Javascript. Below is the code - sorry but it is really long
<!-- STEP ONE: Copy this code into a new file, save as date-picker.js -->
<!-- Original: Kedar R. Bhave (softricks@hotmail.com) -->
<!-- Web Site: http://www.softricks.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
Code:
It's about my previous post I'm using a Java Script Calendar on external page(JavaScript). My problem is when you click on the page where the calendar is displayed it Closes down and it's visible after refreshing the page.
View 1 Replies View RelatedHow can I reduce the size of this calendar that it was built by jQuery UI?
PHP Code:
<script type="text/javascript">
$(function() {
$("#datepicker").datepicker();
});
</script>
<div id="datepicker"></div>
[URL]
I like that calendar but it is too big for my website...
I have a script like below
Code:
<script type="text/javascript">
var monthtext=['January','February','March','April','May','June','July','August','September','October','November','December'];
[Code]...
Only the second calendar is taking effect. All the dropdowns in calendar1 is empty. Please help me.
I do my calendar (vertical) =) and I've done to date were down But how to do that day of the week displayed on the side of the date.
View 2 Replies View RelatedI do my calendar (vertical) =) and I've done to date were down But how to do that day of the week displayed on the side of the date of [code]...
View 3 Replies View RelatedI have following code in my file
<%
@ Page Language="VB" AutoEventWireup="false" CodeFile="SimpleCalender. aspx.vb" Inherits="SimpleCalender" %> <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/ /EN" "[URL]"> <
html> <
head> <
title>Calender</title>
<link href="[URL]" rel="stylesheet" type="text/css"/>
<script src="[URL]"></script>
<script src="[URL]"></script>
<script> $(document). ready(
function() { $(
"#datepicker").datepicker( ); });
</script> </
head> <
body style="font-size:62.5%;">
<div type="text" id="datepicker"></div> </
body> </
html>
And I have xml file which have events, I wanted to show events from xml file into my calender.
i want to hide two checkbox when i choose a date on a calendar, this is my form :
Code:
<form name="form1" method="post" action="index2.php?mod=vac&action=1">
<table width="100%" border="1">
<tr>
<td><label>username : </label></td>
[Code].....
because i tried to do it with "onChange" event using several ways but in vain.
I have a calendar in javascript and it works correctly but The only things that i need to adjust are:
1) The position of display. At the moment it is displayed on the top left. which parameter in the script controls the display of the calender? i need it to pop up under or just next to the input field.
2) The previous dates are not relevant to me so we dont need people to look at them. how do we disable previous dates?
3) The second calendar date should be greater than the first calendar . for instance people booking a room or so can check availability from date 1 to date 2, and should not be able to input a date older than the current selected date in the calendar?
Any ideas how or which parameters in the scripts needs adjusting or adding?
I have attached the js script for your information. everything works apart from the 3 points mentioned above. code...
I am using the calendar script at URL...Is there a way to only show dates in the future?
View 4 Replies View Related