How to bring the browser window from background/minimized to on top of all windows in Flex

Hi I have the requireemnt where based on some condition I am opening a JSP in a new window  by calling
navigateToURL(myFormData, _MYWINDOW);
Calling this will open a new browser window. My requirement is when the new window if  minimized or behind other windows, how can I bring this window(MYWINDOW) infront of all the windows using JavaScript in Flex.
In which file under html-template do I have to write my JavaScript function.
Any help on how to call JS from Flex and handling in JS is  very much appreciated.
Someone please share with me if there is any sample code. Thanks in advance

hi
to communicate with javascript, use ExternalInterface (see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html for an example)
you can add your JS directly to the index.template file or create a separate JS file and add the link
not sure what JS you would use to bring window to front but i am guessing there is something...

Similar Messages

  • I need to know how to expand the browser window so it fills my laptop screen

    i need to know how to expand the browser window so it fills my laptop screen this isnt  about the + or - tabs

    have a look at the top left of your browser window that looks like two arrows pointing up and down in a slant, click it and it will put your browser in full screen mode...

  • How to maximise the browser window in Forms 9i?

    I want to maximise the MDI window in an Oracle 9i Form. Many posts here say to use:
    Set_Window_Property(Forms_MDI_Window,Window_State,Maximize);
    but it doesn't work for me. Some posts suggest there is a bug that prevents it from working. If this is the case, is there some javascript I can run to do this for me? I am already using javascript to close the browser window when I am finished with the form, so a little more wouldn't hurt.
    thx
    adam

    When you are running inside the browser, you have no MDI window to maximize. (But there is a frame size that is set on the URL line or in the config file, which cannot be changed from the form).
    <p>When running SeparateFrame=True, you have an MDI window, and if you issue the maximize, Forms will set it to cover the full screen, but it will NOT be maximized.
    <p>And if you use get_window_property, it will always report window_state=normal, even if the user maximizes the window.
    <p>See MDI Window State in web forms

  • How to open the browser window of the user to the size of the webpage ?

    Hello,
    My webpages are 1000 x 600 pixels, and I would like the browser window of any user opens in that size for he can see the website as I want to. Is it possible ? I guess it is because the pop-up windows of a "photo page" open to the size of the pictures (when you click on the miniature pictures), so iWeb should have this possibility.
    Can you help ?
    Thank you very much.
    Julien

    Here are some basic instructions for making html changes after publishing in iWeb:
    1. Publish your site via iWeb
    2. Find your html files.
    Go to iDisk/Web/Sites/iWeb/Sitename/Pagename.html
    (If you publish to a folder, look in the folder you selected or try looking in your Sites folder of your home folder. )
    There are two ways to handle accessing your iDisk.
    Method 1:
    Turn on local copy of your iDisk in System Prefs, with or without automatic syncing.
    If you publish your site via iWeb, now the updated pages exist online but the old pages are on your local iDisk. You need to sync (automatically or manually) to get the new pages on your local iDisk (on your computer).
    Then you can open the updated files, make your html changes in Text Edit or whatever program, and SYNC AGAIN (automatically or manually) to update the online version of the site to match what you have just changed on your local iDisk
    Method 2:
    Mount the iDisk when needed via the "Go" menu in Finder. This is the ONLINE VERSION of your iDisk, not a local copy. When you publish your site via iWeb, the changes INSTANTLY appear on the iDisk on your desktop. If you make html edits or other changes, they appear INSTANTLY online.
    I recommend Method 2 - much easier!!!
    3. Make the html changes.
    You can open the html files generated by iWeb in any text or html editor. In TextEdit, to view the code in an HTML file, choose File > Open and select "Ignore rich text commands." Then locate the .html file (as described in step 2) and click Open.
    Make your changes (i.e. follow the directions on the link provided by James - it worked for me when I entered that page, so the 2000 suggestion still works!) and don't forget to save your changes (not Save As, just Save)!!!
    4. Remember, if you make a change to a page like this post-publishing, and later re-publish, you have to make the html changes again! Set up a Find/Replace command in MassReplaceIt and you can do this very quickly. You can save your queries so you can make all of your changes with one click the next time you save.
    Download here:
    http://www.hexmonkeysoftware.com

  • How to bring the new window in front of old window

    Hi everyone,
    Here is what I have:
    there is a hyperlink on Page1.jsp, which opens another page Page2.jsp through onclick=
    window.open('./faces/Page2.jsp','mywindow','width=500','height=600');
    However, after Page2.jsp is opened in a new window, it is always behind the old window with Page1.jsp. That is, Page1.jsp always gets the focus. I have to click Page2.jsp at windows' bottom bar in order to bring it up.
    How to set Page2.jsp window in front of Page1.jsp window as default?
    Thanks in advance,

    it should have the focus
    jsut tried your code and my browser keeps focused on the other window
    i would be looking elsewhere for your problem
    maybe in your browsers setup?

  • Since upgrading to 9.01, FF starts up with previous tabs open. Hovering over the FF icon in the Windows Task Bar shows the thumbnails of the pages. But clicking any of the thumbnails to bring the browser window up fail.

    I can right click the FF icon in the task bar and click Open New Window, and a new blank window appears, but none of the existing tabs will open.

    I can right click the FF icon in the task bar and click Open New Window, and a new blank window appears, but none of the existing tabs will open.

  • Closing the browser window in the runtime

    Hi all,
    How to close the browser window at the runtime?
    It should be based on the button click....

    With the JavaScript function window.close().
    See e.g. here an example and a remark on its usage:
    http://www.javascript-coder.com/window-popup/javascript-window-close.phtml
    Jan Kettenis

  • How would I get the Body element background to open at  the scale of the browser window

    How would I get the Body element background to open at  the scale of the browser window? I hear that by using an HTML tag or CSS rule I could scale a background that is placed in the body element without using javascript is this true? 

    The most reliable solution is to use small image slices or tiles and repeat them down and across the page or container division.
    CSS EXAMPLE:
    body {
         background: url(your_image.jpg) repeat;
    More on background images:
    http://alt-web.com/Backgrounds.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How do I stop text from resizing to the size of the browser window

    Hello there,
    I am using a DW CS3 template that has a sidebar div and a
    main content div - the text in the main content div keeps resizing
    to the size of the browser window - I don't want the text to resize
    if I make the browser window smaller - I want it to remain the
    same. I am trying to float the text right and input a width but
    this is not working for me. What am I doing wrong?
    HELP!
    Many thanks!

    >>What am I doing wrong?
    Not giving us a link to the uploaded page so we can see the
    page, how it
    behaves and the actual code.
    Until we see that you are unlikely to get a definitive
    answer. The problem
    is unlikely as you state it because text itself is never
    dependant on the
    browser viewport size.
    Walt
    "Fun Leprechaun" <[email protected]> wrote
    in message
    news:g9f7rq$ie4$[email protected]..
    > Hello there,
    >
    > I am using a DW CS3 template that has a sidebar div and
    a main content
    > div -
    > the text in the main content div keeps resizing to the
    size of the browser
    > window - I don't want the text to resize if I make the
    browser window
    > smaller -
    > I want it to remain the same. I am trying to float the
    text right and
    > input a
    > width but this is not working for me. What am I doing
    wrong?
    >
    > HELP!
    >
    > Many thanks!
    >

  • How can you stop slideshow from resizing the browser window iframe ?

    Does anyone know where the code is that causes the iweb slideshow to resize the browser window when it is opened?
    When it is placed on a page using <iframe src="http://homepage.mac.com/coreydee/slideshow/index.html" width="760" height="580" scrolling="no" style="border:none;" frameborder="0"></iframe> It resizes the browser window when it starts.

    Does anyone know where the code is that causes the
    iweb slideshow to resize the browser window when it
    is opened?
    When it is placed on a page using <iframe
    src="http://homepage.mac.com/coreydee/slideshow/index.
    html" width="760" height="580" scrolling="no"
    style="border:none;" frameborder="0"></iframe> It
    resizes the browser window when it starts.
    The iWeb .Mac slideshow, which you previously tried to add in an iframe, does have a function to resize the window. But it would not cause the whole window to resize, just page within the iframe so you would never know.
    However, the autoviewer one you are using should not do this.

  • How can I keep the browser window stretched across my two displays?

    I run am trying to run dual monitor setup and have the Firefox browser span the two monitors. Whenever a Firefox dialog opens, such as Preferences or Print, the window zooms to fit the one primary monitor. How can I keep the browser window stretched across my two displays?

    Thanks very much for your response to my question -very helpful.
    Do you have any recommendations for a good book on Edge Animate?
    Thanks,
    Shaun
    Date: Thu, 25 Oct 2012 17:10:43 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I change the browser window background color when playing an Edge animation?
        Re: How can I change the browser window background color when playing an Edge animation?
        created by heathrowe in Edge Animate - View the full discussion
    ADD this to compositionReady handler, change the hex color code to your desired color //Force body of webpage to a specific color$("body").css("background-color","#5d5e61"); Darrell
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4801409#4801409
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4801409#4801409
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4801409#4801409. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Edge Animate by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do i get my navbar to stay on one line when the browser window is minimized?

    I am new to coding and have just created my first website in html and css.  I know that the coding is pretty dire and that I have a lot to learn and hope that someone can guide me in how to solve this problem.  When the browser window is minimized, the navbar breaks down into 2 or 3 lines but I want the navbar to fit to the window whatever the size of the client machine.
    I think I need to add a media query but i'm not sure if i do and if so what code to use and where to put it?
    I am worried that the page will only be viewable properly on a desktop and i really want to learn how to make a fluid layout which can be viewed on 320px, 768px and 1200px.
    Any guidance would be greatly appreciated.
    Here is my code:
    HTML
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>The Engineer's Corset</title>
    <link href="styles/style.css" rel="stylesheet" type="text/css" media="screen">
    <style type="text/css">
    body {
        background-color: #000;
    </style>
    </head>
    <body>
    <div id="container">
    <div id="navbar">
        <ul id="nav">
        <li><span class="current-menu-item">Home</span></li>
        <li><a href="about.html">About Us</a></li>
        <li><a href="workshops.html">Workshops</a></li>
        <li><a href="news.html">News</a></li>
        <li><a href="gallery.html">Gallery</a></li>
        <li><a href="contact.html">Contact Us</a></li>
        </ul>
    </div>
    <div id="header">
      <img src="images/final/headerbeauty3.png" width="1100" height="341" alt="The Engineer's Corset">
    </div>
    <div id="links">
    <ul id="link">
    <li><a href="https://www.facebook.com/Bristolengineer" target="_blank"><img src="images/final/fb3.png" width="200" height="45" alt="Follow Us on Facebook"></li>
    <li><a href="https://twitter.com/Engineerscorset" target="_blank"><img src="images/final/twitter2.jpg" width="200" height="45" alt="Follow us on Twitter"></a></li>
    </ul>
    </div>
    <div class="chantry">
    <img src="images/final/CD Logo fin.png" width="240" height="200" alt="Chantry Dance Company">
    </div>
    <div class="about">
      <p> The Engineer's Corset is a new play written by Janet Goddard for performance by the community of Bristol in 2015. <br>  ~ <br>
    The play is based on the extraordinary real-life events of 1843 surrounding Isambard Kingdom Brunel's near-death experience after swallowing a coin.  We travel through time to explore the adventure and horror of Victorian industrialisation. <br> ~ <br> Using a community theatre group The Engineer’s Corset tells a familiar tale of Brunel’s near death experience when he swallows a gold half sovereign. His wife Mary fights to maintain her composure but is ripped apart by the waiting game. Her servants and his workforce, using dance and sound, broaden her horizons. Just like Mary the audience too will see life in the 1840s through a different lens.</p>
    </div>
    <div class="workshops">
    <img src="images/final/bridgebridge.jpg" width="1100" height="713" alt="clifton suspension bridge">
    <span><a href="workshops.html">We will be running a series of workshops prior to production and hope you will join us.  For further information, click here.</a></span>
    </div>
    <div id="sponsorspace"></div>
    <div id="footer"> <p> &copy; Heartprints Web Design 2014 </p> </div>
    </div>
    </body>
    </html>
    CSS
    @charset "utf-8";
    /* CSS Document */
    body {
        font-family:Arial, Helvetica, sans-serif;
        font-size:125%;
    @media screen {
        #navbar:
    #navbar li {
        font: 25px Arial;
        display: inline;
        list-style-type: none;
        background: #09F;
        color: #000;
        border-radius: 20px;
        padding: 15px 25px;
    .current-menu-item {
        color: #0FF;
    #navbar a {
        padding: 15px 25px;
        background-color: #6cf;
        color: #000;
        text-decoration: none;
        border-radius: 20px;
    #navbar a:hover {
        background-color:#0FF;
        color: #000;
        padding: 15px 25px;
    #header {
        width: 1100px;
        height: 340px;
        margin-left: 50px;
        margin-top: 0px;
        margin-bottom: 0px;
        border-style: ridge;
        border-width: 5px;
        border-color:#09F;
    #links li {
        display: inline;
        width: 700px;
        margin-left: 300px;
    .chantry {
        margin-left: 40px;
    .about {
        position: relative;
        width: 860px;
        text-align:center;
        background-color: #CCC;
        color: #000;
        border-style: ridge;
        border-width: 3px;
        border-color:#09F;
        border-radius: 15px;
        float: right;
        margin-top: -200px;
        margin-right: 90px;
    .workshops{
        position:relative;
        width: 1100px;
        height: 713px;
        font-size:24px;
        margin-left: 50px;
        border-style: ridge;
        border-width: 5px;
        border-color:#09F;
        margin-top: 130px;
    .workshops span {
        position: absolute;
        background: #6CF;
        color: #000;
        left: 30px;
        top: 30px;
        right: 800px;
        padding: 15px;
        font: 1em georgia, serif;
        font-style:italic;
        text-align:center;
        border: 5px solid #09F;
        border-radius: 20px;
        margin-top: 35px;
    .workshops span a {
        color: #000;
    #link li {
        border-style: solid;
        border-color: #6CF;
        padding: 30px 10px 5px 10px;
    .info {
        text-align:center;
        width: 1100px;
        margin-top: 50px;
        margin-bottom: 50px;
    .CDC {
        float: left;
        margin-right: 50px;
        margin-left: 45px;
    .workshopinfo {
        height: 250px;
        text-align:center;
        margin-top: 50px;
    .photos {
        Height: 500px;
        text-align:center;
        margin-top: 50px;
    #footer {
        text-align:center;
        margin-top: 700px;
        color:#0CF;
    .brunel {
        margin-top: 50px;
        margin-left: 400px;
    #workshops2{
        width: 1000px;
        border-style: outset;
        border-width: 5px;
        padding: 15px;
        border-color:#09F;
        background-color: #6CF;
        margin-left: 100px;
        text-align:center;
    #workshops2 a {
        color: #000;
    #sponsorspace {
        height:  300px;
        background-color: #6CF;
        border-style: outset;
        border-color: #09f;
        margin-top: 15px;

    Give #navbar a width that is wide enough to hold all of the buttons within it.
    #navbar {
         width:####px;
    Replace #### with a pixel number large enough to hold the nav buttons.

  • How can I close a remote front panel by closing only the browser window?

    I control a remote front panel in a browser (from the client PC). If I don't use the 'close' - button in my program to end the remote front panel, but instead of this the 'x' of the browser window (in the right bottom corner), my program won't be close, it continues on the server. Do you know how to end a VI by closing only the browser windows?
    Thanks for any help!
    wolfe

    I found the examples. Thanks.
    But I could not find a solution yet. Now I know how to end a VI by clicking on the x of the VIwindow.
    My problem is, to end a VI by clicking on the x of the BROWSER window after I loaded and controlled a remote panel VI in a browser (e.g. IE).
    If you have any ideas ... I'd be happy.
    Thanks for your help.

  • How to bring the data from application server to presentation server

    hi,
    i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this  topic.folowing is the code .
    *& Report  ZPFA_HIER_LOAD
    REPORT  ZFPA_HIER_LOAD.
    *---- Declaration of Oracle connectioN
    DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
    DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
    DATA : mfilename type string.
    data: begin of matab1 occurs 0,
          MFL1(9) TYPE C,
          MFL2(5) TYPE C,
          MFL3(9) TYPE C,
          MFL4(2) TYPE C,
          MFL5(8) TYPE C  ,
         end of matab1 .
    data: setid(8) type c.
    data: begin of source occurs 0,
          setid(8) type c,
          end of source.
    *PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
    *PARAMETERS : m_bsenty(8). " type c obligatory.
    *mfilename = P_PFILE.
    EXEC SQL.
      SET CONNECTION :con_name
    ENDEXEC.
    EXEC SQL.
      CONNECT TO :con_name
    ENDEXEC.
    EXEC SQL PERFORMING get_source.
      SELECT set_id FROM UNIT_SET INTO
      :setid
      ORDER BY SET_ID
    ENDEXEC.
    start-of-selection.
    LOOP AT SOURCE.
      REFRESH matab1. CLEAR matab1.
      EXEC SQL PERFORMING evaluate.
    SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
    :MFL5
    where set_id = :SOURCE-SETID ORDER BY MEM_ID
      ENDEXEC.
      if SOURCE-SETID = '80000000'.
       mfilename = '/tmp/aesorg'.
      elseif SOURCE-SETID = '80000006'.
       mfilename = '/tmp/Consolidation_Manager'.
      elseif SOURCE-SETID = '80000010'.
       mfilename = '/tmp/10org'.
      elseif SOURCE-SETID = '80000012'.
       mfilename = '/tmp/20org'.
      elseif SOURCE-SETID = '80000018'.
       mfilename = '/tmp/30org'.
      elseif SOURCE-SETID = '80000025'.
       mfilename = '/tmp/40org'.
      Endif.
      mfilename = '/usr/test.dat'.
    ************************This was i tried***********************
      open dataset mfilename for output in text mode encoding default." IN
    *TEXT MODE ENCODING DEFAULT.
    if sy-subrc <> 0.
    exit.
    endif.
    close dataset mfilename.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME         = MFILENAME
         FILETYPE         = 'ASC'
       TABLES
         data_tab         = matab1
       EXCEPTIONS
         file_write_error = 1
         invalid_type     = 2
         no_authority     = 3
         unknown_error    = 4
         OTHERS           = 10.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
      clear matab1.
    ENDLOOP.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
    close dataset mfilename.
         MFL5 = '0'.
       CLEAR MFL5.
    FORM evaluate.
      if MFL5 = -1.
        MFL5 = ''.
      ENDIF.
      concatenate MFL1 ','   into MFL1.
      concatenate MFL1 ','   into MFL3.
      matab1-MFL1 = MFL1.
      matab1-MFL2 = 'ZBUE,'.
      matab1-MFL3 = MFL3.
      matab1-MFL4 = ' ,'.
      matab1-MFL5 = MFL5.
      append matab1 .
      CLEAR MFL1.
      CLEAR MFL2.
      CLEAR MFL3.
      CLEAR MFL4.
      CLEAR MFL5.
    ENDFORM.
                     "evaluate
    *&      Form  GET_SOURCE
          text
    FORM GET_SOURCE.
      source-setid = setid.
      append source.
      clear source.
    ENDFORM.                    "GET_SOURCE

    Hi Rammohan,
    You cannot use OPEN DATASET to transfer data from application server to presentation server.
    You can do the following :
    <b>Do 1st point in BACKGROUND</b>
    1. Read the data file from application server into an internal table using OPEN DATASET
    <b>Do 2nd point in Foreground</b>
    2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
    You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
    Best regards,
    Prashant

  • How to change/set the browser title from web forms (XP platform with SP2)

    I am running Form9i, I have set the browser windows title from Web Forms dynamically by using following method. However, when my PC has changed to XP, the function seems not work. Does anybody have same problem and how to solve it? Any suggestions would be appreciated.
    Add the Javascript code to your baseHTML file. For example,
    if you are using the basejini.htm:
    <HEAD><TITLE>%pageTitle%</TITLE>
    <script language="javascript1.2" type="text/javascript1.2">
    function Change(a) {    document.title=a;    } </script>
    </HEAD>
    In web Forms , call the javascript function with WEB.SHOW_DOCUMENT built.
    For Example the following code set the browser title with username . web.show_document('javascript:Change('||'"'|| get_application_property(USERNAME)||'"'||')','_self');
    Best Regards,
    Bowie

    Dear Frank,
    Thanks for your reply. Can you tell me in detail which built-in function in Webutil can set value in browser title ?
    Btw, is it possible for me to set parameter "separateFrame=True" in formsweb.cfg and set the form window title by using SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,v_msg_string)?
    Best Regards,
    Bowie

Maybe you are looking for

  • Importing from Adobe Elements into iPhoto

    I have an Elements 9 catalog on my MBA and would like to go exclusively to iPhoto. How do I bring the album structure and photo captions in to iPhoto?

  • Error " song can't be used because original file can not be found"

    Our computer was about to crash, so we backed up our iTunes library to disc like it suggested. However, once we imported the library back to the new computer, iTunes will no longer play the songs without the disc in! It says the "original file can no

  • Switching scenario from classic to extended classic

    Hello Folks, Hope everyone is well. I would like to switch our scenario from classic to extended classic. I have set the flag in table V_BBP_EXTPO_GL - Extended classic scenario active. Now when I try to create a Shopping Cart I get the followng erro

  • Bat file shortcut can't be pinned to taskbar

    After fighting a running battle with the Truvero virus* I've finally give up. I have notice that it append "Search.net" to all my browser shortcuts but it leaves the exe file alone, so I dont get that Bing search Engine and Truvero on start up.  So I

  • MAX won't let me set the duplex mode of my RT target

    We  have a problem with speed in transfering data via TCP/IP protocol from RT system (Pharlap) to Windows PC.  For strings of length of 50 kByte it takes around 20 seconds to come to PC, which is unacceptable for purposes of our real-time system.  Wh