Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Mac troubles


Message #1 by chrscote@9... on Mon, 3 Mar 2003 13:51:05
Here's the pieces of the puzzle you may be interested in:

In the frame's HTML page...

function viewTaskSheet() {
	var form = document.forms[0];
	
	if (form.WeekEndDate.value != "") {
		if (form.designerID.value != "-1") {
			if (bOK == true) {
				form.mode.value = "view";
				if (form.authLevel.value != "3") {
					form.action="taskSheet.asp";
					form.target="BottomFrame";
				}
				AllOK = checkWeekEnding();
				if (AllOK == true) {
					form.submit();
				}
			}
		} else {
			form.WeekEndDate.value = "";
			alert("Please select a Designer before choosing a 
week-ending date.");
		}
	}
}


and in the .js File...
function displayDate(d) {
     .....
     .....
     dateSel = new Date(d);
     document.forms[0].calField = dateSel;
     calField.focus();
     viewTaskSheet();
}

Hopefully this little bit of code helps.
Chris

  Return to Index