Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15055

Re: Either Chrome is crazy or *I* am :(

Path csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Mel Smith" <med_cutout_syntel@aol.com>
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 <a6evcaFk3jU1@mid.individual.net> (permalink)
References <a6efohFhqlU1@mid.individual.net> <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

Show key headers only | View raw


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 <select> list

    I have my 'bugmsg()' function scattered thruout the function, because if 
I use the Alert() function for my tracking/testing, then the Alert seems to 
allow Chrome to work correctly (I think) ...

    Anyway, these bug messages show that (in Chrome) I *never* enter this 
next function *IF* I click on an <option> near the bottom of the long list 
*first*???.  *If* I click in the top or middle, then the final bugmsg below 
displays, and a player is added to the second <select> 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 <Select" element (approx 95 
members)
   bugmsg("")  ;
   bugmsg("a. in focusOnMemElement") ;

   var selindex = memsel.selectedIndex ;    // memsel -- the members 
<select> 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;
}


Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-14 18:04 -0600
  Re: Either Chrome is crazy or *I* am :( Jeff North <jnorthau@yahoo.com.au> - 2012-07-15 13:29 +1000
    Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-14 22:31 -0600
      Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-15 10:05 -0600
        Re: Either Chrome is crazy or *I* am :( Matt McDonald <matt@fortybelow.ca> - 2012-07-15 10:48 -0600
          Re: Either Chrome is crazy or *I* am :( "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-15 17:05 +0000
            Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-15 12:49 -0600
          Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-15 12:41 -0600
  Re: Either Chrome is crazy or *I* am :( SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-07-16 17:46 +0200
    Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-16 10:14 -0600
      Re: Either Chrome is crazy or *I* am :( Christoph Becker <cmbecker69@gmx.de> - 2012-07-16 19:31 +0200
        Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-16 12:21 -0600
          Re: Either Chrome is crazy or *I* am :( Christoph Becker <cmbecker69@gmx.de> - 2012-07-16 20:44 +0200
            Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-16 15:07 -0600
      Re: Either Chrome is crazy or *I* am :( SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-07-17 01:47 +0200
        Re: Either Chrome is crazy or *I* am :( "Mel Smith" <med_cutout_syntel@aol.com> - 2012-07-30 13:31 -0600

csiph-web