Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news-peer.in.tum.de!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1403837.V9SEqChMir@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sat, 25 Feb 2012 13:19:29 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit Subject: Re: How to programmatically display a value Newsgroups: comp.lang.javascript References: Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 20 NNTP-Posting-Date: 25 Feb 2012 13:19:30 CET NNTP-Posting-Host: c367845e.newsspool3.arcor-online.net X-Trace: DXC=N0eS_3B_H4V@>[RYkFXOIPMcF=Q^Z^V3X4Fo<]lROoRQ8kFloVJEM1O2SEVCT X-Complaints-To: usenet-abuse@arcor.de Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:12163 Cal Who wrote: > I don't know if this is the "best" way to display a numeral but I found > the innerHTML property on the span element and that appears to work OK. You are displaying a numeral, not parsing HTML markup; using innerHTML is overkill, not standardized, and therefore error-prone. Use the `nodeValue' property of the `firstChild' of the span element object (you should provide it with a child node, say  ). Your learning to quote (at least, not to top-post) is a prerequesite for my further considering your postings. You have been warned. PointedEars -- > If you get a bunch of authors […] that state the same "best practices" > in any programming language, then you can bet who is wrong or right... Not with javascript. Nonsense propagates like wildfire in this field. -- Richard Cornford, comp.lang.javascript, 2011-11-14