In comp.lang.javascript message <4643986b$0$8711$ed2619ec@ptn-nntp-
reader02.plus.net>, Thu, 10 May 2007 23:10:51, Leon
<le**@dontcallmeeeore.co.ukposted:
>>var shebang = strvalue.concat("rider" , riders[x]);
value += rPrice[document.myteam.shebang.value];
>Therefore in the value += line, i would want shebang to be replaced by
rider1, rider2, rider6.
FAQ 4.25 provides the necessary clue. FAQ 4.39 is better. They should
be merged, or at least consecutive.
The example in 4.39, while valid, is pointless; there should also be an
example with a variable string, such as "Item"+N. I can see no point in
using bracket notation where the string is a constant known at code-
writing time.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.