IE 7 onkeyup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thundric
    New Member
    • Mar 2008
    • 1

    IE 7 onkeyup

    Hi,
    this is quite important & urgent for me. I use JDeveloper (JSF ADF BC) and on my web page I'm using onkeyup event of inputText in which I've added:

    [CODE=javascript]var browserName=nav igator.appName;
    if (browserName==" Netscape"){
    if(event.keyCod e==13)
    this.onchange(e vent);
    }else{
    if (browserName==" Microsoft Internet Explorer"){
    if(window.event .keyCode==13)th is.onchange(eve nt);
    }
    }

    [/CODE]the problem which I cannot solve is that when in IE 7 Enter key is pressed cursor changes to hourglass cursor and doesn't change back to arrow until I click refresh page. In FireFox everything works fine, but since some of my users use IE 7 I have to solve this. So please if anyone knows how to solve this or how to make a workaround I would be very thankful.

    Thanks in advance,
    Tomislav.
    Last edited by acoder; Mar 6 '08, 02:15 PM. Reason: Added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!

    Using browser detection for this is not a good idea. From what I gather, you want to fire the onchange event when the enter key is pressed. Is that correct?

    Comment

    Working...