This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes IE vs FF window.event issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "IE vs FF window.event issue" Watch "IE vs FF window.event issue" New topic
Author

IE vs FF window.event issue

Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60
Trying to capitalize the letters as the user types in the text box, works fine in IE but not in Firefox

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Firefox, and other real browsers, use the standard Event instance as defined by the W3C. IE, on the other hand, uses its own proprietary layout. You need to accommodate both (or use a library like jQuery which normalizes the event object).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Most browsers will not let you reassign the key code for security reasons. You are better off doing it after the user type it in.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE vs FF window.event issue
 
Similar Threads
How can I limit the entry of textbox in javascript?
Replace keycode value in Firefox
No window.event in firefox ?
Error in FF
ALT Key Combination help.