I just wrote an app which runs fine on IE and Netscape except for one rather odd problem with Netscape. My login page does not show up at all...Here is the code for the page. Please let me know what you think..Thanks.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Knowledge Base Login</title>
<Script Language = JavaScript>
function userType()
{
if (document.forms[0].cbAccess.value=="Edit"
{
document.forms[0].userChange.value="Yes";
document.forms[0].submit();
}
if (document.forms[0].cbAccess.value=="View"
{
document.forms[0].userChange.value="No"
document.forms[0].submit();
}
}
function userDept()
{
document.forms[0].deptChange.value="Yes";
document.forms[0].submit();
}
function doSubmit()
{
if(window.event.srcElement.name == "normalLogin"
{
document.myform.action="search.asp";
}
if(window.event.srcElement.name == "fullLogin"
{
if(document.forms[0].Dept.value==""
{
alert("You must choose a Department"
return false;
}
if(document.forms[0].txtPassword.value==""
{
alert("Please Enter a Password"
return false;
}
document.myform.action="passwordVal.asp";
}
document.forms[0].submit();
}
function doaction()
{
document.myform.action="passwordVal.asp";
}
</script>
</head>
<body topmargin="0" leftmargin="0">
<table width="100%" cellspacing="0" height="117" cellpadding="0" 100%" 0">
<td width="100%">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="3">
<p><img src="images/newlook.jpg" width="640" height="64"></p>
</td>
</tr>
<tr>
<td height="52" width="11%">
Exit
</td>
<td height="52" width="76%">
<p align="center"><b><font size="+2">Compliance Knowledge Database<br>
</font><font size="+1">Login</font></b>
</td>
<td height="52" width="13%">
</td>
</tr>
<td width="100%" colspan="3">
<table border="0" width="100%" height="344">
<tr>
<td width="100%" height="338">
<div align="center">
<table border="0" width="52%" height="1">
<tr>
<td width="44%" height="1" valign="top">
<p align="right">Access Rights:</td>
<td width="56%" height="1" rowspan="6" valign="top">
<form method="POST" name="myform" action="">
<input type="hidden" name="userChange" value="No">
<input type="hidden" name="deptChange" value="No">
<input type="hidden" name="user" value="">
<p align="left"><select size="1" name="cbAccess" onChange="userType();">
<option value="View">View</option>
<option value="Edit" >Edit</option>
</select>
<input type="submit" value="Enter" name="normalLogin" onCLick="doSubmit()">
</div>
</table>
</table>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Knowledge Base Login</title>
<Script Language = JavaScript>
function userType()
{
if (document.forms[0].cbAccess.value=="Edit"
{
document.forms[0].userChange.value="Yes";
document.forms[0].submit();
}
if (document.forms[0].cbAccess.value=="View"
{
document.forms[0].userChange.value="No"
document.forms[0].submit();
}
}
function userDept()
{
document.forms[0].deptChange.value="Yes";
document.forms[0].submit();
}
function doSubmit()
{
if(window.event.srcElement.name == "normalLogin"
{
document.myform.action="search.asp";
}
if(window.event.srcElement.name == "fullLogin"
{
if(document.forms[0].Dept.value==""
{
alert("You must choose a Department"
return false;
}
if(document.forms[0].txtPassword.value==""
{
alert("Please Enter a Password"
return false;
}
document.myform.action="passwordVal.asp";
}
document.forms[0].submit();
}
function doaction()
{
document.myform.action="passwordVal.asp";
}
</script>
</head>
<body topmargin="0" leftmargin="0">
<table width="100%" cellspacing="0" height="117" cellpadding="0" 100%" 0">
<td width="100%">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="3">
<p><img src="images/newlook.jpg" width="640" height="64"></p>
</td>
</tr>
<tr>
<td height="52" width="11%">
Exit
</td>
<td height="52" width="76%">
<p align="center"><b><font size="+2">Compliance Knowledge Database<br>
</font><font size="+1">Login</font></b>
</td>
<td height="52" width="13%">
</td>
</tr>
<td width="100%" colspan="3">
<table border="0" width="100%" height="344">
<tr>
<td width="100%" height="338">
<div align="center">
<table border="0" width="52%" height="1">
<tr>
<td width="44%" height="1" valign="top">
<p align="right">Access Rights:</td>
<td width="56%" height="1" rowspan="6" valign="top">
<form method="POST" name="myform" action="">
<input type="hidden" name="userChange" value="No">
<input type="hidden" name="deptChange" value="No">
<input type="hidden" name="user" value="">
<p align="left"><select size="1" name="cbAccess" onChange="userType();">
<option value="View">View</option>
<option value="Edit" >Edit</option>
</select>
<input type="submit" value="Enter" name="normalLogin" onCLick="doSubmit()">
</div>
</table>
</table>