[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Is it possible to catch the onKeyDown event on a page that includes a Java applet?

Posted on 2009-05-07
4
Medium Priority
?
271 Views
Last Modified: 2013-11-23
I have a webpage containing a frame that has a java-applet inside of it.

On the webpage I check for onKeyDown. It works fine.

Except when the (i)frame contains a java-applet. Then it seems like the java-applet is steeling the event from the webpage, but unfortunately in a way, so that the user can still press [backspace] on the webpage and the browser goes 1 page back in the history.
The problem is that my OnKeyDown event doesnt catch the [backspace] (when the java-applet steels it). The whole idea was to prevent the user from being able to hit the [backspace]. And its working fine when there is no java-applet on the page.

What should I do in order to also catch the [backspace] when the page contains a frame with a java-applet?
0
Comment
Question by:loopstudio
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24324779
Redesign the application so it can handle going back.

For example on the previous page have

<a href="page2.html" onClick="location.replace(this.href); return false">Next</a>
0
 

Author Comment

by:loopstudio
ID: 24325975
I guess You mean CANT'T ? :)

But I dont have a link or a user clicking on something, so I cant use Your suggested solution.
Its event driven, so its the application itself that changes the content of the frame - and sometimes its a java-applet.

But isnt there a way to catch it?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 1500 total points
ID: 24326061
Not that I know of
0
 

Author Closing Comment

by:loopstudio
ID: 31578962
close
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn different types of Android Layout and some basics of an Android App.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month18 days, 16 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question