UniWebDude
Programmer
Hi all,
I am getting a Javascript error :
Error : Object Expected
on line 65 of my page :
I am not a javascript programmer and this is a third party script so any help getting this sorted would be fantastic ! Below is the complete source code :
<html>
<head>
<title>UCC Portia Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="javascript">
<!-- (hide from old browsers)
function xferFocus()
{
document.cplogin.pass.focus();
}
function login()
{
document.cplogin.user.value=document.userid.user.value;
document.cplogin.submit();
}
//-->
</SCRIPT>
<link href="css/UCCsept2002homeonly.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#666666" topmargin="0" rightmargin="0">
<center>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><div align="center"></div>
</td>
</tr>
<tr>
<td align="center" valign="middle"><table width="700" border="1" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCC66">
<tr>
<td colspan="4"><img src="June%2003/greenbanner.jpg" width="700" height="70"></td>
</tr>
<tr>
<td colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td> </td>
<td valign="top"> </td>
<td valign="top"> </td>
<td> </td>
</tr>
<tr>
<td width="4%"> </td>
<td width="29%" valign="top">
<TABLE WIDTH=187 HEIGHT=175 BORDER=1 CELLPADDING=8 CELLSPACING=0 bordercolor="#666666" bgcolor="#CCCC99">
<TR>
<TD>
<FORM NAME="userid" onSubmit="xferFocus(this); return false;">
<font size="2">
<font face="Verdana, Arial, Helvetica, sans-serif">User Name:</font><BR>
<input type="text" name="user" size=15 tabindex=1 onFocus="hadFocus(true)">
<BR clear="all">
</font>
</FORM>
<FORM NAME="cplogin" action=" onSubmit="login(); return false;" method="post">
<font size="2">
<font face="Verdana, Arial, Helvetica, sans-serif">Password :</font><BR>
<input type="password" name="pass" size=15 tabindex=2 onFocus="hadFocus(true)">
</FONT>
<input type="hidden" name="user" value="">
</FORM>
<CENTER>
<p><font size="2"><a href="javascript:login();" onMouseover="window.status=''; return true;"><IMG SRC="/June%2003/ok.gif" NAME="ok_btn" ALT="OK" BORDER=0 HSPACE=3 VSPACE=7 WIDTH=62 HEIGHT=18 tabindex=3 onLoad="clearCache()"></A><A href="javascript:doCancel();" onMouseover="window.status=''; return true;"><IMG SRC="/June%2003/cancel.gif" NAME="cancel_btn" ALT="Cancel" BORDER=0 HSPACE=3 VSPACE=7 WIDTH=62 HEIGHT=18 tabindex=4></A></font></p>
<p>
</p>
</CENTER>
</TR>
</TABLE>
</td>
<td width="64%" valign="top"><p><font face="Geneva, Arial, Helvetica, san-serif"><strong><font size="2">Welcome
to Portia version 2</font></strong><font size="2">. </font></font></p>
<p><font size="2"><strong><em>PASSWORDS HAVE BEEN RESET</em></strong></font></p>
<p><font size="2"> <strong><em>Your new password is your student
ID followed by your date of birth.</em></strong></font></p>
<p>Apart from this page you should not notice any changes
to the functionality of Portia. The idea of this update
is to increase the speed of the system, so loading calendar
and email should be quicker.</p>
<p><strong>About Portia</strong></p>
<p>This secure site provides UCC students, academic and administrative
staff with world-class Intranet and Internet services. This
is where you can check e-mail, register for courses, and
explore the Internet.</p>
<p> </p>
</td>
<td width="3%"> </td>
</tr>
<tr>
<td> </td>
<td><div align="center"></div></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</table></center></body>
</html>
I am getting a Javascript error :
Error : Object Expected
on line 65 of my page :
I am not a javascript programmer and this is a third party script so any help getting this sorted would be fantastic ! Below is the complete source code :
<html>
<head>
<title>UCC Portia Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="javascript">
<!-- (hide from old browsers)
function xferFocus()
{
document.cplogin.pass.focus();
}
function login()
{
document.cplogin.user.value=document.userid.user.value;
document.cplogin.submit();
}
//-->
</SCRIPT>
<link href="css/UCCsept2002homeonly.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#666666" topmargin="0" rightmargin="0">
<center>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><div align="center"></div>
</td>
</tr>
<tr>
<td align="center" valign="middle"><table width="700" border="1" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCC66">
<tr>
<td colspan="4"><img src="June%2003/greenbanner.jpg" width="700" height="70"></td>
</tr>
<tr>
<td colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td> </td>
<td valign="top"> </td>
<td valign="top"> </td>
<td> </td>
</tr>
<tr>
<td width="4%"> </td>
<td width="29%" valign="top">
<TABLE WIDTH=187 HEIGHT=175 BORDER=1 CELLPADDING=8 CELLSPACING=0 bordercolor="#666666" bgcolor="#CCCC99">
<TR>
<TD>
<FORM NAME="userid" onSubmit="xferFocus(this); return false;">
<font size="2">
<font face="Verdana, Arial, Helvetica, sans-serif">User Name:</font><BR>
<input type="text" name="user" size=15 tabindex=1 onFocus="hadFocus(true)">
<BR clear="all">
</font>
</FORM>
<FORM NAME="cplogin" action=" onSubmit="login(); return false;" method="post">
<font size="2">
<font face="Verdana, Arial, Helvetica, sans-serif">Password :</font><BR>
<input type="password" name="pass" size=15 tabindex=2 onFocus="hadFocus(true)">
</FONT>
<input type="hidden" name="user" value="">
</FORM>
<CENTER>
<p><font size="2"><a href="javascript:login();" onMouseover="window.status=''; return true;"><IMG SRC="/June%2003/ok.gif" NAME="ok_btn" ALT="OK" BORDER=0 HSPACE=3 VSPACE=7 WIDTH=62 HEIGHT=18 tabindex=3 onLoad="clearCache()"></A><A href="javascript:doCancel();" onMouseover="window.status=''; return true;"><IMG SRC="/June%2003/cancel.gif" NAME="cancel_btn" ALT="Cancel" BORDER=0 HSPACE=3 VSPACE=7 WIDTH=62 HEIGHT=18 tabindex=4></A></font></p>
<p>
</p>
</CENTER>
</TR>
</TABLE>
</td>
<td width="64%" valign="top"><p><font face="Geneva, Arial, Helvetica, san-serif"><strong><font size="2">Welcome
to Portia version 2</font></strong><font size="2">. </font></font></p>
<p><font size="2"><strong><em>PASSWORDS HAVE BEEN RESET</em></strong></font></p>
<p><font size="2"> <strong><em>Your new password is your student
ID followed by your date of birth.</em></strong></font></p>
<p>Apart from this page you should not notice any changes
to the functionality of Portia. The idea of this update
is to increase the speed of the system, so loading calendar
and email should be quicker.</p>
<p><strong>About Portia</strong></p>
<p>This secure site provides UCC students, academic and administrative
staff with world-class Intranet and Internet services. This
is where you can check e-mail, register for courses, and
explore the Internet.</p>
<p> </p>
</td>
<td width="3%"> </td>
</tr>
<tr>
<td> </td>
<td><div align="center"></div></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</table></center></body>
</html>