Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18341
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post2.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail |
|---|---|
| From | Eric Bednarz <bednarz@fahr-zur-hoelle.org> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: <span> text replacement ?? |
| Organization | Eric Conspiracy Secret Labs |
| References | <an5bvtFgkc7U1@mid.individual.net> <kejvc0$mvf$1@dont-email.me> <WNWdnR8vB9CaEZDMnZ2dnUVZ_r2dnZ2d@westnet.com.au> <XnsA15C8AAC9B2Feejj99@194.109.133.133> |
| Reply-To | ebednarz@gmx.net |
| X-Eric-Conspiracy | There is no conspiracy |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Date | Mon, 04 Feb 2013 22:40:02 +0100 |
| Message-ID | <m2vca7pxl9.fsf@nntp.bednarz.nl> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (darwin) |
| Cancel-Lock | sha1:j2VzbGFShPk7u6djBw5pRmy+3qo= |
| MIME-Version | 1.0 |
| Lines | 21 |
| NNTP-Posting-Host | 83.163.169.80 |
| X-Trace | 1360013990 dreader34.news.xs4all.nl 605 83.163.169.80:54192 |
| Xref | csiph.com comp.lang.javascript:18341 |
Show key headers only | View raw
"Evertjan." <exxjxw.hannivoort@inter.nl.net> writes:
> <span id="m1">This is original error msg</span>
> <span id="m2" style='display:none;'>New msg</span>
>
> <div onclick="swapDisplay('m1','m2');">toggle</div>
+1 for graceless degradation.
> function swapDisplay(a,b) {
> var temp = gbiSty(a).display != 'none';
> gbiSty(a).display = (temp) ? 'none' : 'inline';
> gbiSty(b).display = (temp) ? 'inline' : 'none';
> };
>
> function gbiSty(x) {
> return document.getElementById(x).style;
> };
There *must* be a more inefficient way to do this, but I can't come up
with one at this time of the day.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
<span> text replacement ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-02 13:41 -0700
Re: <span> text replacement ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-02 23:10 +0200
Re: <span> text replacement ?? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-03 08:58 +1100
Re: <span> text replacement ?? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-03 00:51 +0100
Re: <span> text replacement ?? Jim T. <x@y.z> - 2013-02-03 12:03 -0500
Re: <span> text replacement ?? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-04 01:47 +0100
Re: <span> text replacement ?? Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-02-04 22:40 +0100
Re: <span> text replacement ?? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-03 02:03 +0100
Re: <span> text replacement ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-02 18:28 -0700
Re: <span> text replacement ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-03 07:49 +0200
Re: <span> text replacement ?? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-03 21:08 +1100
Re: <span> text replacement ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-03 07:45 +0200
Re: <span> text replacement ?? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-03 21:11 +1100
Re: <span> text replacement ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-03 15:38 +0200
Re: <span> text replacement ?? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-04 06:56 +1100
Re: <span> text replacement ?? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-03 22:35 +0100
Re: <span> text replacement ?? Christoph Becker <cmbecker69@gmx.de> - 2013-02-04 02:08 +0100
Re: <span> text replacement ?? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-04 02:35 +0100
Re: <span> text replacement ?? Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-02-04 22:54 +0100
Re: <span> text replacement ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-05 00:12 +0200
Re: <span> text replacement ?? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-06 11:42 +1100
Re: <span> text replacement ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-06 07:50 +0200
Re: <span> text replacement ?? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-06 17:36 +1100
Re: <span> text replacement ?? Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-02-09 00:46 +0100
Re: <span> text replacement ?? Christoph Becker <cmbecker69@gmx.de> - 2013-02-04 02:21 +0100
csiph-web