How do I close a (browser) tab after a submit?

Hi,
We have a flex app that calls our java back end to render a pdf (via LC java api) to a new browser window/tab.  Then we would like to close that browser window/tab after the user submits the form successfully, but we haven't figured out a way to do so.
There were mentions of using event.target.closeDoc(true); in Acrobat JavaScript, but I believe that works if the pdf was launched in a stand-alone Acrobat Reader, not when it was rendered to the browser.
Are there any examples out there?  Any help would be appreciated, thanks in advance.
- Nelson.

You can't close browser windows through calls from within Acrobat. Your only option is to close the window using javascript within the browser, however that only works if the window was opened using javascript within the browser.

Similar Messages

  • How to turn off Verizon browser tabs when launching Firefox???

    Hey all, when i launch Firefox 2 addtional, seperate Verizon browser tabs open beside the Firefox one at the top of the screen.
    Can't figure out how to stop them from opening?? Can anyone help?
    Thanks.

    If you click on those tabs, what displays?

  • Ffox help says "To close a tab, just click its close button." I did this. But still got the message about to close 5 tabs. I could close one tab at a time, in the past but now can't. How do I close just one tab?

    WTF? you ask for details then tell me I have exceeded the 255 character limit. Clicking on links in an email I wound up with 5 open tabs. Tried to close the last tab opened. I got pop-up warning I was about to close 5 tabs.

    ya I'm aware of the shortcut keys. Been using a mac since they came out. She is used to interaction with the mouse, hence the specific question as to where the X has gone.

  • How can I close the current tab in Firefox v 17.0.1?

    I have used Firefox for years and have always used Tabs instead of opening new windows. I have always been able to click the little "X" on the right side of the tab to close it. I am finding now that I cannot close the current tab by doing this. I have to click on another open tab and then click on the other tab I wanted to close.
    I have looked through the Options many times trying to see if there is a setting I need to change, but have not found anything.
    Is it possible in this version of Firefox (v17.0.1) to close the current tab?

    I started Firefox in SAFE MODE and the problem went away. I checked for updates and all were up to date. I then restarted Firefox and it worked fine. Since I didn't really do anything, I am curious as to why it is now working as expected. I am glad, but still curious.
    Thank you.

  • How do I recover my lost tabs after updating to Firefox v33?

    Problem: After update to v33, I am unable to restore my lost tabs and GROUP tabs from my previous session, which was last night at 6:38 pm EST.
    Here are the steps that I have taken:
    1) History > Restore previous session is greyed out.
    2) I have checked to make sure that I had configured session restore by going to Options > General panel > When Firefox starts: > Show my windows and tabs from last time.
    3) I have right-clicked on Firefox > Properties > Previous Versions. But since I never set up any sort of restore configuration, there were no previous versions available.
    4) I have tried to look for the sessionstore.js file in my profile folder to replace it with my sessionstore.bak file because the date for that file was last modified at 10/14/2014 6:38pm. However, I can not find the session.js file and the only sessionstore-related files that I see are: session.rdf, sessionCheckpoints.json, sessionstore.bak, sessionstore.bak-20140923175406.
    Please help! I had a lot of tabs. I don't want to go to History to find my tabs one by one because I also had GROUPs of tabs that I have not opened in a month or more and each group of tabs have many tabs in them too.

    Hi magasx, I'm trying to understand the part about previous.js. That was not helpful because it wasn't an early enough version of your session? In your screenshot it is a very large file, and so is your recovery.js. Did you check the list of closed windows and tabs that appears on the History menu to see whether what you're missing appears there?
    Your screen shot shows a 9MB file from March 22nd, it's the last one in the list. To try that file, I suggest copying it to a safe place, and then when Firefox is closed, renaming the current sessionstore.js file to sessionstore.old and copying in the upgrade...js file and renaming it to sessionstore.js. Then when you start Firefox, Restore Previous Session. Does that get you close?

  • How do I get back my tabs after they were deleted during a recent update of Firefox?

    I recently updated to Firefox 5, and in the process, Firefox has erased all the tabs I had open in Firefox 4, and I want to know how I can get them back. It was a routine update, and everything worked fine, except that when I opened Firefos 5, I just got the welcome message, nothing else. No tabs from my Firefox 4 browsing...

    I can find them if I go back in the history, but they're from the last three four weeks, so it would take a long time, and I don't remember all of them. That's why I had them as tabs, but the tabs are gone, and I was kind of hoping that they could be restored...

  • How do I close a panorama tab group in Firefox 5 for Mac

    I can create a panorama tab group easily enough, however there doesn't seem to be a way to close a group of tabs. Reading the documentation, it says that when viewing the tab group there should be an "X" in the upper right hand corner to close the group. On my mac however, there is no "X" and it doesn't look like there's a way to close it.
    On my windows XP machine the "X" to close the tab group is there.

    Firefox Orange Button > Preferences > Preferences > Application
    Search for the ".indd file" and change the option

  • How can I close a firefox tab in my Visual C++ code which I have created

    I have written a code to open a specific link in firefox. It open in a new tab, but when I try to terminate that process through code, it doesn't work. I have assume the new tab to be a process, I even tried to delete the thread but I an not able to find the appropriate thread. Please help me to should i proceed. Is the new tab a new thread? If yes, how can i get that thread id?

    Try to ask on this MozillaZine forum.
    *http://forums.mozillazine.org/viewforum.php?f=27 - mozillaZine Mozilla Development forum
    You need to register on the MozillaZine Forums to post there.

  • How do i close my many tabs

    Please tell me how to delete tasks or tabs ???

    Are you asking how to delete Safari tabs on your iPad?

  • How to close browser window after flushing a file to the browser?

    I have this simple JSP, which flushes a String to the browser as a file (message.txt). The JSP gets opened in a new window when the user clicks a link.
    The problem is that after the JSP has run, the browser window won't close automatically. I've tried adding a small javascript to achieve this, but i doesn't seem to even get run.
    How can I close the browser window after the JSP has run?
    <%
         String someText = "bla bla bla";
         // Flush to browser
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (IOException e) {
              return;
         } catch (Exception e) {
              return;
    %>
    <script type="text/javascript">
         window.close();
    </script>After the JSP has run, an empty html page with the following source can be seen:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    <BODY></BODY></HTML>

    Try run this and you'll see that it runs fine with no exceptions:
    <%
         String someText = "bla bla bla";
         response.setContentType("text/plain");
         response.setHeader("Content-Disposition", "attachment;filename=message.txt");
         try {
              ServletOutputStream os = response.getOutputStream();
              os.write(someText.getBytes());
              os.flush();
              os.close();
         } catch (Exception e) {
              out.println("ERROR: " + e);
    %>It looks like that after I've closed the outputStream I can't do any more processing in the JSP. Even if I remove the setContentType and setHeader methods it still behaves this way.
    I'm starting to think that there's no way around this...??

  • Closing a browser tab programatically

    Hello,
    Does anyone know how to programatically close a browser tab in a tabbed browser (i.e. Mozilla, Firefox). I'm wanting to do this from a jsp page. Any help you can provide would be much appreciated.
    JS

    Thanks haroldsmith3rd, but another question...how do you get the index you are using below that identifies which tab to close? Thanks
    JS
    errr i think it is
    getBrowser().closeTab(index);
    but i can't remember

  • How can i restore all my tabs of mozilla after profile movement ?

    I am working in call center here users open so many tabs and when we they moved to new system they want to restore all the tabs at new location. So , how i can restore all the tabs after profile movement like i can restore their pst

    You can make a backup copy of the sessionstore.js file that stores session data.
    *http://kb.mozillazine.org/sessionstore.js
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • I CANNOT CLOSE THE FIRST TAB WHEN I SEARCH FOR SOMETHING AND CLOSE A SECOND TAB IT WILL NOT LET ME CLOSE THE FIRST TAB

    I CANNOT CLOSE THE FIRST TAB AFTER I TYPE IN A SEARCH
    == This happened ==
    Every time Firefox opened
    == I UPGRADED TO 3.6

    I have the same problem and tested it in Safe Mode, and did the disable the add-ons thing. Everything went OK, even up to the last add-on. There wasn't a hint of the problem anymore, so I went back to regular use of FF (3.6.12) again. WELL, THE SAME THING HAPPENED AGAIN!!! I agree with the person who said that your supposed troubleshooting is B.S. You blame the user instead of saying something useful like "OK, we heard you (and over two dozen others) and we know it's not your doing, and it's OUR PROBLEM, and we're going to look into it and figure out how to fix it, AND we'll get back to you when we do and tell you how to fix it too." THAT's the kind of answer we FF users want to hear, not some claptrap about how WE the users didn't try hard enough to fix it on our own!

  • How do I close a generation session in C#

    Hello,
       Please see the code below, how do I close the generation session after I have completed the io operations?
    static void Main(string[] args)
    { /* start of main */
    string card_name = "PXI-6552";
    bool id_query_status = false;
    bool reset_instrument_status = false;
    string output_channels = "0,1,2,3,10,11,12";
    string input_channels = "13";
    uint misc_counter=0;
    uint write_data=0x00000000;
    uint mask_value=0XFFFFFFFF;
    niHSDIO sig_gen = niHSDIO.InitGenerationSession(card_name,id_query_status,reset_instrument_status,"");
    /* create a generation session to the Digital IO card */
    sig_gen.AssignStaticChannels(output_channels);
    sig_gen.ConfigureDataVoltageLogicFamily(output_channels,InstrumentDriverInterop.Ivi.niHSDIOConstants._33vLogic);
    misc_counter = 0;
    while(misc_counter <= 10000)
    sig_gen.WriteStaticU32(0x00000000,mask_value);
    sig_gen.WriteStaticU32(0xFFFFFFFF,mask_value);
    Console.Write(misc_counter+"\n");
    misc_counter++;
    } /* end of main */
    How do I close the generation session?
    Regards,
    Kaspar
    Regards,
    Kaspar

    Kaspar,
    I have some more information that might help explain how (and why) the Dispose() method works.  If you look at the definition of Dispose() you see that it calls a private method, Dispose(bool). This wrapper function contains a direct call to the Close() function imported from niHSDIO.dll.  Thus you are calling the Close() method that you are probably used to seeing in the C version it has just been updated to work in C#.  Hope this is helpful!
    public void Dispose(){
      this.Dispose(true);
      System.GC.SuppressFinalize(this);
    private void Dispose(bool disposing){
      if ((this._disposed == false)){
        PInvoke.close(this._handle);
        this._handle = System.IntPtr.Zero;
      this._disposed = true;
    John B.
    Applications Engineer
    National Instruments

  • Select query after the submit stmt

    Hi,
      Have used the submit stmt as
    " SUBMIT pgm name WITH SELECTION-TABLE rspar_tab
    EXPORTING LIST TO MEMORY
    AND RETURN."
    Now the o/p generated is saved in the memory.In the report which is generated I have to fetch only 2 values based on one field as criteria..How to write the select query.

    hi,
      after the submit statement use the LIST_FROM_MEMORY
    function module...this function module loads the list from ABAP memory to an internal table of row type ABAPLIST...
    after the data has been saved in an internal table u can do selection on the basis of the field...
    Edited by: siddharth kumar on Oct 10, 2008 2:01 PM

Maybe you are looking for

  • Not able to see a narative report from a contact detail page.

    In the URL of the weblink, I set up the link to the report as follow: https://secure-ausomxdca.crmondemand.com/OnDemand/user/analytics/saw.dll?Go&Path=/shared/Company_31844_Shared_Folder/WEB+APPLET/FAX+to+contact&Action=Navigate&P0=1&P1=eq&P2=Contact

  • ICloud, MobileMe, Back To My Mac, and remote Time Capsule inconsistencies

    I just upgraded one of my two computers to 10.7 (a little late - was hoping to avoid a problem - oh well). After the upgrade I updated my local Time Capsule with the "new" Back To My Mac feature via Airport Utility as requested. However, when attempt

  • Many Red entries in SM35 ...!!

    Hello , when i execute TA sm35 i found many red entries with status - error. What can be done to resolve them and what can be the reason. And when i click on process Tab it is blank and *In process* Tab it has many entries with last years date and in

  • Dock adapter missing

    web page states "in the box" as ipod,usb,earphones,case,quick start guide AND dock adapter...no adapter in my box..in fact icons on top of box only show symbols for earphones,usb, and guide...I just bought a nano for my girlfriends birthday..apple pa

  • Sync error with centro - please sync eas account

    im using a centro with active sync to sync my e-mail from an exchnage server. all my contacts and tasks sync just fine but i get an intermittent error message when syncing e-mail the message is "ASSERT FAILED! AirSAMSMEmailPrv.c (slk 04c7)860" when t