Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Mike Duffy Newsgroups: comp.lang.javascript Subject: Re: Super basic newbie question Date: Fri, 9 Mar 2012 01:01:55 +0000 (UTC) Organization: Your Company Lines: 20 Message-ID: References: <4f58ca7e$0$6567$9b4e6d93@newsspool3.arcor-online.net> <9a3cb25a-9440-469a-9fc5-5d3cc70ebc7a@p6g2000yqi.googlegroups.com> NNTP-Posting-Host: aNfMpzQh7uErS0XjFf/buA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: Xnews/5.04.25 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:12515 "Larry.Martell@gmail.com" wrote in news:9a3cb25a-9440-469a-9fc5-5d3cc70ebc7a@p6g2000yqi.googlegroups.com: > The document.write was just a test to see if my function was being > called and was working. You totally missed the point of my issue, > which was that getElementById was returning null. Perhaps you totally missed the point of his issue, which is that "document.write", depending on when it is executed, can mess up the entire document, thus making getElementById return null because the corresponding element has just been destroyed by the "document.write". If what he suggested seems to complicated, use named span elements, and modify their values using "innerHTML". Alternatively, define a separate text box above your test field, and append values to it as a sort of message log. -- http://pages.videotron.ca/duffym/index.htm#