This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Up Arrow key press problem on IE
 
Similar Threads
HTML Table events?
No window.event in firefox ?
Using Up/Down Arrow Key to Move in a table
Scroll Rows of a Table One at a Time
Please help me analyze this script