spacer
NC State University Home  College of Textiles Home
Search this site:
 
Intranet
Submit A Calendar Event
IT Projects
CAT 6 Rewiring Project
Computer/Software Order Status
Distance Education Classes
Use the Image Database
Departments
Textile & Apparel Technology & Management
Textile Engineering, Chemistry & Science
Textile Extension Education For Economic Development
TexLabs - Analytical and Product Development Services
Academic Programs
Business Services
Student & Career Services
Centers, Programs & Initiatives
People
Intranet
ITT Alliance
Comments/Suggestions
Home --> Information Technology

JS Popup Calendar

<p>
<SCRIPT language="JavaScript" src="/scripts/calendar/PopupWindow.js"></SCRIPT>
<script language="JavaScript" src="/scripts/calendar/AnchorPosition.js"></script>
<SCRIPT language="JavaScript" src="/scripts/calendar/CalendarPopup.js"></SCRIPT>
<SCRIPT language="JavaScript">
var cal = new CalendarPopup("testdiv1");
cal.setReturnFunction("showDate");
document.write(cal.getStyles());
function showDate(y,m,d) {
document.all.startDate.value = m + "/" + d + "/" + y;
startMonth = m;
startDay = d;
startYear = y;
}
</SCRIPT>
</p>
<p align="center"><strong>Calendar Popup Example</strong></p>
<cfform name="newform" action="" method="post">
<A href = "" onClick="cal.showCalendar('anchor1'); return false;" name="anchor" id="anchor">Date</A>
<cfinput type="text" name="startDate" size="8" required="No" message="Please Enter a Valid Start Date"onclick="cal.showCalendar('anchor1'); return false">
<A name="calposition1" id="calposition1"> </A>
<A name="anchor1" id="anchor1">&nbsp </A>
<div id="testdiv1" style="position:absolute; visibility:hidden; background-color: White;">
</div><br>
</cfform>
</p>

Return to the Code Examples Page.

 
TCO
Support
Student Computing
Computer Labs
Nomadic/Wireless Coverage
Order Status
TCO Staff
 
Media Services
CD/DVD Media
Online Tutorials
Media Check History
Streaming/Recording Links
Web Services
Current/Past Projects
Server Structure
Wolfware/WebCT/Webassign
Free Images and Music
Code Examples
Cold Fusion Help
spacer
spacer