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> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn 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+&. <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<]lROoRa8kFaDZm8W4\YJNlb@mF9jNikdeBoKGPB=12Ag5@P7S60l`_d X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:19042 Thomas 'PointedEars' Lahn wrote: > thomas.lehmann@adtech.com wrote: >> >> > > 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. > 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: > > > > or > > <… on…="setFocus(this.form.elements["myControl"])"> This is not Valid. Valid possibilities are: <… 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.