From: Dr John Stockton on
JRS: In article <Vuu%d.450$Zn.26667(a)news.optus.net.au>, dated Mon, 21
Mar 2005 07:13:57, seen in news:comp.lang.javascript, Fred Oz
<OzFred(a)iinet.net.auau> posted :
>
> You could include the DynWrite[1] function to provide
> getElementById for those browsers that support document.all,

> ...

>1. <URL:http://www.jibbering.com/faq/faq_notes/alt_dynwrite.html>


There is a confusion somewhere.

DynWrite is in the FAQ proper, section 4.15 : it does not provide
getElementById, but it provides a means of doing one of the things that
is commonly done with getElementById.

There may be a different implementation of DynWrite in the Notes; but
any function of that name there should have the same parameters and
result.


I now think that it would be well to use inline code to provide
getElementById, and then to have a simple DynWrite using getElementById
(if wanted in more than one or two places; for clarity and compactness).



It's not generally sensible to use isNaN or its logical inverse to
validate numeric input, since in most cases one does not want to accept
all possible representations of all possible IEEE Doubles. Far better
to use RegExps : <URL:http://www.merlyn.demon.co.uk/js-valid.htm>.

--
ý John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ý
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.