Close Window (with O/P) out of IFrame

Hi experts,
I did create a new component (with bsp_wd_cmpwb) and therein a window.
In this window I call an IFrame which is another BSP-Application.
Now I would like to close this window out of the iframe.
I did already create an O/P to close the window, but I don't know how to start the method in IFrame to do this.
Just at opening the window SET_VIEW_GROUP_CONTEXT and DO_FINISH_INPUT are run-through.
If I can force a run to this methods out of the IFrame it would be also ok for me, because therein I can fire the O/P.
The closing with the O/P works fine, but I need to trigger/force it.
First I tried to close it with the following jscript, but it doesn't work in firefox.
<SCRIPT LANGUAGE="JavaScript">
    function closeAndRefresh(){
      opener.location.reload(); // or opener.location.href = opener.location.href;
      window.close();
    javascript:window.close();
          </script>
Thank you for every help.
Kind regards

Does nobody have an idea regarding this?

Similar Messages

  • When i close window with multiple tabs angd start new session (open new window) old tabs open again, how can i stop it?

    when i close window with multiple tabs and start new session (open new window) old tabs open again, how can i stop it?

    It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Prevent close window with Tabs present hack?

    I can't seem to find the reference but I came across in the last month or so, a hack/mod/script that prompted a dialogue box to pop up if you ask Safari to close a window while there are other tabs present. Does anyone know of this too? I'm hoping it will work as well when you accidently hit Command Q when you are meaning to hit Command W. (I lost the dozen or more pages of interest out of a recent 50-80, after hours of research) I guess another option would kill the Command Q stroke in Safari, but I'm not sure if it is a global thing or not.
    I'll of course make the suggestion to Apple, but in the mean time any ideas?

    Hi John,
    Have a search for Taboo at macupdate.com. That will give you a warning when you try to close a window with several tabs on it.
    For command-Q remapping, have a read of this:
    iBod, "changing the default shortcuts ?" #2, 12:24pm Sep 30, 2005 CDT

  • Adobe photoshop cc 2014 won't close window with unsaved file

    Recently installed update to Photoshop via creative cloud. Photoshop works great but for some reason I am unable to close a window with an unsaved project. Pressing command-w or going to file close doesn't do anything. As soon as I save the file I can close the window or quit photoshop. Is this in the preferences? Please advice.
    thanks

    I'm having this same issue.  Can't close an unsaved file that has been opened, even if it is completely unedited.  When an unsaved file is present, I can't quit Photoshop, either.
    I'm on OSX 10.7.5  (yes, I know...it's aged), Photoshop CC.  Plenty of memory and disk space, so that's not the issue.
    Any ideas?  Thanks!

  • Ending session when user closes window w/o logging out

    Hi,
    I tried looking everywhere for a solution to this problem and was unable to do so. I'm running tomcat 4.0.5 on win2k and am trying to prevent multiple user logging capability, but the listeners that I implemented for the session can only detect the creation of the session, and the destruction after the pre-set session invalidation time. So if the user closes the window 15 minutes into the session, the server still has the flag for "logged in" in place and the user cannot log in for the remainded of the session time (which is another 15 minutes).
    Can anyone please help me with this problem?
    Thank you very much,
    Lior

    How can I do that? Do you have any code I could take a look at. Thanks a lot.

  • Inkove method after close window with unload

    Hi guys,
    I'm trying create a way the invoke a method in a BackingBean after close the window of browser for this I'm using the event unload of 'af:document'.
    I used the Frank's sample ( http://blogs.oracle.com/jdevotnharvest/entry/responding_to_the_page_unload_in_a_managed_bean ) but it doesn't work.
    Can anybody help me?
    I'm using JDeveloper 11.1.2.0.0
    This a part of my code :
    Page
    <f:view afterPhase="#{backingBeanScope.backing_mainPage.afterPhase}"
              beforePhase="#{backingBeanScope.backing_mainPage.beforePhase}">
        <af:document id="d1"
                binding="#{backingBeanScope.backing_mainPage.d1}"
                title="CTBC - Algar Telecom"
                smallIconSource="imgs/favicon.png imgs/favicon.ico"
                onunload="performUnloadEvent"
                clientComponent="true">
        <af:resource type="javascript">
                window.addEventListener('beforeunload', function (){performUnloadEvent()},false);
                function performUnloadEvent(){
                  var eventSource = AdfPage.PAGE.findComponentByAbsoluteId('d1');
                  var x = AdfCustomEvent.queue(eventSource,
                                               "handleOnUnload", {}, true);
                  var y = 0;
        </af:resource>
        <af:serverListener type="handleOnUnload" method="#{sessaoLogoff.onUnloadHandler}"/>
          <af:form id="f1" binding="#{backingBeanScope.backing_mainPage.f1}">
    .ManageBean
    public class ControlaLogoff {
        public void onUnloadHandler(ClientEvent clientEvent) {
            System.out.println("good bye");
    }Regards,
    Renan

    I just tested the code Frank provided (as is) and it worked for me. the only thing to mention is when I closed browser completely the bean isn't called. If I close the tab running the page all works as expected.
    I strong feeling is that you simply can't catch the event if someone closes the browser (or use task kill). So if that is what you need you are out of luck.
    Again, the other case works for me. So if it's not working for you I guess there is some kind of coding error in your app.
    Timo

  • Close window with a keystroke?

    Is it possible to close out a window using a keyboard shortcut? also for that matter is there a list of keyboard shortcuts for Leopard?

    Gothboy wrote:
    Is it possible to close out a window using a keyboard shortcut?
    how about _*Keyboard Maestro*_ ?
    also for that matter is there a list of keyboard shortcuts for Leopard?
    click here for information.
    JGG

  • Netscape crash when close window with applet

    I am using JDK1.1 and swingall for load JApplets in Netscape without plugin. Sometimes when I close the window where the applet is, netscape crashes.
    I read that could be a problem of memory when the destroy method is called. Can be other reasons, and if it is a problem of memory how can I avoid it ?
    Thanks,

    Try using Netscape v6.0. Earlier versions have already reported having problems with Java Applets. Hope this would help.
    Ashish

  • How do i change the setting so that when i close windows with multiple tabs, they will ask questions ' save pages' or 'quit' or 'cancel'.

    I really need help with this cause when im using firefox 3.6 , usually when i want to close the window , they will ask me whether i want to save the tabs or close or cancel.. but im having difficulties with firefox4.
    and now i need to type again the last tab page which i went to.its kinda troublesome.
    really need help for this.

    Firefox now always stores the old session, and you can access it by going to the History menu and selecting "Restore Previous Session"
    If you want Firefox to display the message to save the session, it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs, an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • How to close window only if closing last tab is about:newtab

    Is there a way to achieve this behaviour:
    Let's say I have a last tab left open, for example mozilla.org or any other site. When closing that tab I want firefox to open about:newtab. This can be achieved by setting closeWindowWithLastTab flag in config. But here is the catch when closing that about:newtab I want to close window.
    So basically - Close window with last tab only if it is about:newtab. Also I want the close button on last tab to remain there.
    P.S. Last tab close button extension did not help.

    See:
    *Close Button: https://addons.mozilla.org/firefox/addon/close-button/

  • Force end of session when user closes window without logging out

    I want to protect sensitive employee data. Does anyone know how to force a user's portal session to be terminated after a user closes a window with the "X" instead of logging out?

    Web application is connectionless. So there is no way to tell if a user has disconnected. If the user diligently logout, then invalidating a session is no problem. However, if you wish to invalidate the user upon closing of window, I suggest you drop that idea and change to different approach.
    1. If you are trying to impose single logon policy, you may consider invalidate an existing session if the same user login again.
    2. If you really need to invalidate a user session as soon as he is inactive (or closes window). I suggest you set a very small timeout interval (maybe 3 minutes). Then for all the pages, implement a simple invisible IFRAME that will keep refreshing itself (say every 2 minutes) on a dummy JSP/servlet URL. The fact that this IFRAME always hit the URL at 2 mins interval will keep the user session valid. Once the browser window is closed, the session will be invalidated in max 3 mins time.
    The final suggestion is to drop that idea altogether, the point is ... implement such feature is like twisting web application to do something that it is not design to do naturally.

  • Where did Close Tab and Close Window under the File tab go? I end up with all these open windows or exiting altogether.

    Under the File tab, I no longer see Close Tab or Close Window. Thus, I end up with a lot of open windows, because if I click File Exit, I'm logged out.

    You need to create a file userChrome.css in the chrome folder in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and paste the above posted code in the file.<br />
    You can use the ChromEdit Plus extension to make it easier to edit the file.
    You can access the profile folder via this button:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    That code will cause all hidden menu entries to get visible all the time, so you can use the mouse to open the menus and do not need to use the keyboard.

  • How to close browser window after user log out

    Hi,
    Does anyone know how I can close browser window after user logs out. The scenario is when user clicks a log out button I will invalidate user session and close the browser right away in the backing bean.
    Your help would be appreciated.

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

  • W/zoteroinstalledwedo a window,open() followed by a window.close() in tha window. Zotero remains and the window is still open. How do I close the window with zotero present in FF w/o disabling zotero?

    the js function to window.open() is in pageAA on a tab.
    We click the form or link to open the popup to run a video.
    We have a close button on the popup window.
    When that is clicked the window.close() js is executed on that page leaving Zotero present and the popup still open.
    We've tried using close() window.close() name.window.close() and
    all fail the same way.
    Short of disabling Zotero is there a way to close the popup in FF and any other addons with one shot?

    Thank's but still no fix.
    In safe mode everything works.
    Without Zotero - everything works.
    When the popup is loaded with Zotero, the tab shows a constant "Loading" with the circular in process icon.
    The Zotero icon shows to the left of the tab.
    If I right click on Zotero and close it, the close() js works properly
    Is there a way to do a window.open() with:
    A. no tabs -or-
    B. block all add on's -or-
    C. to kill an add on
    before doing the close()?

  • Data transfer B/W parent windonw and child window with out java script

    hi ,
    i am using h:outputLink Tag to open child window , i am unable to pass parent window text box value to child window with out java script , Here i am using two different backing beans for parent and child windows . Plz help me .

    Hi -- I pass details between pages regularly. The following has worked for me:
    ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
    ValueBinding binding = factory.getApplication().createValueBinding("#{beanName}");
    BeanName beanProperty = (BeanName) binding.getValue(FacesContext.getCurrentInstance());
    ... then set the you can set the values. Can't recall if I need to use SaveStates for the items. Probably if you use request scope beans.

Maybe you are looking for

  • IPhoto books appear oversaturated

    I realized some iPhoto books and I was disappointed by the quality of the pictures because they appear oversaturated. I tried saving the PDFs from iPhoto and also the PDFs appear oversaturated if I open in Adobe Reader or Apple Preview. But the pictu

  • How to show alerts in sql developer?

    hi all I want to display a message box in backend( sql developer). Every day open the sql developer, i want to see some mesage from table data. can u plz sample code of this requirement. plz reply

  • Prerequisite checking issue during obiee 11g installation in windows server 2012

    HI.. Currently i'm facing problem while installing obiee 11g(11.1.1.7.0) in windows server 2012 and the database we're using is ms sql server 10.3 version. During the prerequisite checks while installation it shows the error "Checking Operating syste

  • WHENEVER SQLERROR Problem

    Below is my sql saved as testing.sql SET PAGESIZE 0 WHENEVER SQLERROR EXIT SQL.SQLCODE; WHENEVER OSERROR EXIT SQL.OSCODE; SPOOL /u021/idaho/load_scripts/ebiz_ctgry_prodfam/build_ebiz_ctgry_prodfam_1.og select productid, categoryid, sequence, inherit

  • Capture jstl index in html?

    Hello! I need to capture the index in c:foreach for a mapped property name, I tried the below code, can some one tell me what am I doing wrong? <c:forEach items="${list}" var="currentVal" varStatus="status"> <html:text styleClass="text" property="cop