Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IE vs FF window.event issue

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic