Web app does not display login page

RESOLVED INVALID

Status

SeaMonkey
General
RESOLVED INVALID
15 years ago
13 years ago

People

(Reporter: Andy Knapp, Assigned: asa)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

15 years ago
Hello,

At work I use a web-based helpdesk app that does not display it's login page in
Mozilla, but it does in IE.  Here's the HTML.

<html>

<head>
<title>Welcome to Magic Total Service Desk - Enterprise</title>
<script >
var objNewWindow

function logintimeout(){
setTimeout("login()", 1000);
}

</script>
</head>

<body bgColor="#FFFFFF" onload="logintimeout()">

<div>

<p><a href="http://www.magichelpdesk.com/" target="_top"><img
src="Images/nai_logosolash.gif"
border="0" alt="Magic Solutions" width="153" height="44"></a> </p>
<div align="center"><center>

<table border="0" align="center" width="70%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" align="center"><p align="center"><img id="mtsd"
src="Images/i.gif"
    width="727" height="124" alt="Magic Help Desk-Enterprise Edition"></td>
  </tr>
  <tr>
    <td width="100%" align="center"><p align="center"><img
src="Images/goldglobe.gif"
    style="POSITION: relative; TOP: -185px; LEFT: 235px" width="40"
height="40"><img src="Images/splash.jpg" width="326" height="247">
	<img id="naiaddress" src="Images/nai_com.gif" width="170"
    style="POSITION: relative; TOP: -60px; LEFT: -455px" height="20" border="0"
    alt="http://www.nai.com/" onclick='window.open("http://www.nai.com")'>
    </td>
  </tr>

</table>
</center></div></div>

<div id="loginstatus"
style="font-size:20pt;font-weight:bold;color:blue;position:absolute;top:10px;left:220px;height:25px;width:500px;visibility:hidden">
Loading User Permissions.  Please wait...
</div >
<script>
if (screen.width > 800)
{
   document.images["mtsd"].src = "images\\entrp.gif";
   document.images["mtsd"].height=124;
   document.images["mtsd"].width=727;
   document.all.naiaddress.style.pixelTop=-60;
   document.all.naiaddress.style.pixelLeft=-455;
}
else
{
   document.images["mtsd"].src = "images\\entrp_small.gif";
   document.images["mtsd"].height=75;
   document.images["mtsd"].width=498;
   document.all.naiaddress.style.pixelTop=-90;
   document.all.naiaddress.style.pixelLeft=-150;
}  
</script>


<form  NAME="frmLogin" ACTION="login.asp?LOGIN=TRUE" METHOD="post" >
	<input ID=UID Name=UID STYLE="VISIBILITY: hidden">
	<input ID=PWD Name=PWD STYLE="VISIBILITY: hidden">	
	<input ID=GROUP Name=GROUP STYLE="VISIBILITY: hidden">
	<input ID=GROUPSEQ Name=GROUPSEQ STYLE="VISIBILITY: hidden">

	<input ID=USERSEQ Name=USERSEQ STYLE="VISIBILITY: hidden">
	<input ID=LOGINTYPE Name=LOGINTYPE STYLE="VISIBILITY: hidden">	
	<input ID=HIDDENTIME Name=HIDDENTIME STYLE="VISIBILITY: hidden">
	<input ID=CLIENTTZONEOFFSET Name=CLIENTTZONEOFFSET
STYLE="VISIBILITY: hidden">							
	<input ID=OPMODE Name=OPMODE STYLE="VISIBILITY: hidden"> 	
	<input ID=ERRORS Name=ERRORS STYLE="VISIBILITY: hidden"> 			 		
</form>

<script language="javascript">
function login()
{
	if (window.screen.width == 800){ 	
		ReturnVal = window.showModalDialog
("prelogin.htm",window.document,"dialogLeft:200;dialogTop:200;dialogheight:190px;dialogwidth:420px;v-scrollbar:no;help:no;status:no")
	}
	else {
		ReturnVal = window.showModalDialog
("prelogin.htm",window.document,"dialogLeft:300;dialogTop:250;dialogheight:190px;dialogwidth:420px;v-scrollbar:no;help:no;status:no")

	}
	if (!ReturnVal) 
		document.all("OPMODE").value = "LOGOFF" 
	else
		document.all("OPMODE").value = "PRELOGIN" 
	
	newdate = new Date()
	document.all("CLIENTTZONEOFFSET").value =  newdate.getTimezoneOffset()
	document.all("HIDDENTIME").value =  newdate.valueOf()

	loginstatus.style.visibility=""  
	window.frmLogin.submit()	
}

</script>

</body>
</html>

Any help would be great.

Thanks,
Andy
Created attachment 104872 [details]
testcase from the reporter
You can see the errors in the Javascipt Console (Tools/Web Development/JS Console).

Your page use "document.all" which is no standard W3C HTML (IE only)
This can't work in mozilla and other browsers.

You must replace it with document.getElementById (this works also in IE)
see http://www.pageresource.com/dhtml/ryan/part4-1.html

-> invalid
Status: UNCONFIRMED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.