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.

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

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

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

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

  • 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

  • Closing the browser - new problem

    Hi Experts,
                      I had this issue of closing the browser in web Dynpro Java. i did it with the help of the experts views posted in SDN(passing the URL of the java file containing the javascript to close the browser to the exit plug). When i created an iView for the application and try to preview it, throws an error reading - com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!. Please help.
    Thank You.
    Kind Regards,
    Manoj Durairaj

    Well, with more testing and my buddy's help, what I've learned is that the "Save and Quit" tabs dialogue takes precedence over the warning for closing multiple tabs.
    By having browser.showQuitWarning set to true, it will ask me to save and quit - but not if "Show my windows and tabs from last time" is selected for Firefox startup, which makes the prompt for save and quit (and close multiple tabs warning) redundant. It will just save for you upon quitting.
    And had I turned off that browser.showQuitWarning manually or by checking "Do not ask next time" on the save and quit dialogue, then the warning for closing multiple tabs would appear upon attempting to close multiple tabs, since I have that warn option set in my tabs settings.
    It's one or the other, save and quit OR warning for closing multiple tabs.
    It would be nice though if there weren't a conflict between the close multiple tabs warning and the quit Firefox dialogue.
    So, I hope this can help anyone else who may be confused or accidentally change options and potentially screw themselves over. After all, I may have sustained a self-inflicted wound in the settings.

  • How to check if the browser window is open?

    Background:
    In my applet, I have 2 buttons: "Open" and "Close".
    When "Open" is clicked, I open a URL using:
    getAppletContext().showDocument(new java.net.URL("http://server/MyPage.html"), "MyWindow") This works fine.
    When "Close" is clicked, I want to close the previously opened browser window. For that, I am using: getAppletContext().showDocument(new java.net.URL("http://server/Close.html"), "MyWindow") In Close.html, I have used JavaScript's self.close() on OnLoad event.
    This also works fine, i.e., the previously opened browser window gets closed.
    Now the problem:
    If the previously opened browser windows is manually closed, then when "Close" button is clicked, a browser window flashes and goes off. To avoid this, I want to detect if the previously opened browser window is still open - before clicking on "Close" button. Is there a way to do this?
    thanks and regards,
    DAKAMATH

    Note that I am using self.close() in onLoad event because I am closing the same window. If the window doesn't exist, it will create (from Java) and close it (from JavaScript). So it flashes. So it is required that I need to check for browser window existance from within Java and not in JavaScript.
    thanks and regards,
    DAKAMATH

Maybe you are looking for

  • Transfer of Pictures from PC to MacBook Pro

    Two questions. I recently bought a MacBook Pro and successfully transferred pictures from our PC. Although photographs in IPhoto retain the dates on which they were originally taken, those in Pictures only have the date on which they were transferred

  • The Software could not be verified?! HELPPPPP!

    i downloaded Mac OS X 10.7 and i just tried to download it and it says that it may have been corrupted or tampered with during download?!?!?!?! WHAT DO I DO.

  • Missing document numbers

    Back in August, our Accounts Payable department using transaction FB60 posted a vendor invoice.  A document number was provided and it was handwritten on the invoice as proof. however, there is no record of that doc number in SAP.  It's not searchabl

  • Restore app icons that still appear in app list

    Lenovo TAB S8-50F  (16GEB-US-BBY)  Android 4.4  I have several apps (third party) that show up in the list of apps in the settings menu.  The show up under the SD heading but are no on the SD.  They are installed on my computer but I can't figure out

  • TS3991 i can't see my photos on my icloud folder in windows 8.1

    My photos are not being sync from my IDEVICE to icloud which is installed in my windows 8.1. Need help