FlyerTalk Forums - View Single Post - co.com issue with firefox
View Single Post
Old Aug 1, 2009 | 9:49 pm
  #14  
quantumslip
All eyes on you!
15 Years on Site
 
Join Date: Jan 2009
Posts: 609
Originally Posted by yonajon
This is definitely related to pressing enter vs. clicking the button. Annoying bug, only affects Firefox.

CO.com, get your onkeypress events right
/nerdhaton

The front page doesn't exhibit this issue, because when you hit enter, the fields (password and OnePass number) have this code:
Code:
onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_ContentInfo_accountsummary_btnOnePassSignIn');
Essentially it's saying to press the sign in button.

On the other pages (like the dedicated sign page), the OnePass field/User Name and the PIN/Password fields lack the onkeypress code.

As to why it only affects Firefox, I don't know. My guess is the other browsers uses the input html tag of type submit to determine what action to do when enter is pressed within a form when none is specified.

disclaimer: i am not a html programmer, but i can say for sure they need to add the onkeypress to the affect fields across the board (timetable, signin, etc.)

/nerdhatoff
quantumslip is offline