Close dialog window by clicking on 'X'

Hi
I am displaying a dialog window that allows the user to modify data.
When the user clicks on the 'Cancel' button I have placed on the window, the action code fires and the return listener fires.
I have added some java script that executes the following command when the user closes the dialog by clicking on the close icon.
submitForm("groupCaptureForm",0,{source:"cancelGroup"});
Basically simulating a click on the 'Cancel' button.
For some reason when the user closes the window by clicking on the close icon, the action code fires, but the return listener code never fires.
Any idea why?

Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
* [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

Similar Messages

  • Close dialog with a click outside it

    How can I close a JDialog when the user clicks elsewhere? If it is modal, no mouse events are generated. With a non-modal dialog, I couldn't use FocusListener, the dialog looses focus just after it is made visible. MouseListener didn't worked too, a mouse event is generated by the same click that opened the dialog.
    I feel this has to be simple, but... where is the road?

    You could listen for window deactivation events.
    But ... Closing a dialog when someone clicks outside it is very non-standard behavior. People expect that they have to take explicit action in response to a dialog, and not following that model is generally a bad idea. Consider the person who accidentally clicks outside the dialog -- perhaps to look for information in another window -- and then can't get back to where s/he was.

  • "ESC" button to close Dialog window? how it can be done

    Dear Friends,
    my application has got lot of Dialog windows, How can i map ESC button so that when the users press ESC button the window will get close automatically, all these windows designed so show data only.
    Please advise me.

    For Esc button it is not possible anway u can use F1 key,use Key-Help tigger on block level and write
    Exit_form (no_validate);
    but it will disable help menu on this block but i dont think so it is relate to user the sample code would be for F1 key is
    Tigger : Key-Help
    Level : Block
    exit_form(no_validate);
    By pressing F1 on this block your form can exit .You can exit this trigger on Form level and it will work for all blcoks in ur Forms if any problem contact my personel email address
    [email protected]
    thank you
    Khurram Siddiqui

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • Close browser window on click  - pass parameter

    Hi,
    I have two applications (iViews) in the portal, one passing parameter to the other. On click of 1st iView, it passes parameters to 2nd iView, which opens as a separate window in portal. I need to select some values in it and on clicking OK, some parameters should be passed to the 1st IView and the window must be closed. The parameter must be made available in the 1st Iview, by autorefreshing.
    Srinivasan T

    Hi,
    I try this and it is work fine
    This solution for IE7 & IE8
    <af:resource type="javascript">
         function closeBrowser() {
             window.open('', '_self', '');
             window.close();
    </af:resource>
    <af:commandButton text="Close Browser" id="cb1" immediate="true">
          <af:clientListener method="closeBrowser" type="action"/>
    </af:commandButton>Sameh Nassar

  • Confirmation from Safari when you close a window on Mavericks

    Hi all,
    I was wondering if it was possible to have like a little warning from Safari when we quit a window on this application. For example: Are you sure you want to quit this window?". Firefox has this application when you close a window with several tabs.
    I looked in the preferences, but i haven't found it. I know this kind of warning was present on the elder versions of Safari, so why not now?
    Hope you can help,
    Tim
    I have a MacBook Pro, OS X Mavericks (10.9.2) and the Safari 7.0.2

    Actually, you're right. After a little investigation, it was the way I was using the gui that was making this happen. During debuging (using Netbeans) I would open the dialog window then click on netbeans to check the console for a couple System.out.println()'s I put in the code. Then on closing the Dialog window Netbeans would be the next window selected by the OS and would appear over the original JFrame. D'oh! Just sillyness on my part imagining problems for myself.
    I guess what I was looking for was that when I close the dialog window that the OS would focus to the parent JFrame instead of the previously viewed application.
    Thanks!

  • Close main window without alert message

    Hai Guys
    I am opening a new page in jsp with
    window.open("", "mywindow1","status=1,width=350,height=150");
    This page is opened without menu bar.Thatis ok.
    When i am closing the main window with,
    mywindow.close();
    i am Getting an alert message to close the main window.
    Now i want to close the main window without alert message.
    is it possible.
    if u have idea please reply.
    Thanks

    Hi,
    you close dialog windows through the handler that you obtain when opening the window. In IE - and I assume this is where your problem comes from - a security mechanism has been added to prevent scripts from closing root windows without notification. If you want to close the root window I think the work around is to call a HTM page that only calls window.close() in its onload body attribute
    Frank

  • How do I open with one click all the windows that I have been minimized? When I right click on the lower bar Firefox icon, I only see the option to close all windows.

    It is used to be that I could right click on the Firefox icon on the toolbar at the bottom of the screen and I would then be given the option to open all windows. Now I only see the option to close all windows. The ability to open all windows is very useful. Have you eliminated this capability? It was a very helpful feature because I often have more than 15 windows minimized at one time. On a regular basis I like to open them all and keep only the ones that I still need. I know that it is possible to see the name of each window that is minimized by moving my cursor over the Firefox icon, but this does not provide enough information. So I have to open each window one at a time to look at it and then decide to close it or keep it - this is a frustrating, time-consuming process. Is there another way to open all the minimized windows at the same time, instead of one at a time?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    * Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    * Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • FIREFOX CRASHES WHEN I click to close any window from a website,

    I am on a website- any website. I click on a link or box within the website and a window opens. When I am done with that window I click the box in the window that says "close" or I click the little "x" in the corner and BANG- firefox closes, no crash report at all, just closes completely with out warning. Would like to re install firefox 3.???? never had that the the 3+ versions.Maybe I should start using IE again or I see that safari is supposed to be fast too?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See "Disable virus scanning in Firefox preferences - Windows"
    *http://kb.mozillazine.org/Unable_to_save_or_download_files

  • When a website launches a new window to enter information, Firefox no longer automatically closes the window when you click the submit button. Why?

    For example, when I create a message in my autoresponder service and want to attach an image a new window opens up so I can enter the details of the image (url, position, alt text). When I click the Save button, the information is captured but the window remains open and I have to manually close it.
    Firefox used to close the window automatically.

    YES!! Thank you jscher2000! You sir are a legend. Thanks for this, changed the newtaburl in about:config, totally worked. Nope, never saw it happening! Speedy machine this one :P Yep, that change completely sorted the issue, just opened about 741 new tabs through the shortcut on my mouse just to celebrate. Thanks guys who helped, no thanks those who didn't.

  • Clicking on download doesn't open usual dialog window on some websites

    Firefox 26 in Xubuntu 13.10.
    When I download files (.pdf, .rar, .txt, or whatever) from most sites a dialog window opens asking me what I want to do with said file, e.g. open with Default utiliy for that file type, or save file to local disk.
    This does not seem to work on some websites however. In particular trying to download a .mkv file doesn't open the usual dialog and just fills my page with coding text that is way above my paygrade.
    I am not at all familiar with .mkv and any quirks or individualities it may have, so I guess my initial question is, do I need some kind of additional FF plug-in to download this file type or is there a fault with the config of the websites involved?

    [SOLVED] Many thanks for your prompt response. It looks like the problem solved as per your advice to Right-click on the link and selecting Save Link as.. rather than actually opening the linked page itself which, I think, was where I might well have been going wrong initially. Some additional info that may be useful for Xubuntu users - I opened Thunar file manager, navigated to the file being downloaded, Right-clicked and selected Properties and was able to monitor the progress and eventual completion of the download in real-time.
    Thanks once again.

  • HT3529 OS X Mountain Lion Messages - after receiving picture in texting, when you click on the picture of enlarge and then close that window to go back to texting, the picture disappears.

    In OS X Mountain Lion Messages, after receiving a picture in a text, when I click to enlarge the photo for viewing and then close that window and go back to texting, the photo is gone from the text.

    In OS X Mountain Lion Messages, after receiving a picture in a text, when I click to enlarge the photo for viewing and then close that window and go back to texting, the photo is gone from the text.

  • Open dialog window closes suddenly on Illustrator and Photoshop

    Hello,
    open dialog window closes suddenly on Illustrator and Photoshop

    PPI is the correct word for an image's resolution.
    As for printing: ask the service provider what's best for their workflow. It totally depends on the process, on the hardware, on the paper and on the size of the print.
    For video: use screen resolution unless you want to enlarge the footage in the video.
    Additionally:
    read the manual of the video software in use
    read about printing:
    Search for the "Creative Suite® 6 Printing Guide" in your preferred search engine.

  • When I click on the pinned Firefox icon it only opens and closes one window rather than opening a new window.

    It used to be that every time I clicked on the pinned Firefox logo in the taskbar a new window would open. Now when I click the pinned logo it only opens and closes one window.

    hello, this seems to me like intended behaviour - all other open programs behave the same way, a click on the pinned icon minimizes them, another one brings them back to the foreground.
    you can open a new window by right-clicking on the firefox icon & selecting that option. the keyboard shortcut for it would be ctrl+n, or you can also [[Customize Firefox controls, buttons and toolbars|add a "open new window" button]] onto the firefox user interface.

  • When I try to close the Firefox window, it is not closing. I have to click outside of the window and click back on the x button in order to close it.

    For example, if I type something into the Google search bar and then try to click on the minimize or close button, nothing happens. In order to close Firefox, I have to click ''outside'' the firefox window (on my desktop or task bar) and then I can click close. If I click inside the window again, I cannot close.

    You could exit Firefox from the File menu. You can also use Ctrl-Shift-W to close the window.

Maybe you are looking for

  • Current day and prior day prompts..BUt user should select only one prompt

    there is table in my universe ..mi.dim_date...... the columns/objects are ....ID_date ,Date,Datetime,month,quarter,yeID_date column type is Number,Date column type is Date. here i want to apply a prompts on Date column, and that prompt,when user sele

  • Getting Error in b2b.log AIP-50075: Cannot find Document Exchange Plugin

    Hi Gurus, I have a configuration in which Oracle B2B has to pick messages from a filesystem. I have created IDCs to pick messages from the path configured. But Oracle B2B is not picking up the file from the path specified. When I went to b2b.log to l

  • Standyby problem and best setup

    Hi hope someone can help I gave the following setup :- P4 3.2GHZ 2 x 512MB Transcend Memory (Transcend (TS64MLD64V4F3) (SEC K4H560838D-TCCC) 1 Seagate 80GB SATA Drive (SER1) 1 NEC 2510A DVD Writer (IDE 1 master) 1 CDRW (IDE 2 Master) 1 Maxtor IDE 80G

  • Dynamic orderby clause for multiple columns with out Dynamic query

    Hi,         I've a query like "select  * from tablename order by column1,column2,column3,column4,column5,column6" in the above query the order by column will be dynamically changed. The query is placed in a stored procedures and the order by column w

  • To allow me put a value into field without coming out the tcode.

    Hi Friends, My requirement is when a value is entered into a field leaving the other field empty should display a error  message I'm making use of the below statement to display the error message message S000(01) display like 'E' raising error_with_m