Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

DU Web Programmers - Avant Browser/JavaScript question

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
Catch22Dem Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Jul-17-04 09:18 AM
Original message
DU Web Programmers - Avant Browser/JavaScript question
I'm a web programmer and database developer/administrator, so I'm not a programming newbie. I have a question though. I was at work the other day, and was just doing regular work stuff. I recently downloaded AvantBrowser at work to add to my list of browsers I check my code on. I make every effort to write browser independent code. So anyway, I noticed something odd, and wondered if anyone else has seen this.

If I have a text box:
<INPUT TYPE="text"...>

And I add some simple client-side script (JS) to detect the "enter" key, like so:
onKeyUp="alert( event.keyCode )"

It will pick up every single key I press EXCEPT for the enter key (which is keyCode 13) So far, this is the ONLY browser I've seen this happen with. Has anyone else experienced this? I kinda need this little chunk of code to work.
Printer Friendly | Permalink |  | Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC