Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #26392
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: simple error |
| Date | 2014-12-28 18:25 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1485747.16sIkefZu1@PointedEars.de> (permalink) |
| References | <m7pdlm$1ju$1@gregory.bnet.hr> |
Haris Bogdanovich wrote: > <td onclick='this.innerHTML = 'X';'>--</td> > > Why it won't change to X when I click on it ? Possibility: Assuming error correction, the resulting script code is this.innerHTML = X; and the identifier “X” is not defined. (See the error console. See the FAQ for details on debugging.) You must not use the same character as markup attribute value delimiter and script string value delimiter. In this simple case, use either “'” and “"”, or “"” and “'”, respectively. In other cases you can use a character reference or character entity reference to avoid the offending code, or you need to move the offending code elsewhere and use that from the attribute value. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> 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
simple error Haris Bogdanovich <haris.bogdanovic@gmail.com> - 2014-12-28 18:12 +0100
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 18:25 +0100
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 21:00 +0200
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 21:32 +0100
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 23:56 +0200
Re: simple error Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-28 18:46 +0000
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 21:13 +0200
Re: simple error Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-28 23:19 +0000
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 01:03 +0100
Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 01:08 +0100
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 20:13 +0100
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 22:30 +0200
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 21:44 +0100
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 23:50 +0200
Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-28 23:10 +0100
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 03:10 +0100
Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 13:17 +0100
Re: simple error Tim Streater <timstreater@greenbee.net> - 2014-12-29 12:30 +0000
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 14:49 +0200
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 15:18 +0100
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 08:20 +0200
Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 12:36 +0100
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 15:40 +0100
Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 01:04 +0100
Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 08:09 +0200
csiph-web