On a recent server reboot MS updates where run, everything on the machine worked fine until then. Now when the login screen comes up the the Log on button does not work. The error message says 'document.frmLogin.cmdSubmit' is null or not an object. I have checked the IIS settings and and the services and can find nothing that looks out of place. Several of the services were set to manual and not running but this did not fix my issue. Any suggestions would be greatly appreciated.
Here is the code:
<html>
<head>
<!--<title>Tahoe User Login</title>-->
<TITLE>Performance Impact</TITLE>
<script language=javascript src="crypto.js"></script>
<script type="text/javascript">
var result = '';
var SpChrsFound = '';
var strType = '';
var blnNoCookies = false;
var blnPageLoaded = false;
if (navigator.appVersion.charAt(0) >= "4")
{
if (navigator.appName != "Microsoft Internet Explorer")
{
window.location.replace("sorrywrongbrowser.htm" )
}
else if(navigator.cookieEnabled == false)
{
alert("You need to have cookies enabled to proceed")
blnNoCookies = true
}
else
{
// enableSubmit()
}
}
else
{
window.location.replace("sorrywrongbrowser.htm")
}
function enableSubmit()
{
if(blnNoCookies != true)
{
document.frmLogin.cmdSubmit.disabled = false
}
}
function doSubmit()
{
var strUserIDPwd;
var uid;
var pwd;
backColorDisabled = '#CCCCCC';
if(blnPageLoaded == true)
{
//document.frmLogin.submit();
if(ValidateEntry() == true)
{
blnPageLoaded = false;
if (document.frmLogin.txtPQval.value != 'none'){
//concatenate the user id and password
strUserIDPwd = document.frmLogin.txtUserID.value + '|~|' + document.frmLogin.txtPassword.value ;
//do the encryption and pass the encrypted value
document.frmLogin.txtEncodedUserIDPwd.value =
enc_html(document.frmLogin.txtEval.value , document.frmLogin.txtPQval.value , strUserIDPwd );
//set the userID and Password to blank otherwise clear text will
//be passed alongside encoded text
document.frmLogin.txtUserID.value = '';
document.frmLogin.txtUserID.disabled = true;
document.frmLogin.txtUserID.style.backgroundColor =backColorDisabled;
document.frmLogin.txtPassword.value = '';
document.frmLogin.txtPassword.disabled = true;
document.frmLogin.txtPassword.style.backgroundColor =backColorDisabled;
document.frmLogin.cmdSubmit.disabled = true;
}
return true;
}
else
{
blnPageLoaded = true;
return false
}
}
return false
}
function TestInput(SPChr, str){
for (var cnt = 0; cnt < str.length; cnt++){
if (str.charAt(cnt) == SPChr){
result = 'true';
return;
}
}
}
function ValidateEntry() {
SpChrs = new Array(9);
SpChrs[0] = '*';
SpChrs[1] = ':';
SpChrs[2] = '\\';
SpChrs[3] = "'";
SpChrs[4] = '<';
SpChrs[5] = '>';
SpChrs[6] = '|';
SpChrs[7] = '"';
SpChrs[8] = '?';
SpChrs[9] = '/';
var doSomething;
strType = document.frmLogin.txtUserID.value;
for (var i = 0; i < 10; i++){
TestInput(SpChrs,strType);
if (result == 'true'){
alert('UserID cannot contain any of the following Characters.\n / \\ : * ? " < > | ' + "'" + ' \n \n Please change your UserID in Impact Administrator')
result = '';
SpChrsFound = 'TRUE';
return false;
}
}
return true
}
</script>
<link rel="stylesheet" type="text/css" href="images/TahoeStyle.css">
</head>
<body class=BackgroundMain onload="blnPageLoaded = true; enableSubmit(); document.frmLogin.txtUserID.focus()"
<form name="frmLogin" action="Login.ASP?WCI=Login&WCE=frmLogin&WCU=" method="post" onsubmit="return doSubmit()">
<input type="Hidden" name="txtRvwChecker">
<input type="Hidden" name="txtRvwCheckerID">
<input type="Hidden" name="txtRvwCheckerName">
<input type="Hidden" name="txtRvwCheckerRvwID">
<input type="Hidden" name="txtRvwCheckerRvwStartDate">
<input type="Hidden" name="txtRvwCheckerRvwEndDate">
<input type="Hidden" name="txtPQval" value="176646845,66411168,52824089,97094195,194402993,269046,95585070,5756422,235484793,96594111,36664808,77745877,263720492,252705748,21784947,151513255,40426024,75809760,129">
<input type="Hidden" name="txtEval" value="17">
<input type="Hidden" name="txtEncodedUserIDPwd" value="none">
<table border="0" width="" cellspacing="0" cellpadding="0">
<tr>
<td width="261"><img border="0" src="images/PI-KP-1.gif" width="260" height="79"></td>
<td width="100%" background="images/KP-Band-11.gif"></td>
</tr>
</table>
<table border="0" width="" cellspacing="0" cellpadding="0" height="138">
<tr>
<td width="120" rowspan="4" height="138" nowrap> </td>
<td width="258" rowspan="4" height="138" nowrap><img border="0" src="images/PI-Logo1.gif" width="262" height="170"></td>
<td width="35" valign="bottom" height="35"><font face="Arial" size="2"> </font></td>
<td width="677" valign="bottom" height="56" colspan="4"> </td>
</tr>
<tr>
<td width="35" valign="bottom" height="35"> </td>
<td width="677" valign="bottom" height="29" colspan="4"> </td>
</tr>
<tr>
<td width="35" valign="bottom" height="34"> </td>
<td width="1" valign="bottom" height="54" rowspan="2"><img border="0" src="images/Vline.jpg" width="1" height="100%"></td>
<td width="8" valign="top" height="27"> </td>
<td width="500" valign="top" height="27"><font size="2" face="Arial">Welcome to Performance Impact. Please contact Kerry Nelson @ 4204 for questions.</font></td>
<td width="64" valign="bottom" height="40" rowspan="2"> </td>
</tr>
<tr>
<td width="35" valign="bottom" height="34"><font face="Arial" size="2">2.5</font></td>
<td width="8" valign="bottom" height="27"> </td>
</tr>
</table>
<table border="0" width="" cellspacing="0" cellpadding="0">
<tr>
<td colspan = 6> </td>
</tr>
<tr>
<td width="221" align="right" nowrap><font face="Arial" size="2"><b>User ID: </b></font></td>
<td width="7"> </td>
<td><input style='width:195' name="txtUserID" maxLength=20></td>
<td width="3"> </td>
<td width="100%"> </td>
</tr>
<tr>
<td width="221" align="right" nowrap><font face="Arial" size="2"><b>Password: </b></font></td>
<td width="7"> </td>
<td><input style='width:195' type="Password" name="txtPassword" maxlength=30> </td>
<td width="3"> </td>
<td width="100%"><input type="Submit" name="cmdSubmit" value="Log On"></td>
</tr>
</table>
<table border="0" width="" cellspacing="0" cellpadding="0">
<tr>
<td colspan=3 height="20"> </td>
</tr>
<tr>
<td width="120" nowrap> </td>
<td width="320" nowrap align=center><FONT SIZE=-7 FACE=arial>Copyright 2004 Recruitmax Software, Inc. All Rights Reserved.</FONT></td>
<td width="677"> </td>
</tr>
</table>
</form>
</body>
</html>
Here is the code:
<html>
<head>
<!--<title>Tahoe User Login</title>-->
<TITLE>Performance Impact</TITLE>
<script language=javascript src="crypto.js"></script>
<script type="text/javascript">
var result = '';
var SpChrsFound = '';
var strType = '';
var blnNoCookies = false;
var blnPageLoaded = false;
if (navigator.appVersion.charAt(0) >= "4")
{
if (navigator.appName != "Microsoft Internet Explorer")
{
window.location.replace("sorrywrongbrowser.htm" )
}
else if(navigator.cookieEnabled == false)
{
alert("You need to have cookies enabled to proceed")
blnNoCookies = true
}
else
{
// enableSubmit()
}
}
else
{
window.location.replace("sorrywrongbrowser.htm")
}
function enableSubmit()
{
if(blnNoCookies != true)
{
document.frmLogin.cmdSubmit.disabled = false
}
}
function doSubmit()
{
var strUserIDPwd;
var uid;
var pwd;
backColorDisabled = '#CCCCCC';
if(blnPageLoaded == true)
{
//document.frmLogin.submit();
if(ValidateEntry() == true)
{
blnPageLoaded = false;
if (document.frmLogin.txtPQval.value != 'none'){
//concatenate the user id and password
strUserIDPwd = document.frmLogin.txtUserID.value + '|~|' + document.frmLogin.txtPassword.value ;
//do the encryption and pass the encrypted value
document.frmLogin.txtEncodedUserIDPwd.value =
enc_html(document.frmLogin.txtEval.value , document.frmLogin.txtPQval.value , strUserIDPwd );
//set the userID and Password to blank otherwise clear text will
//be passed alongside encoded text
document.frmLogin.txtUserID.value = '';
document.frmLogin.txtUserID.disabled = true;
document.frmLogin.txtUserID.style.backgroundColor =backColorDisabled;
document.frmLogin.txtPassword.value = '';
document.frmLogin.txtPassword.disabled = true;
document.frmLogin.txtPassword.style.backgroundColor =backColorDisabled;
document.frmLogin.cmdSubmit.disabled = true;
}
return true;
}
else
{
blnPageLoaded = true;
return false
}
}
return false
}
function TestInput(SPChr, str){
for (var cnt = 0; cnt < str.length; cnt++){
if (str.charAt(cnt) == SPChr){
result = 'true';
return;
}
}
}
function ValidateEntry() {
SpChrs = new Array(9);
SpChrs[0] = '*';
SpChrs[1] = ':';
SpChrs[2] = '\\';
SpChrs[3] = "'";
SpChrs[4] = '<';
SpChrs[5] = '>';
SpChrs[6] = '|';
SpChrs[7] = '"';
SpChrs[8] = '?';
SpChrs[9] = '/';
var doSomething;
strType = document.frmLogin.txtUserID.value;
for (var i = 0; i < 10; i++){
TestInput(SpChrs,strType);
if (result == 'true'){
alert('UserID cannot contain any of the following Characters.\n / \\ : * ? " < > | ' + "'" + ' \n \n Please change your UserID in Impact Administrator')
result = '';
SpChrsFound = 'TRUE';
return false;
}
}
return true
}
</script>
<link rel="stylesheet" type="text/css" href="images/TahoeStyle.css">
</head>
<body class=BackgroundMain onload="blnPageLoaded = true; enableSubmit(); document.frmLogin.txtUserID.focus()"
<form name="frmLogin" action="Login.ASP?WCI=Login&WCE=frmLogin&WCU=" method="post" onsubmit="return doSubmit()">
<input type="Hidden" name="txtRvwChecker">
<input type="Hidden" name="txtRvwCheckerID">
<input type="Hidden" name="txtRvwCheckerName">
<input type="Hidden" name="txtRvwCheckerRvwID">
<input type="Hidden" name="txtRvwCheckerRvwStartDate">
<input type="Hidden" name="txtRvwCheckerRvwEndDate">
<input type="Hidden" name="txtPQval" value="176646845,66411168,52824089,97094195,194402993,269046,95585070,5756422,235484793,96594111,36664808,77745877,263720492,252705748,21784947,151513255,40426024,75809760,129">
<input type="Hidden" name="txtEval" value="17">
<input type="Hidden" name="txtEncodedUserIDPwd" value="none">
<table border="0" width="" cellspacing="0" cellpadding="0">
<tr>
<td width="261"><img border="0" src="images/PI-KP-1.gif" width="260" height="79"></td>
<td width="100%" background="images/KP-Band-11.gif"></td>
</tr>
</table>
<table border="0" width="" cellspacing="0" cellpadding="0" height="138">
<tr>
<td width="120" rowspan="4" height="138" nowrap> </td>
<td width="258" rowspan="4" height="138" nowrap><img border="0" src="images/PI-Logo1.gif" width="262" height="170"></td>
<td width="35" valign="bottom" height="35"><font face="Arial" size="2"> </font></td>
<td width="677" valign="bottom" height="56" colspan="4"> </td>
</tr>
<tr>
<td width="35" valign="bottom" height="35"> </td>
<td width="677" valign="bottom" height="29" colspan="4"> </td>
</tr>
<tr>
<td width="35" valign="bottom" height="34"> </td>
<td width="1" valign="bottom" height="54" rowspan="2"><img border="0" src="images/Vline.jpg" width="1" height="100%"></td>
<td width="8" valign="top" height="27"> </td>
<td width="500" valign="top" height="27"><font size="2" face="Arial">Welcome to Performance Impact. Please contact Kerry Nelson @ 4204 for questions.</font></td>
<td width="64" valign="bottom" height="40" rowspan="2"> </td>
</tr>
<tr>
<td width="35" valign="bottom" height="34"><font face="Arial" size="2">2.5</font></td>
<td width="8" valign="bottom" height="27"> </td>
</tr>
</table>
<table border="0" width="" cellspacing="0" cellpadding="0">
<tr>
<td colspan = 6> </td>
</tr>
<tr>
<td width="221" align="right" nowrap><font face="Arial" size="2"><b>User ID: </b></font></td>
<td width="7"> </td>
<td><input style='width:195' name="txtUserID" maxLength=20></td>
<td width="3"> </td>
<td width="100%"> </td>
</tr>
<tr>
<td width="221" align="right" nowrap><font face="Arial" size="2"><b>Password: </b></font></td>
<td width="7"> </td>
<td><input style='width:195' type="Password" name="txtPassword" maxlength=30> </td>
<td width="3"> </td>
<td width="100%"><input type="Submit" name="cmdSubmit" value="Log On"></td>
</tr>
</table>
<table border="0" width="" cellspacing="0" cellpadding="0">
<tr>
<td colspan=3 height="20"> </td>
</tr>
<tr>
<td width="120" nowrap> </td>
<td width="320" nowrap align=center><FONT SIZE=-7 FACE=arial>Copyright 2004 Recruitmax Software, Inc. All Rights Reserved.</FONT></td>
<td width="677"> </td>
</tr>
</table>
</form>
</body>
</html>