IE7: How to block F1 key to show windows help in java applet?

Question
My applet use F1 shotcut key in each popup dialog(JDialog) to show application
help, IE6 works correct, but IE7 shows windows help also besides
applicaiton help.
By the way, when applet got the focus, the windows help do not popped up
when press F1 key. Who can help me?
The owner of the JDialog is sun.plugin.viewer.frame.IExplorerEmbeddedFrame
which is get by the following code:
Frame jFrame = null;
Container f = getParent();
while ((f != null) && (!(f instanceof Frame)))
f = f.getParent();
if (f == null)
jFrame = new Frame();
else
jFrame = (Frame)f;
} //else

In my testing, I found out that this works in IE7:
<body onhelp="return false;">
But if you call a function that returns false, then it doesn't work, i.e., the following doesn't work:
function donothing() {
return false;
<body onhelp="donothing();">
In the applet codes, this seems to be a problem only when the dialog owner is IExplorerEmbeddedFrame. When I set the owner to null, then pressing F1 no longer pops up IE help window.
Edited by: bkyd on May 8, 2008 2:06 PM

Similar Messages

  • How can I develop co-broswing on Windows platform with java language?

    How can I develop co-broswing on Windows platform with java language?
    The function will be realized
    Now I want to develop a co-broswing system with java language on Windows platform.That is to say I will develop
    a application run on client to track the present browser.Wheh the URL address of your present if changed(for example
    when you click a link or submit a form),the application will capture the new URL address and send it to the other
    client that make co-browsing connect with you.The browser on the other client side will catch the new URL and refesh
    the page to show the page.
    The question I fall across and want to ask you
    (1)How to watch system process with java on the Windows platform?Because I want to get the process information of
    the present broswer,and then get the URL address of the present broswer.
    (2)Develop an application to watch the URL address of the present broswer continuance,If the URL address is changed,
    then send the new URL address to the client on the other side,let his broswer to show the new page using the new URL.

    Paulc, A proxy server is not the right thing.
    What our man here is looking for is a solution for two
    users to kind of surf the net "in tandem" - when one
    user navigates to a different web page, so does the
    other user,
    These are typically used in call center applications
    where the advisor guides a caller through , say
    filling in an insurance form or pointing him to the
    right product specification pages.
    Xing, why are you using Java for this ? You need
    something that has better windows integration. If you
    look on MSDN.microsoft.com and search for "explorer
    bar" you will find solutions to the questions that you
    raised.
    There are also commercial products on the market that
    already do this kind of stuff. there is one from
    www.genesyslabs.com which is considered to be the best
    of breed.
    It is difficult or almost impossible to do this in
    Java for a commercial application.
    If you are developing this as an academic exercise,
    give it a try. Post your email address here, and I
    will contact and help you out if you like.my e-mail is below ,I want to contact you and need all of your help.
    [email protected]

  • Control key is showing Desktop - Help

    Long story short - I have somehow mapped my 'Control' key to show my Desktop on my Macbook Air. I can't remember how I did this and was wondering if anyone had any suggestions.
    I have already tried  System Preferences>Keyboard>Modifier Keys and Control says Control.
    I am running OS X 10.9.2.
    Any help is appreciated.

    Did you ever find a solution to this? It is happening on my keyboard with left fn, control, and option keys, driving me crazy and preventing work on photoshop involving the use of these keys!!
    I have checked all the suggestions on this forum with no results.

  • How to Use "Hot Key" in the Search help

    Hi,
    Please explain how to use hot key with some example.

    TYPE-POOLS SLIS. DATA: BEGIN OF itab OCCURS 0,
            BUKRS LIKE T001-BUKRS,
            BUTXT LIKE T001-BUTXT,
          END   OF itab.
    PARAMETERS: P_BUKRS TYPE BUKRS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BUKRS. 
    PERFORM F4_FOR_BUKRS.
    FORM F4_FOR_BUKRS.   DATA: IT_FIELDCAT TYPE  SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
            ES_SELFIELD TYPE  SLIS_SELFIELD. * Get data
      SELECT BUKRS
             BUTXT
             FROM T001
             INTO TABLE itab
             up to 10 rows .
    Get field
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME     = SY-REPID
                I_INTERNAL_TABNAME = 'ITAB'
           CHANGING
                CT_FIELDCAT        = IT_FIELDCAT[].   LOOP AT IT_FIELDCAT.
        IT_FIELDCAT-KEY = SPACE.
        IF IT_FIELDCAT-FIELDNAME = 'BUTXT'.
          IT_FIELDCAT-EMPHASIZE  = 'C710'.
          IT_FIELDCAT-HOTSPOT = X.
        ENDIF.
        IF IT_FIELDCAT-FIELDNAME = 'BUKRS'.
          IT_FIELDCAT-EMPHASIZE  = 'C610'.
        ENDIF.     MODIFY IT_FIELDCAT.
      ENDLOOP.   CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
    I_TITLE                       = 'THIS IS FOR F4 IN COLOR'
          I_TABNAME                     = 'ITAB'
          IT_FIELDCAT                   = IT_FIELDCAT[]
        IMPORTING
          ES_SELFIELD                   = ES_SELFIELD
        TABLES
          T_OUTTAB                      = ITAB . ENDFORM.                    " F4_FOR_BUKRS

  • How open a file and not showing window?

    I write a script to do some work automatic,
    for Indesign script, its application open method could open a file and not showing window,
    the open method has a parameter [ShowingWindow] (if true, show the document window).
    That is good a feature for me.
    But with Illustrator, the application open method hasn't the same feature.
    Open
    (files as String,
    [documentColorSpace as AiDocumentColorSpace],
    [options as Object])
    and for OpenOptions properties, there is not useful information for me.
    Is there any other methods could do that?
    Any help is greatly appreciated.

    Thank for your reply.

  • How to block JTree key event listeners

    I have a JToolbar I am managing keyboards events for (e.g. PageUp, PageDown, right, left, up, down). I also have a JTree in another panel. I have to use 'Alt + PageUp' instead of PageUp because, if I use 'PageUp' (without also using the Alt key), and, the JTree gets the focus, then the JTree will respond to 'PageUp' instead of my JToolbar.
    I have my key actions in a 'getKeystrokeActions()' method which I pass the JToolbar into so I tried passing the JTree to the same method. This doesn't quite do what I want as both components now respond to a 'PageUp' key event.
    There must be some way to tell the JTree not to handle key events but I can't seem to find it. Any help much appreciated.

    Remove the key listeners?
    JTree tree = new JTree();
    for(KeyListener listener : tree.getKeyListeners()) {
        tree.removeKeyListener(listener);
    }Another option would be to just do
    tree.setFocasable(false);

  • How to ad link to slide show ? Help !!

    I have this slide show and am trying to add a link to each image loaded, can anyone help me with this ?
    I am new to this and have no clue how to go about this, so maybe you can help me with the completed code if you can !
    thanks to anyone that can help. Here is the code.....
    // set random # variables - each must be 0 for first 'while' loop below
    var randomNum = 0;
    var randomNumLast = 0;
    // parent container
    var container_mc = this.createEmptyMovieClip("container",0);
    // movie clip containers
    container_mc.createEmptyMovieClip("loader1_mc",2);
    container_mc.createEmptyMovieClip("loader2_mc",1);
    // preload watcher
    this.createEmptyMovieClip("watcher_mc",100);
    // load xml
    images_xml = new XML();
    images_xml.ignoreWhite=true;
    images_xml.onLoad = parse;
    images_xml.load("images.xml");
    function parse(success) {
        if (success) {
            imageArray = new Array();
            var root = this.firstChild;
            _global.numPause = Number(this.firstChild.attributes.timer * 1000);
            _global.order = this.firstChild.attributes.order;
            _global.looping = this.firstChild.attributes.looping;
            _global.fadetime = Number(this.firstChild.attributes.fadetime);
            _global.xpos = Number(this.firstChild.attributes.xpos);
            _global.ypos = Number(this.firstChild.attributes.ypos);
            var imageNode = root.lastChild;
            var s=0;
            while (imageNode.nodeName != null) {
                imageData = new Object;
                imageData.path = imageNode.attributes.path;
                imageArray[s]=imageData;
                imageNode = imageNode.previousSibling;
                s++;
            // place parent container
            container_mc._x = _global.xpos;
            container_mc._y = _global.ypos;
            // parse array
            imageArray.reverse();
            imageGen(imageArray);
        } else {
            trace('problem');
    // depth swapping
    function swapPlace(clip,num) {
        eval(clip).swapDepths(eval("container_mc.loader"+num+"_mc"));
    function loadImages(data,num) {
        if (i==undefined || i == 2) {
            i=2;
            createLoader(i,data,num);
            i=1;
        } else if (i==1) {
            createLoader(i,data,num);
            i=2;
    function createLoader(i,data,num) {
        thisLoader=eval("container_mc.loader"+i+"_mc");
        thisLoader._alpha=0;
        thisLoader.loadMovie(data[num].path);
        watcher_mc.onEnterFrame=function () {
            var picLoaded = thisLoader.getBytesLoaded();
            var picBytes = thisLoader.getBytesTotal();
            if (isNaN(picBytes) || picBytes < 4) {
                return;
            if (picLoaded / picBytes >= 1) {
                swapPlace("container_mc.loader2_mc",1);
                alphaTween = new mx.transitions.Tween(thisLoader, "_alpha", mx.transitions.easing.Regular.easeOut,0,100,_global.fadetime,true);
                timerInterval = setInterval(imageGen,_global.numPause,data);
                delete this.onEnterFrame;
    function imageGen(data) {
        // random, or sequential?
        if (_global.order=="random") {
            // choose random # between 0 and total number of images
            while (randomNum == randomNumLast) {
                randomNum = Math.floor(Math.random() * data.length);
                trace(randomNum);
            loadImages(data,randomNum);
            randomNumLast = randomNum;
        } else if (_global.order=="sequential") {
            // start at 0, increment to total number of images, then drop back to zero when done
            if (p==undefined || p==data.length && _global.looping=="yes") { p=0; } else { break; }
            loadImages(data,p);
            p++;
        } else {
            trace ("order attribute in xml isn't correct - must specify either 'random' or 'sequential'");
        clearInterval(timerInterval);
    stop();

    It doesn't look like the xml file matches the code.  While folks here like to help, there's a point where the effort is fairly time consuming and it becomes doing your design work for you, which is what we normally do for a living.  Your best bet will be to find something that has all of the features you want included in it.  If you are willing to spend a little money, you can probably find one fairly inexpensive that you can tailor to your needs without having to edit the file code at all.
    You can always wait to see if someone else responds.

  • Satellite L500 - How to get FN keys working on Windows 7 64bit?

    Hi
    I needed to reinstall Windows 7 on a Satellite L500 but I can't get the FN keys to work. Would anyone here be able to give any ideas on how to get this to work?
    cas

    Hello
    You need Toshiba Value Added Package and Flash Cards Support Utility. Both you can download here:
    http://eu.computers.toshiba-europe.com > Support & Downloads > Download Drivers
    Use also the forum search, this question was asked 100 times before.

  • How do you remap keys when running windows natively on the macbook?

    I'd like to map the ENTER key on the bottom of the keyboard to the DELETE function so that I will not need to hold down the FN key while pressing the DELETE (backspace) key. Can anyone suggest a way of achieving this?
    Many thanks.

    No replies. Tsk tsk tsk. SHARPKEYS!!! If you need to remap your keys, search for SHARPKEYS in the internet.

  • How to get my 2nd display showing window it was displaying before re-plugin

    When at my desktop, I work with both my notebook display and another one.
    When I unplug the 2nd display (eg: to take my notebook to a meeting) and later plug in it back, I have to drag the windows from notebook display to 2nd display again.
    Do you know an option I should set so windows position are remembered and set again ? It would be very very useful for me !!
    Or should I report a request for enhancement ?...
    Thanks a lot
    Best regards

    I think the problem comes when you remove the second display, you shrink the extended desktop back to its one-display size. I expect that is similar to what would happen if you changed the resolution on one display alone to something really small, like 640 by 480.
    The Mac OS does not want to leave windows in an area that is off the desktop, because they would be completely inaccessible. So it moves them back to the nearest edge of the redefined desktop. I think this is the same phenomenon that leaves the OS 9 Trash can floating in mid screen (rather than near the bottom right) after a screen resolution change.
    This sounds like a classic unsolved problem.

  • How to pop up "save" and "open" window - Help with construct xml

    In my report there is a column link which is pointing to another HTML page that has xml data displayed in a textarea field. So when user clicks on the column link, he gets to directed to the page that have the xml data in text format.
    My question is, how can i make the xml data display as a file, so when the user clicks on the column link, a window with "save" and "open" will pop up so the user can save the xml data as a file?
    Has anyone done something similar like this? any help is appreciated!
    Regards,
    gina
    Message was edited by:
    gina

    Thank you Tine, I tried to use the 'Export XML' report template and tried to do the following query:
    SELECT XMLElement("oai_dc:dc",
    XMLAttributes('http://www.openarchives.org/OAI/2.0/oai_dc/' AS "xmlns:oai_dc",
                        'http://purl.org/dc/elements/1.1/' AS "xmlns:dc",
    'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi",
    'http://www.loc.gov/mods/v3' AS "xmlns:mods"
    XMLForest(
    dctitle AS "dc:title",
    dccreator AS "dc:creator",
    dcsubject AS "dc:subject",
    dcdescription AS "dc:description",
    dccontributor AS "dc:contributor",
    dcdiscovery AS "dc:discovery",
    dctype AS "dc:type",
    dcformat AS "dc:format",
    LOWER('ksl:posters-' || dcidentifier) AS "dc:identifier",
    dcsource AS "dc:source",
    dclanguage AS "dc:language",
    dcrelation AS "dc:relation",
    dccoverage AS "dc:coverage",
    dcrights AS "dc:rights")) AS "RESULT"
    FROM table_name
    and here is what returned in the “save as" file:
    <?xml version="1.0" encoding="utf-8" ?>
    - <XMLREPORTREGION>
    - <ROW ROWNUM="1">
    <RESULT>[datatype]</RESULT>
    </ROW>
    </XMLREPORTREGION>
    How can i construct the query so that it returns the data in xml format like the following?:
    oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
    <dc:title>Rose</dc:title>
    <dc:creator>Smith Black</dc:creator>
    <dc:contributor>Smith Black</dc:contributor>
    <dc:type>Stencil</dc:type>
    <dc:format>image/tiff</dc:format>
    <dc:format>image/jp2</dc:format>
    <dc:description>13 3/4" X 9 1/2"</dc:description>
    <dc:relation>Some collection</dc:relation>
    <dc:date>1987</dc:date>
    <dc:subject type="LCSH">Art Project</dc:subject>
    <dc:subject type="LCSH">........</dc:subject>
    <dc:subject type="LCSH">.........</dc:subject>
    <dc:language>eng</dc:language>
    <dc:rights>......<dc:rights>
    <dc:identifier>.....</dc:identifier>
    </oai_dc:dc>
    I don't know much about xml, any help would be really appreciated.
    Thanks,
    gina
    Message was edited by:
    gina

  • How can I call a pop up window from a java class ?

    Hi,
    I am developing a web app. I would like to call a windoz pop up from a java class.
    How can i do that ?
    Thanks

    user504072 wrote:
    It was possible to do it in ASP .NET even from the server side with the method Page.ClientScript. What do you think what Page.ClientScript stands for?
    I's an encapsulation for the JavaScript code required and hides the separation between frontend and backend. There was a reason why so many developers stick to the MVC-pattern wich ist violated here.
    I did not know it is not possible to do the same thing in Java.I'ts not a task of the backend to layout the user interaction GUI.
    bye
    TPD

  • How to open pdf document in other window by using java script

    Hello All,
    I am working in R12 Application.
    My jdeveloper version is 10.1.3.3.0.3
    I want to open pdf document in other window on clicking the button
    for that i have written following code in process request of the controller:
    pageContext.putJavaScriptFunction("doFilterSwitch", "function doFilterSwitch(){window.open('/t01/oracle/TEST/inst/apps/TEST_appsdev2/logs/appl/conc/out/545042.pdf'); }");
    OAButtonBean moHelp =(OAButtonBean)webBean.findChildRecursive("Download");
    moHelp.setOnClick("doFilterSwitch()");
    but when i hit download button it gives me the below error:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    What you can try:
    Retype the address.
    Go back to the previous page.
    Go to and look for the information you want.
    More information
    please help me out
    Regards,
    sheetal

    Instead of giving the link in Process form request, give the link directly in Destination URI property of the button and in target property write _blank.
    Note : use normal button not submit button

  • How to disable Tools, Options menu in Disc 4i Plus java applet

    Discoverer 4i Plus 4.1.37.01.0
    I have a single username that will be shared by a group of people pulling reports out of Discoverer 4i Plus web page.
    Is there any way to disable the Tools, Options menu in the web java applet so that users can't change the user preferences
    in these tabs. I am using a pref.txt file, but any user that changes the user preferences thru above menu changes the setting
    for everyone using that username to access the reports. Even when I bounce the prefs and disc processes, the user-changed
    values are still there from when that user made the changes in the java applet.
    Discoverer Viewer is not an option because the users have to pass in parameters before their query executes (no single
    canned reports for everyone in use).
    Thanks for any help..
    Kate

    You can use the BetterTouchTool to reassign the green traffic light pre-Yosemite behavior:
    Select "Other" category at the top of the window.
    Make sure that "Global" is selected at the left side.
    Click "Configure New Trigger" button in the bottom part of the window.
    Select "Leftclick Green Window Button" as trigger.
    Select "Zoom Window Below Cursor" as predefined action.

  • Blocking system keys

    I'm develpoing with NetBens4.1 / Windows CE 3.0 / JeodeJVM 1.2.
    I'd solved the Runtime.exec() lack in that JVM implementation by JNI calls to DLL's developed with Microsoft EVC++3.
    Somebody have's an C++ example on how to block system keys like CTRL+ESC, ALT+TAB in Windows CE ?
    Registry settings would help to...

    Found out.
    The taskbar get's the ALT+TAB and the CTRL+ESC events, so just disabling it locks these keys. Heres the JNI code:
    SysLib.cpp
    JNIEXPORT jint JNICALL Java_sys_SysLib_HideTaskBar
    (JNIEnv *env, jclass obj) {
    HWND hTaskBarWnd;
    HWND hDeskTopWnd;
    int rc=1;
    // find the window and hide
    hTaskBarWnd=FindWindow(_T("HHTaskBar"),NULL);
    if (hTaskBarWnd)
    EnableWindow(hTaskBarWnd,FALSE);
    ShowWindow(hTaskBarWnd,SW_HIDE);
    else
    rc= -1;
    // find the desktop window and resize it
    hDeskTopWnd=FindWindow(_T("DesktopExplorerWindow"),NULL);
    if (hDeskTopWnd)
    SetWindowPos(hDeskTopWnd,NULL,0,0,GetSystemMetrics(SM_CXSCREEN),
    GetSystemMetrics(SM_CYSCREEN), SWP_NOACTIVATE | SWP_NOZORDER |
    SWP_NOMOVE);
    else
    rc= -2;
    return rc;
    JNIEXPORT jint JNICALL Java_sys_SysLib_ShowTaskBar
    (JNIEnv *env, jclass obj) {
    HWND hTaskBarWnd;
    HWND hDeskTopWnd;
    int rc=1;
    // find the window and show it
    hTaskBarWnd=FindWindow(_T("HHTaskBar"),NULL);
    if (hTaskBarWnd)
    EnableWindow(hTaskBarWnd,TRUE);
    ShowWindow(hTaskBarWnd,SW_SHOW );
    else
    rc=-1;
    // find the desktop window and resize it
    hDeskTopWnd=FindWindow(_T("DesktopExplorerWindow"),NULL);
    if (hDeskTopWnd)
    SetWindowPos(hDeskTopWnd,NULL,0,0,GetSystemMetrics(SM_CXSCREEN),
    GetSystemMetrics(SM_CYSCREEN)-26, SWP_NOACTIVATE | SWP_NOZORDER |
    SWP_NOMOVE);
    // Note: 26 is the taskbar height it should be computed.
    else
    rc=-2;
    return rc;
    }

Maybe you are looking for

  • Crystal Reports for Eclipse ver. 2 fails on export to excel

    I have downloaded crystal reports for eclipse version 2 (full eclipse setup) and created the sample project. The new version of JRC looks awesome on the browser. Finally the visual appeal is as good as the .NET version. However I am having a problem

  • Setting page breaks...how?

    I am new to numbers... How do you set a page break? In print view, I would expect to simply drag the lines that represent the page breaks to in between the columns where I want the break, but that does not work. I have a spread sheet that is 1 page t

  • Difference betyween stock 6600 and 7800 Quad graphic cards

    Ref: getting ready to buy a Quad PM. I'm hearing that the 7800 vs. 6600 improves (reduces) rendering time. I'd like to get some kind of metric that I can use to justify or not to buy the 7800 card rather than stock. The +$350 for the 7800 isn't small

  • Color correction like in Aperture

    Hi Im using Aperture for my photos, and there is a nice preset in Adjustment -> Presets -> Quick fix, which makes the color correction for us. Is there such option in FCP X ? Im not good in color correction so i would like to use feature like this. T

  • ITunes U won't upload new posts

    I'm getting notifications from ITunes U of new uploads my teachers have posted but when I open the app to find the new posts hey are no where to be found like they were never uploaded. My classmates can view their posts. This just started happening t