Prompting users for confimation when closing browser window

Hi All,
I would like to prompt the user with a popup-screen asking for confirmation that he wants to close the browser when hitting the browser-close ('X') button. Is this possible ?
If the user chose to cancel the browser window shoud remain open, with all content as it was... and of course if he chooses to continue the window should just close.
the WDA app is straight forward, and not running inside the portal.
Thanx in advance
-Tonni

Hi Tonni,
I thought I should add - the portal does implement a work protection mode that does allow you to prompt users if they navigate away from your page - and one of the best ways to implement that is through the FPM and its work protect mode interface.
However, that still doesn't help, I'm afraid, in the case where you're trying to stop the user closing the browser window...
I should also point out that some browsers do indeed produce an event which can be trapped on close of the window, and have been hugely exploited by website designers - to the extent that later/better versions no longer support it. Remember the web pages that when you closed spawned 3 more, and those 3 more etc. etc.
Cheers,
Chris
edit:  also worth pointing out that the "Close" button provided within a portal session by the FPM is a form of navigation and can be trapped. Likewise any internal navigation button that perform the same sort of thing within your app.
Edited by: Chris Paine on Mar 29, 2010 3:08 PM

Similar Messages

  • Popup to confirm when closing browser window?

    Hi
    I want to display popup confirm window when closing browser window, "changes will be lost" yes or no. for this i searched forums got some idea, about "WORK PROTECT MODE". this will work only when our application running from portal. my doubt is where should i write code for this??? any help
    Thanks,
    kris.

    Hi Thomas,
    We are on ECC6.0 enph5.
    In system configuration in epc.loader(service) the value for work protect mode is set as 1 - Protect unsaved data (open page in a new window) 
    1)Is it possible to override this value within WD ABAP application? for example show popup window when there is unsaved data
    2)In this scenario what is the significance of L_PORTAL_MANAGER->SET_WORK_PROTECT_MODE
    and   L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
    3)Where exactly  L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG has to coded. It does trigger modify method of the view.
    Thanks,
    chamu

  • How to show a confirmation when closing browser window in jdeveloper11g

    Hi
    I'm Using Jdev 11g
    How to show a confirmation when closing browser window in jdeveloper11g
    Regards
    Abhilash

    Abhilash,
    My goodness...
    Didn't search the forum, eh? In fact, didn't even look at the last 5 or 6 posts - this was posted by another user within the past few hours.... Giving a message while closing a jspx page.
    John

  • Trigger Javascript when closing browser window from CP8

    I worry this isn't possible but here goes....any help would be incredible.
    Recently I was given some great advice on how to trigger a Javascript action in the frame on our LMS which the Captivate file plays in.
    It works perfectly and on the final page triggers the Javascript which send usage back to the LMS and forward the user to a page which allows them to rate the course.
    The code was as follows:
    top.code.closeSCOContent();
    closeSCOContent() is something written into our LMS.
    However the obvious issue occurs when a user just closes the browser window and for some reason our LMS doesn't record any bookmarking or any data.
    The only way it seems to do this is if that function is called.
    So using the window.onunload() or the DOFinish; function is there a way I can edit any file in the Captivate output to trigger this function when closing the browser?
    Long shot I know but currently the best I have managed is getting the course to trigger this as soon as it loads rather than closing the window?
    Massive thanks in advance for any advice.

    Any solution to ensure the data is written back to the LMS would solve the issue.
    Currently when the close button is pressed nothing happens at all and it's a big problem.
    Triggering this .closeSCOContent() function would be the ideal, but if it's not possible anything to write back would be best.
    When you say <body onbeforeunload="top.code.closeSCOContent();">
    Do you mean putting this in the HTML file of the output which currently is:
    <body bgcolor="#f2f2f2">
    and change this to:
    <body onbeforeunload="top.code.closeSCOContent();" body bgcolor="#f2f2f2">

  • Webdynpro for ABAP not closing browser window after click Exit

    Hi Experts,
    We come across a minor problem when executing a Webdynpro for ABAP on our Production Portal.
    We have a "Exit" button which suppose to close the browser window with the webdynpro codes called but it failed to do so.
    The execution steps of the Webdynpro app:
         Click  "Exit"
         Click  "No"
         Results message in the browser:
    The code we use to exit and close the Web Dynpro application
    * Code to close the application when the WebDynpro is executed
    * as an independent application
    * Also requires an Outbound Plug (GO_EXIT) in the main Window
      data : lr_ref      type ref to ig_main_window.
      lr_ref = wd_this->get_main_window_ctr( ).
      lr_ref->fire_go_exit_plg( close_window = abap_true ).
    What would be the issue causing this, the Webdynpro codes or Portal config?
    Our systems are SAP NW 7.31 with:
    ECC6 (Basis 731 SP10)
    Portal (Basis 1000.7.31.7.0.20130227234100)
    Thank you for your help & advise.
    Derek Phung

    Hi Tashi,
    Thank you for your quick response & help.
    According to your more info link, the check will return ABAP_TRUE as the webdynpro app is ran on Portal.
    Sorry i should have mention that I got it working on our Dev & Test portal but now forgotten how i have done it, we now need it config for our production portal. I have vague memory collection that i config it somewhere on the portal, maybe one of the Application Modules in NWA?
    Any advise, help, hints would be very much appreciated.
    Thank You & regards,
    Derek

  • Prompt user for input when rdp with same user as logged in

    What I am trying to achieve: user dragos is logged in on a domain computer. When I connect with rdp with the username dragos on the computer I want user dragos to be asked if he allows the connection or not not to be taken over.
    When you connect as different user it is being asked, but not when connecting as same user as logged in.
    Searching for solutions I found this: Administrative Templates\Windows components\Remote desktop services\Remote desktop session host\Connections\Set rules for remote control of Remote Desktop Services user sessions and give it Full control with user
    permission.
    But it does not work as I was expecting.
    Is there a solution for the logged in user to be promped if connecting with the same user name ?
    Thank you

    Hi,
    user dragos is logged in on a domain computer. When I connect with rdp with the username dragos on the computer I want user dragos to be asked if he allows the connection or not not to be taken over.
    As far as I know, there is no built-in method to achieve this.
    You may try to search whether there any third-party tools which can achieve this, or write a script.
    If you need assistance with scripting, here are some scripting forum links below for you:
    The Official Scripting Guys Forum
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Windows PowerShell Forum
    https://social.technet.microsoft.com/Forums/en-US/home?forum=winserverpowershell&filter=alltypes&sort=lastpostdesc
    MSDN Forums
    https://social.msdn.microsoft.com/Forums/en-US/home
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • When closing Firefox windows, I would like a warning before the last window closes. The about:config settings do nothing. There is a warning for multiple tabs..

    When closing Firefox windows, I would like a warning before the last window closes. The about:config settings do nothing. There is a warning for multiple tabs... why not for the last window? I do not use tabs... just windows... I have a mouse button programmed for that. It is really irritating to have to restart Firefox all the time and then open the history window because no warning was issued!

    This is ridiculous. I've had this problems for years now and I'm finally walking away from Firefox. I use my keyboards more than my mouse, and how many times does your finger slip and hit Command Q instead of W. How come FF can't reset something as trivial as this? So many people are having problems with this?
    Feels like FF has become too big, too slow and just not cooperative anymore. What a shame, I've been using Netscape/Firefox for 13 years. This is silly.

  • ExpressVI prompt user for Input dialog floating

    I am using ExpressVI "prompt user for Input". The question is, when the dialog window pops up for input, I cannot activate other windows .
    So how can I change this expressVI's dialog window to floating windows appearance?

    Short answer: you have to make your own.
    You can start with the Express VI by right-clicking on the express VI and selecting "Open Front Panel" and click "Convert". This will create a brand new VI that is the equivalent of the Express VI. Save the VI under a new name within your project hierearchy, and then change the properties on the VI from a modal to a floating:
    Select File->VI Properties.
    Select "Window Appearance" from the pulldown menu.
    Select "Custom" option and click "Customize...".
    Select "Floating" in the "Window Behavior" section.

  • Prevent losing data when closing browser

    Is there any possibility to catch an event when user tries to close the browser window?
    I would like warn the user to save data before closing the form window.

    Hi, Dan!
    I tried to use your example in my code, but my page loads with error. I copied the jquery script to my /i location on server and included the script tag into the page template between the head tags. On the page I also copied the script from your example into page html header.
    When displaying the page, i get a "Done, but with errors on page" message, with following details:
    Line 21, char 4, Error: object expected, Code 0
    I tried the latest jquery scpript available (jquery-1.3.1.min.js) and also the one from your example (jquery-1.3.1.min.js)
    Can you give any tip, please.

  • 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.

  • Limit checkboxes on "prompt user for input"

    Is there away to limit the selection of checkboxes on the "Prompt User for Input" dialog vi?  I am trying to build a dialog vi that will allow the user to select/check only 1 item before clicking OK.
    Attached is my VI. This VI takes a entered filename and check to see if it exists in a given directory. If it does not exist, then it created (display a message stating it will be created).  If the file does exist, then the user has prompted to select 1 of 4 options (Append, Replace (Overwrite), Re-Name (select new filename) or Escape (exit without creating filename).  Right now I am using front panel controls that become visible however I would like to replace these controls with a dialog box with the four options.
    Ideally this file selection would be a sub VI in application and only execute when called and only be visible via the dialog boxes. 
    Thank you.
    Attachments:
    FileChoices.vi ‏210 KB

    Like radio buttons? See
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/373f703eea0297368625620900701fd8?O...
    Message Edited by Phillip Brooks on 10-16-2006 02:46 PM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Invalidate session when closing browser

    Hi All,
    Please anybody help me regarding session invalidate in servlet(web application) when closing browser.
    how can do this.
    Thanks,

    It can't be done in pure servlet because browser closing event is not caught be servlet. Google for JavaScript's onBeforeUnload event and invoke Ajax call to invalidate the session - this is the only way to handle this.

  • HOW DO I CHANGE THE FONT OF "Message to Display" IN THE Prompt User for Input

    Hi,
    HOW DO I CHANGE THE FONT OF "Message to Display" IN THE  Prompt User for Input?
    Thanks for your help 
    XN 

    Right click and select Open front panel >> Convert.
    Change the vi as you need. then you can save it as a normal sub-vi.
    If you have Labview 8.6, maybe (i am not sure) you can edit the express vi. Express vis are supported in 8.6

  • Prompting user for their choice of mailbox in Mail.app

    All I want to do is ask the user to choose a mailbox in Mail.app. But, there is a problem:
    "mailbox Y of account X" shows
    mailbox "FULL/PATH/TO/Y" of account X of application "Mail"
    while "name of mailbox Y of account X" shows
    "Y"
    This makes it awfully hard to prompt users for their choice of mailbox. I could go up the containers of mailbox Y, until I get to account, but this takes quite a long time.
    Is there a good reason for this behavior of the "name" property?

    Similar to Hiroto - 'I'm not sure what you're looking after.'
    Thus, below is some sample code to work with:
    tell application "Mail"
    set tMailboxes to mailboxes of account "sl-ugs" -- Obtain mailboxes of specific account.
    set nList to {} -- List to contain mailboxes names.
    repeat with i in tMailboxes -- Cycle through mailboxes of specific account.
    copy (name of i) to end of nList -- The name of each mailbox is placed into 'nList'.
    end repeat
    -- Provide an interface for the user to select a desired mailbox.
    set tSelection to (choose from list nList without multiple selections allowed and empty selection allowed) as string
    repeat with i from 1 to (count tMailboxes) -- Cycle through the list of mailboxes.
    if ((item i of nList) is equal to tSelection) then exit repeat -- Determine list location of selected mailbox (in 'tMailboxes')
    end repeat
    set tMailbox to item i of tMailboxes -- Obtain full listing of selected mailbox
    set tMessages to messages of tMailbox -- The messages of the selected mailbox.
    set mList to {} -- List to contain 'subject', 'from' and 'date received' field items of each message of the selected mailbox.
    repeat with j in tMessages -- Cycle through the list of messages.
    -- The 'subject', 'from', and 'date received' field items of each message of the selected mailbox are placed into 'mList'.
    tell j to copy {subject, sender, date received} to end of mList
    end repeat
    -- Example code showing 'tMailbox', 'nList', 'tSelection', list location of selected mailbox, messages of 'tMailbox', and finally - the 'subject', 'from', and 'date received' field items of each message of 'tMailbox'.
    tMailboxes & return & return & nList & return & return & tSelection & return & return & i & return & return & (messages of tMailbox) & return & return & mList
    end tell

  • Modifying "Prompt user for input"

    Hi, all.
    Is there any "Prompt user for input" VI where I can include enum or ring type inputs? If not, how can I modify the "Prompt user for input" VI to do that?
    Thanks,
    Francisco
    Solved!
    Go to Solution.

    Right click on the express VI and select 'Open Front Panel'. This will convert it to a regular VI that you can edit. Or, just create your own VI from scratch. Look at the shipping examples for 'pop-up's.

Maybe you are looking for

  • "send for shared review" cannot connect to server

    I'm trying use the "Send for Shared Review" feature in Acrobat 9. I want to send a pdf document to acrobat.com and share with others for review and comment. I first used this feature about 2 months ago and it worked without a hitch. Every time I try

  • Share data between managed beans

    I used Sun Studio Creator for jsf before and there I can create a class extending AbstractSessionBean which had a function named getBean(String beanName) If this bean is in session scope, it could get any managed bean in session or in application sco

  • No zune hd 32gb in store could not use coupon.

    I wanted to purchase a zune hd 32gb in store using the reward zone coupon, however it seems that none of the places in Arizona has ANY!  These reward zone coupons are totally USELESS.  It would've been nice if Best Buy had their buyer buy more than a

  • Customizing the sample HTML pages delivered by SAP in Life and Work Events

    Hi All, I have released all the process of the LWE and assigned the default roles to the all processes. Now I am able to see all the SAP delivered screens perfectly. I wanted to change the all the default HTML and Java Web Dynpro iviews to suite the

  • [svn:fx-3.x] 11959: Removing rpc-encoded id attributes from the referent when used as a multiRef  (i.e.

    Revision: 11959 Revision: 11959 Author:   [email protected] Date:     2009-11-18 14:16:08 -0800 (Wed, 18 Nov 2009) Log Message: Removing rpc-encoded id attributes from the referent when used as a multiRef (i.e. referenced via an href attribute). Thes