Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #19042
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.fsmpi.rwth-aachen.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-ID | <19780129.Cq2cY1Hk6d@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Thu, 28 Mar 2013 18:33:17 +0100 |
| User-Agent | KNode/4.8.5 |
| Content-Transfer-Encoding | 8Bit |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: Scope of search / reduce scope / about "this" |
| Newsgroups | comp.lang.javascript |
| References | <82de1eb3-5b51-4960-8b65-b43bbd5013b4@googlegroups.com> <17725500.x5YR6M0e2C@PointedEars.de> |
| MIME-Version | 1.0 |
| Lines | 51 |
| NNTP-Posting-Date | 28 Mar 2013 18:33:19 CET |
| NNTP-Posting-Host | 7bbf5041.newsspool3.arcor-online.net |
| X-Trace | DXC=Y7C9K61`;Kl:i=48;n?Z:`McF=Q^Z^V3h4Fo<]lROoRa8kF<OcfhCOkQ^kYTE\6d>aDZm8W4\YJNlb@mF9jNikdeBoKGPB=12Ag5@P7S60l`_d |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:19042 |
Show key headers only | View raw
Thomas 'PointedEars' Lahn wrote: > thomas.lehmann@adtech.com wrote: >> </script> >> </table> > > Not Valid. The child element of a “table” element can only be a “thead”, > “tbody”, “tfoot”, or “tr” element. To be precise, other child elements are possible, like “colgroup”. But definitely not “script” elements. <http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.1> <http://www.w3.org/TR/2012/CR-html5-20121217/tabular-data.html#the-table- element> > But if you already know the form the control is in, access the > corresponding form object as you did, then use the form object's > “elements” collection to access the form control: > > <body onload="setFocus(document.forms[…].elements["myControl"])" …> > > or > > <… on…="setFocus(this.form.elements["myControl"])"> This is not Valid. Valid possibilities are: <body onload="setFocus(document.forms[…].elements['myControl'])" …> <body onload='setFocus(document.forms[…].elements["myControl"])' …> <… on…="setFocus(this.form.elements['myControl'])"> <… on…='setFocus(this.form.elements["myControl"])'> An attribute value delimiter cannot be used as string literal delimiter within that attribute value, not even as ECMAScript escape sequence. The only possibility to have that is to use character and character entity references in the script code, which will be resolved by the markup parser before they get to the script engine – e.g., <… on…="setFocus(this.form.elements["myControl"])"> – or move the offending code out of the attribute value. -- 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
Scope of search / reduce scope / about "this" thomas.lehmann@adtech.com - 2013-03-28 06:50 -0700
Re: Scope of search / reduce scope / about "this" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-28 15:29 +0100
Re: Scope of search / reduce scope / about "this" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-28 18:13 +0100
Re: Scope of search / reduce scope / about "this" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-28 18:33 +0100
Re: Scope of search / reduce scope / about "this" Danny <dann90038@gmail.com> - 2013-03-28 12:37 -0700
Re: Scope of search / reduce scope / about "this" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-28 21:01 +0100
HTML5 “autofocus” attribute (was: Scope of search / reduce scope / about "this") Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-03-29 23:27 +0100
csiph-web