Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #12163

Re: How to programmatically display a value

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> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
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 <ji9cvn$pqa$1@dont-email.me> <ji9grj$a07$1@dont-email.me>
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<]lROoRQ8kF<OcfhCO[1Na@Z_S6Ve\DZm8W4\YJN\b@mF9jNikdUN7cMhP1>loVJEM1O2SEVCT
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:12163

Followups directed to: comp.lang.javascript

Show key headers only | View raw


 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 <span>&nbsp;</span>).

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

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to programmatically display a value " Cal Who" <CalWhoNOSPAM@roadrunner.com> - 2012-02-24 20:19 -0500
  Re: How to programmatically display a value " Cal Who" <CalWhoNOSPAM@roadrunner.com> - 2012-02-24 21:25 -0500
    Re: How to programmatically display a value Swifty <steve.j.swift@gmail.com> - 2012-02-25 06:46 +0000
    Re: How to programmatically display a value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-25 13:19 +0100
      Re: How to programmatically display a value Dr J R Stockton <reply1208@merlyn.demon.co.uk> - 2012-02-26 20:38 +0000
      Re: How to programmatically display a value Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-02-27 15:53 +0100
        Re: How to programmatically display a value Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-27 17:40 +0100

csiph-web