Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape Problems

Status
Not open for further replies.

donniea21

MIS
Feb 16, 2001
75
US
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=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>Knowledge Base Login</title>
<Script Language = JavaScript>

function userType()
{

if (document.forms[0].cbAccess.value==&quot;Edit&quot;)
{
document.forms[0].userChange.value=&quot;Yes&quot;;
document.forms[0].submit();
}
if (document.forms[0].cbAccess.value==&quot;View&quot;)
{
document.forms[0].userChange.value=&quot;No&quot;
document.forms[0].submit();
}
}

function userDept()
{
document.forms[0].deptChange.value=&quot;Yes&quot;;
document.forms[0].submit();
}


function doSubmit()
{
if(window.event.srcElement.name == &quot;normalLogin&quot;)
{
document.myform.action=&quot;search.asp&quot;;
}
if(window.event.srcElement.name == &quot;fullLogin&quot;)
{
if(document.forms[0].Dept.value==&quot;&quot;)
{
alert(&quot;You must choose a Department&quot;);
return false;
}
if(document.forms[0].txtPassword.value==&quot;&quot;)
{
alert(&quot;Please Enter a Password&quot;);
return false;
}

document.myform.action=&quot;passwordVal.asp&quot;;
}
document.forms[0].submit();
}

function doaction()
{
document.myform.action=&quot;passwordVal.asp&quot;;

}


</script>
</head>

<body topmargin=&quot;0&quot; leftmargin=&quot;0&quot;>

<table width=&quot;100%&quot; cellspacing=&quot;0&quot; height=&quot;117&quot; cellpadding=&quot;0&quot; 100%&quot; 0&quot;>
<td width=&quot;100%&quot;>
<table width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;100%&quot; colspan=&quot;3&quot;>
<p><img src=&quot;images/newlook.jpg&quot; width=&quot;640&quot; height=&quot;64&quot;></p>
</td>
</tr>
<tr>
<td height=&quot;52&quot; width=&quot;11%&quot;>
Exit
</td>
<td height=&quot;52&quot; width=&quot;76%&quot;>
<p align=&quot;center&quot;><b><font size=&quot;+2&quot;>Compliance Knowledge Database<br>
</font><font size=&quot;+1&quot;>Login</font></b>
</td>
<td height=&quot;52&quot; width=&quot;13%&quot;>
</td>
</tr>
<td width=&quot;100%&quot; colspan=&quot;3&quot;>
<table border=&quot;0&quot; width=&quot;100%&quot; height=&quot;344&quot;>
<tr>
<td width=&quot;100%&quot; height=&quot;338&quot;>
<div align=&quot;center&quot;>
<table border=&quot;0&quot; width=&quot;52%&quot; height=&quot;1&quot;>
<tr>
<td width=&quot;44%&quot; height=&quot;1&quot; valign=&quot;top&quot;>
<p align=&quot;right&quot;>Access Rights:</td>
<td width=&quot;56%&quot; height=&quot;1&quot; rowspan=&quot;6&quot; valign=&quot;top&quot;>
<form method=&quot;POST&quot; name=&quot;myform&quot; action=&quot;&quot;>
<input type=&quot;hidden&quot; name=&quot;userChange&quot; value=&quot;No&quot;>
<input type=&quot;hidden&quot; name=&quot;deptChange&quot; value=&quot;No&quot;>
<input type=&quot;hidden&quot; name=&quot;user&quot; value=&quot;&quot;>

<p align=&quot;left&quot;><select size=&quot;1&quot; name=&quot;cbAccess&quot; onChange=&quot;userType();&quot;>
<option value=&quot;View&quot;>View</option>
<option value=&quot;Edit&quot; >Edit</option>
</select>

       <input type=&quot;submit&quot; value=&quot;Enter&quot; name=&quot;normalLogin&quot; onCLick=&quot;doSubmit()&quot;>

</div>
</table>





</table>
 
The problem here is a case of missing tags. Check and make sure all your tr and td tag have matching ending tags. Netscape doesn't even attempt to correct HTML mistakes whereas IE is alot more lenient.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top