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


Groups > comp.lang.javascript > #12144

Re: How to programmatically display a value

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From " Cal Who" <CalWhoNOSPAM@roadrunner.com>
Newsgroups comp.lang.javascript
Subject Re: How to programmatically display a value
Date Fri, 24 Feb 2012 21:25:47 -0500
Organization A noiseless patient Spider
Lines 24
Message-ID <ji9grj$a07$1@dont-email.me> (permalink)
References <ji9cvn$pqa$1@dont-email.me>
Injection-Date Sat, 25 Feb 2012 02:25:55 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="6QdyZNshdkPWUahAcgOWyg"; logging-data="10247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19H1BietOgf3AKWpCn5P9gP"
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6157
X-RFC2646 Format=Flowed; Response
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
Cancel-Lock sha1:ZrA7nMMnqhIwSo87m4rCp6cKttQ=
X-Priority 3
X-MSMail-Priority Normal
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:12144

Show key headers only | View raw


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.

" Cal Who" <CalWhoNOSPAM@roadrunner.com> wrote in message 
news:ji9cvn$pqa$1@dont-email.me...
>I calculate and want to display the numerical result.
>
> I can do it by assigning to the value attribute of an <input type=text>
> element.
>
> However, I don't want the user to be able to change the value displayed.
>
> I tried readonly="readonly" but, unless I had a bug in the code, I found I
> couldn't programmatically change the value displayed by assigning to 
> value.
>
> How should I do that?
>
> Thanks
>
>
> 

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