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


Groups > comp.lang.javascript > #22168

Re: text editing icons mysteriously not showing up any more

Message-ID <7617060.qvUKINBVhX@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-11-24 03:51 +0100
Subject Re: text editing icons mysteriously not showing up any more
Newsgroups comp.lang.javascript
References <b2c651d0-f3cd-498b-8a35-364e93829659@googlegroups.com>

Show all headers | View raw


justaguy wrote:

> […]  I have a template that displays some text and at top it has some text
> editing features such as Bold, Italic etc.  The template has been working
> for 3 years in a row.  But all of a sudden, started this morning, the text
> editing icons no longer showing up. […]
> 
> <form id="editForm" name="editForm" action="someserverscript"
> method="post"> ...
> <input type="button" id="MakeBold" accesskey="B"
> onclick="RichText('bold')"
> 
> style="background-image:url('icons/bold.gif');width:25;height:23" />

Your inline style is not Valid: CSS lengths different from 0 have to have a 
unit; here probably “px”: “25px” and “23px”.

Also, formatting input[type="button"] elements this way is unreliable; use 
button[type="button"] elements instead.

It is not surprising that code that is not standards-compliant and is error-
prone stops working after a browser update.

HTML is on-topic in comp.infosystems.www.authoring.html.
CSS is on-topic in comp.infosystems.www.authoring.stylesheets.
This is comp.lang.javascript.

<http://validator.w3.org/>
<http://jigsaw.w3.org/css-validator/>
<http://PointedEars.de/faq>

> […]
> If the perpetrator is a government sanctioned criminal then I have no way
> to beat such evil.  Hope I'm wrong.

So much for that.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


Thread

text editing icons mysteriously not showing up any more justaguy <lichunshen84@gmail.com> - 2013-11-23 17:19 -0800
  Re: text editing icons mysteriously not showing up any more Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-24 02:39 +0100
  Re: text editing icons mysteriously not showing up any more Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-24 03:51 +0100
  Re: text editing icons mysteriously not showing up any more JJ <duh@nah.meh> - 2013-11-24 10:53 +0700
  Re: text editing icons mysteriously not showing up any more Archenoth <Archenoth@live.something> - 2013-11-25 05:40 -0600

csiph-web