Closing the browser windows created by web.show_document and javascript

From Forms I am issuing a http request using web.show_document and javascript:window.open(). The http request makes a remote procedure call to a coldfusion component on a JRun appserver. I want this rpc to fire in the background so that the current forms browser window remains as is.
The logic is as follows
l_rpcURL := 'http://....just a standard URL.....'; -- edited for this thread
l_jsURL := 'javascript:window.open("' || l_rpcURL || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=no");self.close();';
WEB.SHOW_DOCUMENT (l_jsURL,'_blank');
The http request works fine but leaves a browser window behind. It's the one created by the javascript.window.open(). If I remove the self.close() from the javascript then I have two browser windows open, one from web.show_document and the other, as described previously, from the window.open().
Any idea how I can force closure of the window opened by the window.open() ?
Thanks

Hi,
did this occured afer installing service pack 2?
A work around is The only solution that is to create a close.html file and calling this file in the code: Web.show_document('http://server:port/close.html','_self');
<html>
<body onload="closeit()">
<script>
window.close();
</script>
</body>
</html>
Monica

Similar Messages

  • Issue Tracker app closing the browser window on chart page

    Hi!
    I am walking through the Issue tracker tutorial. I have created page 10 (Issues Resolved by Month) which is the chart page. Everything looked fine until I try to run the page. Then it simply closed the browser window after it authenticates me. Anyone else see this? Any ideas?
    Thanks!

    Probably a problem with your SVG viewer installation. Does it happen on other chart pages as well? What browser/svg viewer version combination are you using? There are some known issues with what's labeled as the current svg viewer on Adobe's website and Firefox.
    Earl

  • Closing the browser window

    I have a page that opens vignettes [videos] built using Captivate in a new window.  What I'd like is to close this window once the video has stopped playing i.e. reached the last slide/frame.
    I've tried setting properties on the last slide in the project to "Execute Javascript" and using "window.close();" as the code. But this doesn't seem to close the browser window. If I change the JS to something like "alert('Hello');", it works i.e. I do get a JS Alert window at the end of the video.
    I am sure this is easy for folks who've been working with Captivate, but I just started using this morning so any help would be appreciated.
    Thanks.
    Captivate Newbie

    Hi there
    I'm guessing you didn't read our Frequently Encountered Issues topic that has been designed to provide the answers to some of the more commonly asked questions.
    Click here to view
    Pay special attention to the tenth item listed.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • 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

  • Html code for closing the browser window on logoff.

    Hello,
    I am using the logoff redirecrt url feauture to divert the logoff page to a custom made html page. I want this page should be closed automatically after being called i.e. when I click the logoff button it should divert to this custom html page and than close the browser automatically.
    Can you please help me with the code for this custom html page so that it closes the whole browser automatically when it get called.
    Regards
    Deb

    Don't know about the coding. May be we can do it by setting the property
    Initial State - Open or Closed or may be make that window Invisible.
    Others will advice you soon related to this.
    Regards
    Puneet

  • I was playing with the Group Tabs/Panorama function and accidentally closed all of my tabs. Then I closed the browser window. Is there any way to restore all my tabs?

    I'm using Firefox 6.

    I have the same issue and didn't even close my browser. I closed a tab group, and they're ''gone''. I've always used ''warn me when closing multiple tabs''; why didn't it prevent this?
    I dutifully updated to 6.0.1 (Win7 Pro 64bit SP1) today, and saw "''Tabs, meet groups''." I played briefly with a group and then clicked (x).
    While exploring the UI, I had assumed I was manipulating a filter rather than the actual tabs. No reason to suspect this would close an entire window's worth. The "restore tab group" button suggested I'd merely ungrouped the tabs. No biggie; new feature playtime is over for now. The background blur was still present, so again no worry that my six or eight tabs were about to be annihilated.
    The recently closed window list includes three pages from yesterday. Naturally the recently closed tabs ''from the other window'' aren't here.
    My full history is sorted by visit date; why isn't each tab added to today's list after a restart? Now I'll search the entire history to ensure I'm not forgetting one. Tab groups are likely quite nifty, but for now I'm irritated with 'em.
    '''Why didn't "''warn me when closing multiple tabs''" kick in''' to alert me?!
    SUGGESTION:
    '''''Warning:''' The 'tabs group' feature does not care if you've checked "warn me on closing multiple tabs." If you click the (x), you're hosed.''

  • Closing the browser window in Java

    Hi All,
    My wireless application works on a PDA browser. The PDA browser doesn't support javascript. When user wants to logoff from the application, he clicks on the logoff button. After clicking it the current browser window should close.
    I am using XHTML-MP markup language to develop the page instead of HTML.
    I need a piece of code (Example Java code, not Javascript code) in order to close the current window browser.
    Any help will be welcome.
    Shrikant

    There is no such code, I hope.I wouldn't be sure about PDAs. I haven't used one yet. But logically, there should not be any code like that.

  • Portal not closing session when closing the browser window

    Hi,
    We have a problem in portal where the user logs onto Portal with their userid/password and has another window opened eg. www.google.com.
    The user then closes their browser(x) on IE, but still has the other session opened. (www.google.com)
    Later the user tries to logon to Portal, but is not prompted with their userid/password, and is taken directly into Portals.
    This is a problem, we want the users to always be prompted with their userid/password.
    Thanks
    Sushanth

    If the second browser session is a child of the first (e.g. started via Ctrl-N) the session context is inherited, including session cookies (here: MYSAPSSO2), which are relevant for user authentication against the portal.
    That's how IE works.
    If the second browser is a new instance and the session cookie is set in this browser session as well, it's a browser bug. Try to update OS and/or IE.

  • Closing the browser window, after the dialog box

    How are you handling the 'NO' scenario ?
    Moreover are u firing the plug even before popping up the message ? Please check this once.. it might be the cause for it.

    Are you popping up the confirmation dialog from a WD application ?
    If so there will be a handler method for action 'NO' very similar to the following :
        CALL METHOD window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_yes               " For the button YES
            button_text       = <button_text>
            tooltip           = <tooltip_text>
            action_name       = 'YES_ACTION'                                  " Handler action for YES. Ideally the plug should be fired here
            action_view       = view_controller
            is_default_button = abap_true.
        CALL METHOD window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_no
            button_text       = <button_text>
            tooltip           =  <tooltip_text>
            action_name       = 'CANCEL_ACTION'                            " Handler action for NO
            action_view       = view_controller
            is_default_button = abap_false.
    The handler method for action CANCEL_ACTION will be ONACTIONCANCEL_ACTION. The handling should be done there.

  • Exit the Browser window while closing the form in ORACLE 10g

    Hai,
    Is it possible to cIose the browser window while closing the form in Oracle 10g.
    I wrote a code EXIT_FORM in a "WHEN BUTTEN PRESSED" TRIGGER and
    web.show_document('javascript:window.close()','_self'); in "POST-FORM" trigger
    But it only closes the form.
    Please help me with the fast & useful responds.
    Bye

    create a file called close.html with the following code
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.close();
    </script>
    </body>
    </html>
    call close.html in post-form like this
    WEB.SHOW_DOCUMENT('/forms90/myhtml/close.html','_self');
    You have to do the directory mapping

  • A second browser window will not open and then closing the 1st window firefox will restart. Taskmgr shows it still running, it will not restart until I end the process in taskmgr.

    I open the browser and close it every thing is fine. I open the browser and then attempt to open a second browser window, it will not open. Now because I've attempted to open a second browser window firefox will not restart after closing the open window. Until I've shut it down in the taskmgr. This just started the other day and I have removed the only update I made that was "flash" and I removed the 64 bit version of firefox.

    Win 7 with iTunes installed - I was also having problems with that.
    "netsh winsock reset" at the command prompt resolved all issues and Firefox launched normally.
    Check to see if Winsock is corrupted. May prevent FF from communicating with the web and consequently fails to launch properly - for my situation was not a firewall or antivirus block!
    http://support.microsoft.com/kb/936211#LetMeFixItMyselfAlways
    Click Start, and in Start Search, type cmd.
    Right-click the cmd entry that appears in the search results, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
    At the command prompt, type the following, and then press ENTER:
    netsh winsock reset
    Then, you should see the following message:
    Successfully reset the Winsock Catalog. You must restart the computer in order to complete the reset.
    Restart the computer.
    Note If you receive an “Access Denied” error message instead of the message that is mentioned in step 3, the command prompt was not correctly elevated. In this case, close the Command Prompt window, and repeat steps 1 through 3. Make sure that you correctly implement step 2.

  • Configuring the browser window title for an iWeb-created page?

    Hello all,
    How do you customize the text that appears in the browser window's title for an iWeb-created page? (e.g., at the top of the browser window where it says "Apple - Support - Discussions - etc."). I had assumed that the the name I designated for the page via the Inspector would be used as the browser window title, but instead iWeb is using the first line of text within the page itself.
    Thanks!

    You can do it with a HTML snippet with the following code:
    <script type='text/javascript'>
    parent.document.title = "name you want to appear at the top of the window";
    </script>
    It takes about a second or two to replace the original text as can be seen in this test page.
    Put the snippet box off somewhere where it won't overlap on any other element. It is invisible on the web page and in iWeb until you click on it. I had to do a Select All to find it just now to get the code.
    OT

  • 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 do i get the download window to remain open after closing firefox browser window

    i sometimes download a bunch of files all at ones then have to go back to review them. but i don't need the browser open to do this just the download window. in older versions the download window would remain open after i closed the browser but i don't see a way to do that anymore?

    You can set the pref browser.download.manager.quitBehavior to 2 on the about:config page.
    See http://kb.mozillazine.org/browser.download.manager.quitBehavior
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • How to change the web icon in the browser window

    i have created my site and cant find how to change the icon in the browser window (like they have done at the top of this page with the Adobe icon before the  Adobe Forums: text )would anyone be kind enough to give me some help??

    Do you mean the favicon?
    I only just recently learned about favicons myself - so if you google the word you'll get lots of resources for it. Bascially it's a little icon file that sits at the root directory of your site that the browsers find and display for you. As long as the file is there (*named favicon.ico*) it will show up automatically if I'm correct in what I've read.
    Is this the thing you're looking for? (edit: it also shows up in your bookmarks list in firefox - if this is the one you want that's the favicon file)

Maybe you are looking for