Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: Either Chrome is crazy or *I* am :( Date: Sat, 14 Jul 2012 22:31:01 -0600 Lines: 75 Message-ID: References: <45e408tamu0ffkd3m24i4it2g6dtc205dh@4ax.com> X-Trace: individual.net HI3fcF0vxhORg4R5bv39cQQ/jQXI88qEklurZ1cCakjgeCZKCCvo2kvK5KEQWwvdlA Cancel-Lock: sha1:JTLJ5v83IkgY3tc5dPnSonFWGao= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:15055 Jeff said: > Can you swap out your code for the code found at > http://www.mattkruse.com/javascript/selectbox/ > Jeff: Maybe I can ?? But, in the mean time, below is the 'onclick' function that is called when I 'click' on one of the members in the first list. Even when I go to the bottom, the player is added -- but only if I start near the top or middle Anyway, I'll look at your link, and see if anything pops into my mind btw, I demo'ed to a few of my fellow senior golfers this past Tuesday, and haphazardly chose Chrome for the demo. It worked great until someone decided to click on the last member in the list first, then all Hell broke loose. I was dumbfounded ::( Anyway, here's the small function when the action takes place (or doesn't) -Mel ************************************************************** function focusOnMemElement(e) { // the MEMBER object - global var optel = memsel.options[selindex] ; // optel -- the option clicked on if (optel.value == "X") { // the 'help' option at the top of the list (i.e., click on a member) window.alert("Faulty Selection ! Please Try Again") ; return false ; } var bakgnd = alltrim(optel.style.background) ; // Background colour indicates alrady clicked if (bakgnd != "" && left(bakgnd,4) != "none") { window.alert("This Member ALREADY Selected ! Please Try Again") ; return false ; } bugmsg("b. before set Focuscolor") ; setFocusColor(optel) ; bugmsg("c. After set Focuscolor") ; var memcode = optel.value ; // the membess code e.g., 3174 var memname = optel.text ; // e.g., Joe Blow gholdel.value = memcode+" "+memname ; // my 'holding cell' for the member bugmsg("d. Before plradd") ; plradd(memcode,memname) ; // uses .add and scrollIntoView to Add player to second list bugmsg("e. After plradd") ; return true; }