Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11479
| From | Dr J R Stockton <reply1206@merlyn.demon.co.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Misspelling Can Bite You |
| Date | 2012-02-07 21:54 +0000 |
| Organization | Home |
| Message-ID | <$qJAjIGv2ZMPFwzn@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <po1mi75fb0u5rqp9or413nv26799lpnndj@4ax.com> <clw4wWGWSGLPFw+L@invalid.uk.co.demon.merlyn.invalid> <9p5i9vFn1kU1@mid.individual.net> <FIgu7uHWVrLPFwPZ@invalid.uk.co.demon.merlyn.invalid> <9pagtqFvc2U1@mid.individual.net> |
In comp.lang.javascript message <9pagtqFvc2U1@mid.individual.net>, Mon,
6 Feb 2012 10:28:19, Mel Smith <med_cutout_syntel@aol.com> posted:
>Dr. J said:
>>>
>>> var rgn = document.getElementById("iselectrgn") ;
>>> var rgnopts = rgn.getElementsByTagname("option") ;
>>>
>>> Because I *thought* I had checked the statements thoroughly, I looked
>>>everywhere *after* this set, and finally went back and checked them again
>>>letter-by-letter, and then ...
>>
>
>> Readily found by Firefox/Opera/Safari Error Console, Chrome JavaScript
>> Console, and by an IE8 pop-up, though.
>
> Yes, I use IE 7 on my dev machine, and 'once-in-a-while' (when I'm
>nearing the production stage) I check out the appearance on Chrome and FF.
>
> However, I didn't *this* time and spent a couple of confusing and
>frustrating hours tracking down this 'devil'.
One fault with those Error Consoles is that they lack a "Stay On Top"
checkbox, or one for "Jump up when written to".
Re my earlier code : given a reference to a script element, one can get
.innerHTML and (in all my browsers) read as a string the script as
transmitted. Is there any easy way of getting that string, MINUS all
comment and MINUS all inner strings (or, in each case, removing the
content of the comments and strings) while leaving all the other code?
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike 6.05 WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Misspelling Can Bite You Gene Wirchenko <genew@ocis.net> - 2012-02-02 14:02 -0800
Re: Misspelling Can Bite You "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-02-03 01:37 +0000
Re: Misspelling Can Bite You Gene Wirchenko <genew@ocis.net> - 2012-02-02 18:09 -0800
Re: Misspelling Can Bite You Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-03 04:15 +0100
Re: Misspelling Can Bite You Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-03 22:49 +0000
Re: Misspelling Can Bite You "Mel Smith" <med_cutout_syntel@aol.com> - 2012-02-04 13:21 -0700
Re: Misspelling Can Bite You Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-05 16:59 +0000
Re: Misspelling Can Bite You "Mel Smith" <med_cutout_syntel@aol.com> - 2012-02-06 10:28 -0700
Re: Misspelling Can Bite You Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-07 21:54 +0000
csiph-web