aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Up Arrow key press problem on IE 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 "Up Arrow key press problem on IE" Watch "Up Arrow key press problem on IE" New topic
Author

Up Arrow key press problem on IE

Blaidd Gwael
Greenhorn

Joined: Oct 01, 2009
Posts: 13

Hi, I'm trying to detect the up arrow click event in a html page . I have the following code:

.

For all normal chars (a-z , 1-9) it;s working on IE and Firefox but for up arrow (code: 38) it's not working on IE.
Am i missing something ?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
Blaidd Gwael
Greenhorn

Joined: Oct 01, 2009
Posts: 13

For a-z 1-9 it's working but for not for arrows. I have IE 7.0.
The problem is that the function is not executed for arrows.



If i press up arrow nothing but if i press "a" i have an alert. Just on IE.
On Mozilla it's working perfectly.

I'm loading the html code in a div (ajax) and execute the script after that.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
how about



Eric
Blaidd Gwael
Greenhorn

Joined: Oct 01, 2009
Posts: 13

It's not working, I'm keep looking...
Blaidd Gwael
Greenhorn

Joined: Oct 01, 2009
Posts: 13

it worked with
 
 
subject: Up Arrow key press problem on IE
 
Similar Threads
Please help me analyze this script
HTML Table events?
Scroll Rows of a Table One at a Time
No window.event in firefox ?
Using Up/Down Arrow Key to Move in a table