Browser window focus behaviour

Hey all, I am not sure if this is the most correct form for this, so feel free to let me know if there is a more appropiate one....
Within my organization, Sun Java is really causing a lot of frustration with how some of our web pages are working. The scenario is this...
1) user views details regarding a specific issue on a web page
2) user enters some data in textbox and then clicks button to email someone else
3) pop-up is displayed for the user to enter data for email
4) original page 'reloads' itself, which Sun Java then seems to cause it to steal focus again.
5) user thinks email window is gone, even though it has only moved behind original window.
Sometimes it takes a couple of seconds for the original window to steal the focus back, it there is a lot of data to display, so the user could already be typing in things, and then have a different window take focus.
We need to maintain some sort of 'reload' on the original page, in case any data changed on the page before the user clicked on the 'email' button, or other buttons, etc.
Our users are VERY annoyed by this. If we turn off Sun Java and use the MS jvm, it works fine. For some web apps, we need Sun Java though.
Users are on a variety of Sun Java versions, 1.41 to 1.5. at the least.
Any ideas on how I can change this behaviour?
Thanks,
Craig

I think that that's just the nature of the food-chain. It works much the same way that the browser's document window loses its ability to trap an event if that very same event is being trapped by an applet contained in the browser's window. I suspect that while you cannot programmatically give focus to the terminal emulation panel, it is possible for the user to click and give focus to the panel. What you might want to do is to create a popup that doesn't require a user's response.
V.V.

