<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2>Craig,</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=566105322-27012003>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
color=#0000ff size=2>I see two definite problems here; there may be others, but 
this is just off the top of my head.</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2>1)&nbsp; There is no need for the javascript pseudoprotocol.&nbsp; This 
is only necessary when you're calling a function from a link.&nbsp; The correct 
syntax would be onFocus="gotMe(this, 6);"</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2>2)&nbsp; As far as I know, there is no input type called textarea.&nbsp; 
There is an input type text, and a textarea object (which I don't believe has a 
maxlength property).</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp;&nbsp; Which line is 112?&nbsp; If you still have problems, 
knowing exactly where the error is being thrown will help 
tremendously.</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2>Peter</FONT></SPAN></DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> javascript-admin@LaTech.edu 
  [mailto:javascript-admin@LaTech.edu]<B>On Behalf Of </B>Craig 
  Gardner<BR><B>Sent:</B> Monday, January 27, 2003 1:16 PM<BR><B>To:</B> 
  javascript@LaTech.edu<BR><B>Subject:</B> [Javascript] onFocus getting 
  error.<BR><BR></FONT></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>Here's the 
  function call:</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>---function call 
  ---</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>&lt;input 
  type='textarea' onFocus='javascript:gotMe(this, 6);'&gt;</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>Here's the 
  function:</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>--- function code 
  ---</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>&nbsp;&nbsp; 
  function gotMe(current, length)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; 
  current.maxLength = length;<BR>&nbsp;&nbsp;&nbsp; 
  current.select;<BR>&nbsp;&nbsp; }</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>The error that I'm 
  getting says that there's an error on the function call 
  line:</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>--- error message 
  ---</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2>Line:&nbsp;&nbsp;&nbsp; 112</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2>Char:&nbsp;&nbsp;&nbsp; 1</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2>Error:&nbsp;&nbsp;&nbsp; Object expected</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2>Code:&nbsp;&nbsp;&nbsp; 0</FONT></SPAN></DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>Does anyone have 
  any ideas?&nbsp; The only way that I've found that fixes this problem is 
  getting rid of the onFocus part.&nbsp; Even commenting the entire function 
  body doesn't fix it.</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>