Re: Proper coding? (JS newbie)



In microsoft.public.scripting.jscript message <46e33ae8$0$24581$ecde5a14
@news.coretel.net>, Sat, 8 Sep 2007 20:12:45, Paul E. Schoen
<pstech@xxxxxxxxx> posted:

"Dr J R Stockton" <jrs@xxxxxxxxxxxxxxxxxx> wrote in message
news:yx8ugQb$Vy4GFwmo@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I might be adding more types, and possibly also breeds, where there may be
a large number of choices. Is there a way to make a combo-box, where the
applicant may enter an unlisted type or breed?

I don't recall any.

But one can surely have a drop-down list including "* Another * ",
where selecting that un-hides a box to type the name into. But it's not
clear how you could use an unrecognised name, except by reference to a
human. Code could charge extra for "Rottweiler"; but how about
"Rotveiller"? I suspect that many of the owners of nasty dogs are not
good at spelling.


I'm not sure how deeply I will delve into
JavaScript, as it gets confusing when I am writing in several languages.

It's always worth looking for repetitive code that could be made into a
subroutine ... but not always worth making that change.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3? Turnpike 6.05
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
.


Loading