/    Sign up×
Community /Pin to ProfileBookmark

calendar issue/

Hello world!!

I have this question about calendars. Can I get a ready one or do i have to make a code to work with php?

I need a calendar like the one at [url]www.travelweb.com[/url] to apply in my travel website.

Any help?

to post a comment
JavaScript

12 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanNov 15.2004 — If you don't want to make one I suggest you look at this one:

Simple: http://php.richardturner.com/calender.php

Event Based: http://php.richardturner.com/eventcal/

All you have to do is request a lisence ?



Cheers,


RyanJ
Copy linkTweet thisAlerts:
@sandro27authorNov 15.2004 — Cool. But do you think I can pick a date? It seems to be a static one...
Copy linkTweet thisAlerts:
@sciguyryanNov 15.2004 — [i]Originally posted by sandro27 [/i]

[B]Cool. But do you think I can pick a date? It seems to be a static one... [/B][/QUOTE]


If your using the first, clikc the two > by the Months name to go forward or, the two < to go back.


RyanJ
Copy linkTweet thisAlerts:
@sandro27authorNov 15.2004 — But this is not what I meant. I need to choose a day.
Copy linkTweet thisAlerts:
@Warren86Nov 15.2004 — <HTML>

<Head>

<Script Language=JavaScript>

function GetDayofWk(){

DateStr = document.Calendar.value;
temp = new String(DateStr);
startSlice = temp.indexOf(' ');
DayofWk = temp.slice(startSlice-3,startSlice);
return DayofWk;
}

function GetNameofMonth(){

DateStr = document.Calendar.value;
temp = new String(DateStr);
startSlice = temp.indexOf(' ');
NameofMonth = temp.slice(startSlice,startSlice+4);
NameofMonth = NameofMonth.substring(1,4);
return NameofMonth;
}

function GetMonthNmbr(){

tmpStr = document.Calendar.month;
return tmpStr;
}

function GetDayNmbr(){

tmpStr = document.Calendar.day;
return tmpStr;
}

function GetYear(){

tmpStr = document.Calendar.year;
return tmpStr;
}

function refreshInfo() {

nWkday = GetDayofWk()
nMonth = GetNameofMonth()
xMonth = GetMonthNmbr();
xDay = GetDayNmbr();
xYear = GetYear();
tmpStr = nWkday+" "+nMonth+" "+xDay+" "+xYear+"<br>"+nMonth+" is month number "+xMonth;
textArea.innerHTML = tmpStr;
}


</Script>

<Script Language=VBScript>

Sub Calendar_Click()

refreshInfo()

end sub

</Script>

</Head>

<Body>

<center>

<object classid='clsid:8E27C92B-1264-101C-8A2F-040224009C02' ID='Calendar' width='370' height='200'></object>

<br><br>

<Span ID=textArea>

Null

</Span>

<Script>

refreshInfo();

</Script>

</center>

</Body>

</HTML>
Copy linkTweet thisAlerts:
@sandro27authorNov 15.2004 — Hey Warren,

Great stuff. is it difficult to make it pop out from another page and when I choos the date it inserts the date the in the previous page?

Thanks
Copy linkTweet thisAlerts:
@Warren86Nov 15.2004 — --------- Main document ----------

<HTML>

<Head>

<Script Language=JavaScript>

var calendarWindow = ""

function GetDayofWk(){

DateStr = calendarWindow.document.Calendar.value;
temp = new String(DateStr);
startSlice = temp.indexOf(' ');
DayofWk = temp.slice(startSlice-3,startSlice);
return DayofWk;
}

function GetNameofMonth(){

DateStr = calendarWindow.document.Calendar.value;
temp = new String(DateStr);
startSlice = temp.indexOf(' ');
NameofMonth = temp.slice(startSlice,startSlice+4);
NameofMonth = NameofMonth.substring(1,4);
return NameofMonth;
}

function GetMonthNmbr(){

tmpStr = calendarWindow.document.Calendar.month;
return tmpStr;
}

function GetDayNmbr(){

tmpStr = calendarWindow.document.Calendar.day;
return tmpStr;
}

function GetYear(){

tmpStr = calendarWindow.document.Calendar.year;
return tmpStr;
}

function refreshInfo() {

nWkday = GetDayofWk()
nMonth = GetNameofMonth()
xMonth = GetMonthNmbr();
xDay = GetDayNmbr();
xYear = GetYear();
dateStr = nMonth + " " +xDay + ", " +xYear;
Form1.selectedDate.value = dateStr;
Form1.dayName.value = nWkday;
}

function openCalendar(){

if (calendarWindow != ""){calendarWindow.close();}
calendarWindow =window.open("popCalendar.html","calWin","toolbar=0,scrollbars=0,statusbar=0,height=220,width=390,top=50,left=380");
calendarWindow.document.title = "Calendar";
}

function closeCalendar(){

if (calendarWindow != ""){calendarWindow.close()}
}

window.onunload=closeCalendar;


</Script>

</Head>

<Body>

<br><br>

<Form name='Form1'>

<Table cellspacing=0 cellpadding=3 style='border:solid black 1px;Font-Size:12pt;Font-Weight:Bold;width:240px;background-color:lightyellow'>

<THead><TH bgcolor='lightBlue'>This is a Title</TH></THead>

<TR><TD align='center'>Selected Date:<input type=text size=12 value="" name='selectedDate'></TR></TD>

<TR><TD align='center'>Day of Week: <input type=text size=12 value="" name='dayName'></TR></TD>

<TR><TD align='center' style='border-top:solid black 1px'><input type=button value='Display Calendar' onclick="openCalendar()" style='background-color:lightskyblue;Font-Family:Veranda;Font-Size:11pt'></TR></TD>

</Table>

</Form>

</HTML>

-------------- popCalendar.html --------------

<HTML>

<Head>

<Script Language=VBScript>

Sub Calendar_Click()

opener.refreshInfo()

end sub

</Script>

</Head>

<Body>

<object classid='clsid:8E27C92B-1264-101C-8A2F-040224009C02' ID='Calendar' width='370' height='200'></object>

</Body>

</HTML>
Copy linkTweet thisAlerts:
@sandro27authorNov 15.2004 — Ohhh. Thank you.

Sandro27
Copy linkTweet thisAlerts:
@Warren86Nov 15.2004 — You're welcome.
Copy linkTweet thisAlerts:
@Warren86Nov 15.2004 — Here's something else that might interest you. A form with two text areas for dates. One a departure date, the other a return date. Each date is chosen from the popup calendar. A toggle button selects which field will be updated.

[upl-file uuid=03a79693-362e-4f5c-887d-eb0420e55781 size=4kB]toggledate.txt[/upl-file]
Copy linkTweet thisAlerts:
@ai3rulesNov 15.2004 — I came across [URL=http://www.calendarxp.net/]this[/URL] site the other day that looked pretty cool.
Copy linkTweet thisAlerts:
@sandro27authorNov 15.2004 — God bless you all.
×

Success!

Help @sandro27 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...