× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



William,
You cannot stop some events from happening. In FF you can see that F5 is
pressed but there is not anything you can do to stop it from refreshing
the page with javascript, at least as far as I know. The same is true
with F12 and firebug installed.


Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777



"William A. Hansen" <whansen@xxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
05/09/2011 06:49 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
<midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: Warning - Firefox v4 not compatible with HMC 7.7.1






Capturing function keys can be a chore, but it is fairly straightforward.

As in all browsers, IE accepts the onKeyPress event. Define it as
onkeypress='myFunction(event)'. Within the event handler, you can
interrogate the event with event.keyCode to get the ASCII code of the key
pressed. The trick is to use event.cancelBubble = true; to stop the event
from percolating back to the browser.

The remaining nasty bit is the F1 key. Unlike other browsers, IE supports
an onHelp event (as well as onContextMenu to capture right-clicks). I
need to capture this because my entry-level course teaches people how to
use F1 in all the glorious ways that IBM i supports. I don't want the IE
help window to pop up.
Bill



William A. Hansen
whansen@xxxxxxxxxxxxx
Manta Technologies Inc.
Toll-free: (800) 406-2682 x 101
Direct: (303) 862-4562

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.