woops, I forgot to mention what browser I'm having this problem with....ND4.
It's the only browser I have to worry about.

Thx,
Janet


                                                                  
 (Embedded                                                        
 image moved   "Grace Frederick" <[EMAIL PROTECTED]>              
 to file:      04/29/99 10:13 AM                                  
 pic32582.pcx)                                                    
                                                                  



To:   Janet Traub/IS/SSC/THD
cc:
Subject:  Re: [ND] Javascript: comboBox event handler




What browser are you using for this?  Does the same behavior occur on both
Netscape and IE?

== Grace

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 28, 1999 9:46 PM
Subject: [ND] Javascript: comboBox event handler


>
>
>
> This is purely a Javascript question.
>
> function enterKey(event) {
>  if (event.which == 13)
>     {
>
document.PgSearchFirm.elements["BtnSearch_onWebEvent(BtnSearch)"].click();
>     }
> }
> document.captureEvents(Event.KEYPRESS);
> document.onkeypress=enterKey;
>
> The above Javascript works fine when focus is on a TextBox control; i.e.
when
> the KEYPRESS event occurs it correctly triggers the click event of the
specified
> button. However, when a dropdown (ComboBox) has focus, the event is never
> triggered.
>
> I surfed around to find some helpful docs/articles but still wasn't able
to
> solve my problem. (Although this was a good article about event capturing:
> http://www.stars.com/Authoring/JavaScript/Events/capturing_ns.html )
>
>  I imagine the problem is that the drop-down already captures the event
and uses
> it to do a "quick search" on the drop-down's data choices.
>
> If anyone has advice, please send it here.
> Thanks,
> Janet
>
>
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
>



pic32582.pcx

Reply via email to