thanks for your response.
I am using visual studio 6.0, I use javascript but it give following error.
"Server Error
The resource cannot be found. "
Please how can use this script in 6.0 (not .net)
I change wfpopupcalendar.asp
it only open the wfpopupcalendar form,
how can open the calendar in interdeave 6.0 ?
<html>
<head>
<script language=javascript>
{
function ShowCalendarPopup() {
window.open("wfpopupCalendar.asp",null,"height=230 ,width=220,status=no,toolbar=no,menubar=no,locatio n=no");
}
function SetNewJobItemDate(strNewChosenDate) {
document.FormNameHere.elements('strdate').value = strNewChosenDate;
}
}
</script>
</head>
<body>
<table>
<TR>
<TD>Start Date</TD>
<TD><INPUT id=strdate name=strdate><INPUT id=calendar type=button value=Calendar name=calendar onClick="ShowCalendarPopup()"></TD></TR>
<TR>
</table>
</body>
</html>
Mateen
Quote:
quote:Originally posted by alex_read
Here's the way I did it which may/may not be of use to you...
Form1 shows a textbox, and a button or link prompting the user to select a date. This button/link directs to the ShowCalendarPopup() javascript function on the same web page.
This function opens a new popup window (form 2) which has a calendar control (okay so I was using .net here), a hidden field, and an okay button/link.
function ShowCalendarPopup() {
window.open("wfpopupCalendar.aspx",null,"height=23 0,width=220,status=no,toolbar=no,menubar=no,locati on=no");
}
function SetNewJobItemDate(strNewChosenDate) {
document.FormNameHere.elements('TextBoxNameHere'). value = strNewChosenDate;
}
When the user chooses a new date in this form2 screen, this chosen value's placed into the hidden field (again by a javascript routine).
When the user confirms the value / hits the ok button/link, the following RetSelValueToRequest() javascript function is fired to return the chosen value, from the hidden field, into the above SetNewJobItemDate() javascript function on form1 (which takes the value & places it into the textbox on form1).
function RetSelValueToRequest() {
window.opener.SetNewJobItemDate(document.FormNameH ere.hidChosenDate.value);
self.close();
}
|