Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14198
| Message-ID | <2739298.Xl3DxExJP4@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-05-29 14:06 +0200 |
| Subject | Re: Newbie, want onclick to work, using Verizon sitebuilder |
| Newsgroups | comp.lang.javascript |
| References | <7fr7s7p34k5b7oc8hi82ncafhtng4tobo1@4ax.com> <01c8s75sghli0aiofi8uabcun9k7n23nlj@4ax.com> <3596002.OIYgp5SubR@PointedEars.de> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Thomas 'PointedEars' Lahn wrote:
> Jeff North wrote:
>> You will need to rework this line to:
>> onclick="<A href='https://www.myfavoritesite.com'> </A>" >
>> or if you want double quotes throughout the line you will need:
>> onclick="<A href=\"https://www.myfavoritesite.com\"> </A>" >
>
> Utter nonsense. The value of the `onclick' attribute must be program
> code, without further specification, a syntactically correct ECMAScript
> /Program/. It MUST NOT contain an unescaped `<' character for that is a an
> STAGO (star tag open) delimiter. ECMAScript escape sequences *cannot* be
^t
> used to escape markup delimiters as the markup parser will still see them.
Clarification: ECMAScript escape sequences cannot be used to escape markup
delimiters *if* the escape sequence *still* contains the markup delimiters.
In this case, markup escape sequences –
onclick="<A href="https://www.myfavoritesite.com"> </A>"
– or ECMAScript escape sequences –
onclick="\x3cA href=\x22https://www.myfavoritesite.com\x22> \x3c/A>"
– could be used to make this Valid *markup*, but the attribute value would
still not be the required syntactically valid ECMAScript program, as
<A href="https://www.myfavoritesite.com"> </A>
is _not_ one (`<' is an operator, the operand left-hand side is missing, to
begin with).
PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-05-28 18:01 -0400
Re: Newbie, want onclick to work, using Verizon sitebuilder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 00:25 +0200
Re: Newbie, want onclick to work, using Verizon sitebuilder Jeff North <jnorthau@yahoo.com.au> - 2012-05-29 12:13 +1000
Re: Newbie, want onclick to work, using Verizon sitebuilder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 13:51 +0200
Re: Newbie, want onclick to work, using Verizon sitebuilder Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 14:06 +0200
Re: Newbie, want onclick to work, using Verizon sitebuilder Gene Wirchenko <genew@ocis.net> - 2012-05-28 21:32 -0700
Re: Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-05-29 13:55 -0400
Re: Newbie, want onclick to work, using Verizon sitebuilder Gene Wirchenko <genew@ocis.net> - 2012-05-29 11:26 -0700
Re: Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-06-23 14:03 -0400
Re: Newbie, want onclick to work, using Verizon sitebuilder Dr J R Stockton <reply1222@merlyn.demon.co.uk.not.invalid> - 2012-05-29 23:49 +0100
Re: Newbie, want onclick to work, using Verizon sitebuilder SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-05-30 15:13 +0200
Re: Newbie, want onclick to work, using Verizon sitebuilder micky <NONONOmisc07@bigfoot.com> - 2012-06-23 15:26 -0400
csiph-web