Similar Messages

  • Browser window focus

    Can anybody think of a reason why doing a requestFocus on a JPanel-subclass terminal emulation panel in an Applet would fail to get the keyboard focus back to the emulation panel, much less bring the browser window back to the front? The emulation panel in question handles all of its own keyboard and mouse input, and this is occurring after a non-modal JDialog (which I very specifically do NOT want to give focus to) is popped up with the Swing default owner frame as its owner. (The whole point of popping up a non-modal dialog, and immediately taking the focus away from it, is to provide a convenient, movable, top-level container, without wasting valuable title-bar space on minimize or maximize buttons, in which to display an image.)

    I think that that's just the nature of the food-chain. It works much the same way that the browser's document window loses its ability to trap an event if that very same event is being trapped by an applet contained in the browser's window. I suspect that while you cannot programmatically give focus to the terminal emulation panel, it is possible for the user to click and give focus to the panel. What you might want to do is to create a popup that doesn't require a user's response.
    V.V.

  • Window with applet tag gains focus prior to new window browser window

    setup a :
    1. sample index.html page:
    <HTML>
    <HEAD>
    <script>
    var _load=function(){window.open('test.html');};
    window.attachEvent("onload", _load);
    </script>
    </HEAD>
    <BODY>
    <applet code=Index name=Index width=1 height=1 align=baseline>
    </BODY>
    </HTML>
    2. and child test.html window of the above (opened during onload event)
    <HTML>
    <HEAD>
    <TITLE>1</TITLE>
    <script>
    var _load=function(){window.focus();};
    window.attachEvent("onload", _load);
    </script>
    </HEAD>
    <BODY>
    TEST PAGE
    </BODY>
    </HTML>
    when a test.html page is opened focus is temporarily shifted back to the index.html page and
    only later back to the test.html page (window.focus()) call in that page sets the focus, not always
    suceeds, a further code is required to do a retry)
    when the applet is removed from the index.html page, problem goes away, it is if the applet tag
    has priority in terms of window focus
    byproduct of this is also annoying flicker, (while the focus is shifted between index.html and test.html page)
    this problem is only happening with SUN JVM (and I dont know if its a defect or by design)
    SUN JVM tested:
    Java(TM) Plug-in: Version 1.4.2_03
    Using JRE version 1.4.2_03 Java HotSpot(TM) Client VM
    suggestions, workarounds? appreciate in advance

    tested following matrix of browser/VM
    Platform Result:
    MS IE and Microsoft (R) VM for Java, 5.0 Release 5.0.0.3810 (with success, no focus problems)
    MS IE and Java(TM) Plug-in: Version 1.4.2_03 (focus problems, in the case of
    two applets one coded on the
    main page the other on the pop-
    up window)
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
    Plug-in: Version 1.4.2_03 Using JRE version 1.4.2_03 Java HotSpot(TM) Client VM
    (focus problems, in the case of one applet on
    the main page or in the case of two applets
    one coded on the main page the other on the
    pop-up window)
    Please see revised test case source code (to support above configurations, as well inclusion of the second
    applet to address discrepency in behaviour between Mozilla and IE (with SUN JVM)
    <HTML>
    <HEAD>
    <script>
    String.prototype.contains=function(s){return(this.toLowerCase().indexOf(s.toLowerCase())!=-1);};
    var u_n=navigator;
    var u_agt=u_n.userAgent.toLowerCase();
    var u_MSIE=(u_agt.contains("msie"));
    var _load=function(){window.open('test.html');};
    if (u_MSIE)
    window.attachEvent("onload", _load);
    else
    window.addEventListener("load", _load, false);
    </script>
    </HEAD>
    <BODY>
    <applet code=Index name=Index width=1 height=1 align=baseline>
    </BODY>
    </HTML>
    <HTML>
    <HEAD>
    <TITLE>1</TITLE>
    <script>
    String.prototype.contains=function(s){return(this.toLowerCase().indexOf(s.toLowerCase())!=-1);};
    var u_n=navigator;
    var u_agt=u_n.userAgent.toLowerCase();
    var u_MSIE=(u_agt.contains("msie"));
    var _load=function(){window.focus();};
    if (u_MSIE)
    window.attachEvent("onload", _load);
    else
    window.addEventListener("load", _load, false);
    </script>
    </HEAD>
    <BODY>
    TEST PAGE
    <applet code=Test name=Test width=1 height=1 align=baseline>
    </BODY>
    </HTML>
    Index.java source code:
    public class Index extends Applet {
    public synchronized void init() {
    public synchronized void start() {
    public synchronized void stop(){
    public synchronized void destroy(){
    Test.java source code:
    public class Test extends Applet {
    public synchronized void init() {
    public synchronized void start() {
    public synchronized void stop(){
    public synchronized void destroy(){

  • Using web.show_document the first time makes new browser window lose focus

    Hi,
    In our application we use show_document(url, '_blank') to open our reports (as pdf) in a new window.
    Our environment is Application Server 10g Release 2 with Forms 10g Release 2 and jinitiator 1.3.1.22.
    The first time I call a report, the new browser window containing the pdf is shown but loses focus after about 1 second. The focus is then returned to the applet window. When calling a report again it always keeps the focus.
    After closing the applet window and restarting the application, the same thing happens: first report called loses focus, all others keep the focus.
    Does anyone have any idea why this is happening? We want the focus to stay on the new browser window every time...

    Hi Jeroen,
    I m also facing a problem something similar to yours. If you got any solution please let me know.
    Problem-
    Currently my application is running on Forms 9.0.4.2 and my form calls another third party which displays the image in image viewer in new browser. When user clicks on the button to display image, then I m using the following Code -
    -- Method: displayDocuments ([Ljava/lang/String;)Ljava/lang/String;
    FUNCTION displayDocuments(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JARRAY) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'com/hli/imaging/adapter/LK_FormsImagingAdapter', 'displayDocuments', '([Ljava/lang/String;)Ljava/lang/String;', args);
    END;
    Image is displaying fine but the focus is staying on the newly opened browser. I want it to get back the focus to the forms window.Is this possible ???
    Thanks in advance
    Sai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Giving Stage Focus When First Opening In Browser Window - How??

    Is there any reliable way to give the stage focus when you first open it in a browser window WITHOUT first clicking on the stage? By reliable, I mean something that works across different browsers and on both PCs and Macs.
    I've seen numerous threads on this subject, and I've read the Adobe tech note, and it seems there is no reliable way. This is a joke, right???? How in the world can Adobe ask people to use Flash and not provide a reliable way to give the stage focus on startup. Requiring the user to click on the stage first is totally stupid.
    Has this problem been solved since all the other threads were posted, and if so, what's the solution?
    Thanks.

    for online swfs, it's a security issue and there's no reliable way to do it.  for local files, it's straight-forward.

  • Open Browser Window Behaviour

    Hi,
    I want a client to be able to attach pop up window behaviours
    to images on their web page. Is it possible to attach behaviours in
    Contribute ?
    thanks
    Simon

    I successfully opened every single text link that loads the
    songs, and also
    opened every single image link on the right hand side.
    I don't see a problem here on Firefox w/ Windows XP Home SP2.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    "buzzzzzzzz" <[email protected]> wrote in
    message
    news:e20bkm$1uv$[email protected]..
    > Hi........I have an issue with my DWMX open browser
    window behaviour. I
    > have
    > about 10 text links and 5 image links (ahref#) on my
    page using this
    > behaviour.
    > It would seem this intermittently works with each link,
    however it is
    > typical
    > for it work 2 or 3 times, then - nothing. No further
    windows/links will
    > open,
    > the page will stop working (can't even refresh)
    > The code for each image link is:
    > ...... <td width="6%" rowspan="16"
    valign="top"><div align="left"><a
    > href="#"><img src="assets/demoVox.jpg" alt="Renae
    Suttie" width="70"
    > height="84" border="0"
    > onClick="MM_openBrWindow('
    http://www.swingcollective.com/assets/audio/demoVx.htm
    > ','','width=275,height=250')"></a> .......
    >
    > The page is
    http://www.swingcollective.com
    - go to demos page and see.
    > Thanks in advance for any help.
    >
    > DC
    >

  • Behaviour open browser window

    basically what i´m trying to do is to map part
    of an image so when clicking on it a small browser window opens.
    i´ve read the using dremawaver help but.. didn´t help me.
    have googled it but still can´t get it to work. i´m not
    sure exactly what to do, do I save a file first and then give it
    the behaviour? do i link this file to the mapped image? well,
    obviously that´s not the way its done cause it is not
    working...
    if anyone could give me just the steps from the moment i map
    the image to the moment when i press f12 and !voila! a browser
    window opens, I would be more than happy and appreciative. Thanx so
    much in advance.

    plinares wrote:
    >
    basically what i?m trying to do is to map part of an
    image so when
    > clicking on it a small browser window opens. i?ve read
    the using dremawaver
    > help but.. didn?t help me. have googled it but still
    can?t get it to work. i?m
    > not sure exactly what to do, do I save a file first and
    then give it the
    > behaviour? do i link this file to the mapped image?
    well, obviously that?s not
    > the way its done cause it is not working...
    >
    > if anyone could give me just the steps from the moment i
    map the image to the
    > moment when i press f12 and !voila! a browser window
    opens, I would be more
    > than happy and appreciative. Thanx so much in advance.
    >
    select the image-map.
    In the property inspector, in the link box, write
    javascript:;
    Open the behavior panel. Click on the + sign. Select "Open
    Browser Window". follow the steps.
    When you have applied the behavior, look in your behavior
    panel, your behavior should show.
    (note that ALL this time, your image map is still selected)
    Next to the shown behavior, you see the action that triggers
    it; it's a drop-down select menu.
    Select onClick.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Behaviours, open browser window

    hi,
    have an annoying problem using the "open browser window"
    Behaviour. Basically whats happening is that i put up a page of
    photos that i have reduced in size, users then click on a photo
    that they want to see. Using the "open browser window" a new page
    appears with the enlarged photo on it. The problem is this, if
    users scroll down my webpage and select a photo, the new window
    opens no prob but when they return to the original previewing page
    it has returned to the top of the page again. The use then has to
    scroll back down to where they left off! this is very annoying for
    me and them. HOW DO I FIX?
    here is the page im question so you can see for yourself
    http://www.vas-ni.com/spares%20gallery.html
    i am using Dreamweaver 8. I create hotspots then assign
    behaviours to them..
    thanks

    Change this -
    <area shape="rect" coords="3,3,101,76" href="#"
    onclick="MM_openBrWindow('web
    pages/15.html','','width=400,height=300')" />
    to this -
    <area shape="rect" coords="3,3,101,76" href="#"
    onclick="MM_openBrWindow('web
    pages/15.html','','width=400,height=300');return false;"
    />
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ncaskey" <[email protected]> wrote in
    message
    news:e3t6n0$5fo$[email protected]..
    > hi,
    >
    > have an annoying problem using the "open browser window"
    Behaviour.
    > Basically
    > whats happening is that i put up a page of photos that i
    have reduced in
    > size,
    > users then click on a photo that they want to see. Using
    the "open
    > browser
    > window" a new page appears with the enlarged photo on
    it. The problem is
    > this,
    > if users scroll down my webpage and select a photo, the
    new window opens
    > no
    > prob but when they return to the original previewing
    page it has returned
    > to
    > the top of the page again. The use then has to scroll
    back down to where
    > they
    > left off! this is very annoying for me and them. HOW DO
    I FIX?
    >
    > here is the page im question so you can see for yourself
    >
    http://www.vas-ni.com/spares%20gallery.html
    >
    > i am using Dreamweaver 8. I create hotspots then assign
    behaviours to
    > them..
    >
    > thanks
    >
    >

  • Open Browser Window behaviour - no centering option

    Hi everyone,
    I used the Open Browser Window behaviour in Dreamweaver to
    open up a small browser window when a link is clicked, but the
    behaviour doesn't provide an option to position the window in the
    centre of the screen. Does anyone know if there's another behaviour
    that provides this option, or how to edit the javascript to get it
    to work?
    The code that Dreamweaver generated is below.
    Thanks for any help offered.

    DW doesn't offer this in any built-in function. You can
    manually hack the
    code inserted to produce that effect (you would have to
    Google to find the
    necessary changes), or you can use a 3rd party extension to
    do that and much
    more. I routinely use DivaPOP for things like this -
    http://www.divahtml.com
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "gwhPoster" <[email protected]> wrote in
    message
    news:g1gjr7$hri$[email protected]..
    > Hi everyone,
    >
    > I used the Open Browser Window behaviour in Dreamweaver
    to open up a small
    > browser window when a link is clicked, but the behaviour
    doesn't provide
    > an
    > option to position the window in the centre of the
    screen. Does anyone
    > know if
    > there's another behaviour that provides this option, or
    how to edit the
    > javascript to get it to work?
    >
    > The code that Dreamweaver generated is below.
    >
    > Thanks for any help offered.
    >
    >
    >
    > <script type="text/JavaScript">
    > <!--
    > function MM_openBrWindow(theURL,winName,features) {
    //v2.0
    > window.open(theURL,winName,features);
    > }
    > //-->
    > </script>
    >
    > p>Text here. Text here. Text here. <a href="#"
    >
    onclick="MM_openBrWindow('offers.php','SpecialOffer','width=400,height=200')"
    > style="text-decoration:none; color: #634A95;
    font-weight:
    > bold;">More...</a></p>
    >

  • Browser window gains focus :-(

    Hello,
    I am starting an applet... this applet loads data from the server, which is came from. After its gets the data it visualize a JFrame... so no JApplet window appears in the browser window... the JFrame is the actually user window....
    Under Mac OS X it runs fine... but under Windows XP SP2, Firefox, IE 6, Java 5 latest I do have the problem, that the browser window, which the applet loads comes in foreground when the JFrame is set to visible.... I have to click on the JFrame to use it...
    has anybody an idea how I can give the focus the JFrame and not the browser window under windows? That would be nice....
    Thanks guys.

    Maybe toFront()? Saw it in the API, it looks appropriate, but I haven't tried it myself.

  • Window size will not change in open browser window behaviours

    Despite changing the sizes of the window in the edit function of
    edit open browser window it always opens up as one big page.
    My code is
    <p><a href="popup.html"><img src="../Existing business1.jpg" alt="existing1" name="services" width="359" height="283" id="services" longdesc="http://Hr existing" onclick="MM_openBrWindow('popup.html','popup','width=430,height=300')" /></a></p>
    Can anyone help?
    Thanks

    Which browser(s) are you testing?
    Have you got a URL to your test pages yet?  That's the best way to get help.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Open browser window behaviour help

    hi guys first just want to thank you all found loads of help
    on this site !!!
    i am getting stuck in to my first real development, played
    around before using dreamweaver 8 etc i have learned a bit of code
    (html php mysql) played in flash but still limited as im still
    learning but found it works best for me to get stuck in!!!
    on my website i have a catalog page that i designed to open
    in a new window behavior when the link is clicked from the menu
    column but as standard the catalog is on the home page. when
    catalog is accessed from the menu column the size is set to W:600
    H:300 on this page i have logo's linking to pages with products
    once a logo is clicked the page it links to opens within the same
    window which is too small is their a way to get the page to
    automatically adjust full screen or do i have to use the open new
    browser window behavior and do it that way?
    hopefully i have explained this so it makes sense !

    There is nothing you can do about that if that is the setting you have
    made for your browser. You may also be looking at this in an emulator
    (Adobe Browser Labs) or a non-standard config, or through a local
    preview, in which cases, things might not work normally.
    It is paramount in the web design business that you not tamper with a
    user's settings.
    For me, in a default installation of IE7, the popups open in their own
    little windows. You are going to have to live with this or deconstruct
    all of your pages and use a modal window script - which pops up what
    looks like a window, but is actually a DIV on the same page. You were
    given links to free sources that require considerable setup or you can
    look at automated Dreamweaver extensions (not free) like this:
    http://www.projectseven.com/products/tools/horizontal-glider/examples/lightshow.htm
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    Since 1998

  • Problem with new firefox tabs and window focus

    Here's a problem that I've had for ages - sometimes it annoys me, other times I can live with it. Right now it's really p***ing me off.  :x
    I have selected 'a new tab in the most recent window' under FF's Preferences->Tabs->Open links from other applications in:, so as an example, if I click on a URL in a mail in Thunderbird, Firefox opens it in a new tab. However, window focus stays on Thunderbird. I run both of them full screen, so although I'm looking at the web page in Firefox, anything I do on the keyboards affects Thunderbird. It affects URLs opened from other apps too e.g. if I open a terminal and do
    firefox www.archlinux.org
    focus stays on the terminal window. The only exception is when firefox is not already running - in that case, firefox launches with focus.
    DE is xfce4, and the system is completely up to date.
    I've done some googling, and AFAICS, nobody else seems to have this problem. Any ideas, anyone?
    TIA.

    Thanks MAC!EK - definitely a useful add-on, but it still doesn't solve my problem. In Tab Mix Plus Options, I have the following selected:
    Links -> Open links from other applications in: New tab
    Events-> Tab Focus -> Focus/Select tabs  that open from: <all>
    However, the behaviour is as before i.e. I click a URL in Thunderbird, it opens in a new tab in Firefox, but window focus stays on Thunderbird. Within Firefox, the newly-opened tab is selected or focussed, but Firefox itself is not.
    Anyway, thanks again. I think I need to keep looking.

  • New browser window

    I would like my application (which is built with adf uix) allows the user to open a new browser window when he needs.
    Unfortunately this functionality creates some problems.
    1)     I set and get some sessionScope attributes to manage some behaviour of the program. When I open a new browser window if I set a sessionScope attribute (e.g. ‘sessionScope.attr1’) with a value while working in this window then I will read this value also in the other browser window, and this is a problem for me.
    2)     In one page I display the values of the current row of a view object. The current row is set with some operation. If the user opens a new browser window and performs this operation he will set a new current row in the view object, so in the other browser window he will see the data of the wrong current row.
    Is there a solution to this problems or should I force the user to work with only one browser window?
    Could it be a solution to ‘force the creation of a new session’ when a new browser window is opened? And if this is a solution, how to do this?
    Please help.
    Thanks, Mauro

    repost

  • Open .swf in full-screen browser window?

    Hi there! I would appreciate if someone could help me with this:
    I have a .swf that I embed in an .html file. When loaded, the html file opens up in a window with the application taking up only 50% of the window. I'd like to have the application open in a window that's full screen. Is that possible at all?
    The .html file I'm using is a standard one generated by Captivate and looks like this:
    <!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->
    <!-- saved from url=(0013)about:internet -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Title</title>
    <script src="standard.js" type="text/javascript"></script>
    </head>
    <body   bgcolor="#ffffff">
    <center>
        <div id="CaptivateContent"> </div>
        <script type="text/javascript">
           var so = new SWFObject("myfile.swf", "Captivate", "891", "551", "10", "#ffffff");
            so.addParam("quality", "high");
            so.addParam("name", "Captivate");
            so.addParam("id", "Captivate");
            so.addParam("wmode", "window");
            so.addParam("bgcolor","#ffffff");
            so.addParam("menu", "false");
            so.addVariable("variable1", "value1");
            so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
            so.write("CaptivateContent");
        </script>
        <script type="text/javascript">
            document.getElementById('Captivate').focus();
            document.Captivate.focus();
        </script>
    </center>
    </body>
    </html>

    Hi,
    What do mean by browser window?
    If you mean the File>Open dialog, double click on the Title bar to get it back to a smaller size.

Maybe you are looking for

  • E52 can't use non-US characters in sent messages w...

    This is the most frustrating limitation in the new Nokia Messaging 2.0. I upgraded from E60 because I wanted the new email and messaging, only to find that together with the improvements (like using other folders besides the Inbox), Nokia "blessed" u

  • Oddball fix

    hi i tried the bulletsandbones oddball fix for a problem and had no difficulty with repairing permissions, but was unable to locate the garageband preference files to delete them. the FAQ gives directions for S X 5 and older, and i have 10.6.2. is th

  • I need help finding a good project management/ scheduling software

    hi... i am a supervisor for a multimedia studio and i am looking for a software that is compatable and runs smooth with mac osX to track production artists schedules, track multipule projects in real time, record data info for each project (with a mi

  • Transparency and masks???

    how do i erase lower layers seen through the transparent areas of an upper layer - i only want to mask or hide or erase the areas of a lower layer seen through the transparent areas of an upper layer.  sorry if this is easy - i'm a bit of a newbie. 

  • How can I open a movie in CS5?

    I'm trying to make an animated gif.  I've tried several ways, but with no results.  If I drag the .mov file to the CS5 app, I get the message:  "Could not complete your request because Photoshopdoes not recognize this type of file." If I try to open