<!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> </DIV>
<DIV><SPAN class=566105322-27012003> <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> </DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff
size=2>1) There is no need for the javascript pseudoprotocol. This
is only necessary when you're calling a function from a link. 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> </DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff
size=2>2) As far as I know, there is no input type called textarea.
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> </DIV>
<DIV><SPAN class=566105322-27012003><FONT face=Arial color=#0000ff
size=2> Which line is 112? 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> </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> </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> </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><input
type='textarea' onFocus='javascript:gotMe(this, 6);'></FONT></SPAN></DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial
size=2></FONT></SPAN> </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>
function gotMe(current, length)<BR> {<BR>
current.maxLength = length;<BR>
current.select;<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial
size=2></FONT></SPAN> </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: 112</FONT></SPAN></DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial
size=2>Char: 1</FONT></SPAN></DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial
size=2>Error: Object expected</FONT></SPAN></DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial
size=2>Code: 0</FONT></SPAN></DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=256331119-27012003><FONT face=Arial size=2>Does anyone have
any ideas? The only way that I've found that fixes this problem is
getting rid of the onFocus part. Even commenting the entire function
body doesn't fix it.</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>