To close popup page from parent page .

HI ,
I want to close the popup page when my parent page is redirected to login page when session gets invalidated.
with out calling any onload or any kind of functions in popup jsp page.
In my application when i open a popup page from the main page ,when the session is getting expired parent page is redirected to login ,but still the popup page is in active state.i want it to be closed when the redirect happen for the parent page.
Please help me in this matter.
Thanks in advance.

This is a Javascript question, not a JSP question.
I'll give only a hint then: get hold of the handle of the popup window so that you can call close() on it.
If you stucks, please continue at a JS forum. There are ones at webdeveloper.com and dynamicdrive.com. Once again: JSP is completely irrelevant in this question. Just base the problem on the HTML and JS output generated by JSP.

Similar Messages

  • Close popup window from loaded movie

    I have an html link which launches a flash movie into a
    separate html window. The flash movie then loads another movie into
    level 10. from this level, I am trying to close the flash movie and
    its associated html page using the code:-
    javascript:window.close();
    This doesn't work. It closes level 10, but leaves level 0 and
    the html page intact. How can I resolve it?
    Any help would be very much appreciated.

    I have carried out a simple test using the above code to
    close a single swf with no loaded movies. This works. However, when
    I try to load a movie into a higher level and close the whole movie
    together with its html page from there, it doesn't work.
    Thanks

  • Unable to return from a column link to popup page in the same window

    Using 3.2
    I have a tabform with a link to a pop-up page (and passing values). It's working fine but when I 'Save' on the pop-up, instead of returning to the originating page, it opens up a new window with the originating page on it. How do I get back to the originating page? I'm sure it's in my branch or button url syntax but can't figure it out. I tried creating a process to 'close window' but still opens up a new window.
    FYI - if I just do the 2nd page as a normal page, all is fine but the users would prefer a popup.
    Thx.
    Sandie

    Use the template 'Popup' for your page.
    Create a After Submit Process and select the option 'Close Window'. Make sure this is the last process (highest sequence number). This will automatically closes the popup window and user will be on the parent page.
    Do not create any branches on the popup page or any target in your Save button.
    If you need to refresh the parent page with the information entered on the popup page, enter the following code, at the end, in the process that does your DML (a process that comes before the Close Window process).
    htp.p('<script>');
    htp.p('window.opener.location.reload(true);');
    htp.p('</script>');
    I have created popups this way and they work, at least in 3.2version. In APEX 4.0, the parent page is not refreshing with the data entered on the popup page, which I'm currently investigating into. If you have a different code to refresh the parent page, please share it with me.
    Edited by: rbheemir on Nov 10, 2010 2:56 PM

  • How to show result from process in popup page?

    <br>We want to use one popup page for many information in application. So we want to make the following thing.
    <br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE").
    <br>We also assign title of region on that popup page through "P2_TITLE".
    <br>What I do not know is how to show popup after process-branch problem.
    <br>Process is executed from one button. Button is located on page "28" and popup page is "2"
    <br>Code for javascript should be like:
    <br>
    javascript:popupURL('f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:'+'status '+','+'&P28_X.')<br>THX

    I have found in one thread:
    <br>
    <br>1) create an application item APP_ONLOAD (of course you can choose your own name)
    <br>2) create an application level before footer computation on APP_ONLOAD to clear the item after the page is generated.
    <br>3) place &APP_ONLOAD. (dot also) in the on load property of the page.
    <br>4) fill the APP_ONLOAD using :APP_ONLOAD := 'onload="your own javascript to call a popup window;"' in the plsql of an after On Submit - After Computations and Validations process (type PL/SQL anonymous block)
    Fill the when button pressed property of the process with the button you want to use to show the popup.
    <br>5) create a branch to branch to the current page (or a other if you wish)
    <br>
    Looks OK but when I create in PL/SQL js with "&" signe, which I use for filling some hidden values in popup page I get error.
    begin
      is_test_ok (1, :P28_X);
      :APP_ONLOAD := 'onload="javascript:popupHeightURL(''f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:''+''statusu testova''+'','+''&P28_X.'')"';
    end;<br>Should I use ASCII codes for that or what? Any example please!
    <br>THX

  • How to remove "Delegate" option from Reassign Popup page in task details

    Hi
    I'm using SOA 11g and Jdev 11.1.1.3 for the development. I created a Human task and using the Reassign functionality. From the BPM Worklist, When I click the Reassign in the Actions menu, a popup for Reassign task is displayed. In this popup, I have two options -
    1) Reassign (transfer task to another user or group) and
    2) Delegate (allow specfied user to act on my behalf)
    Functionality of option 1 is working fine. But I do not want to show the option 2 in the popup page.
    I tried to find the popup JSPX page and tried to find for any edit options from the BPM Worklist screen, but no luck.
    Can anyone throw some light on how I can achieve this.
    Thanks,
    Udaya Neeliahgari

    Hello,
    create a new permission level. Copy the "Contribute" permission level and call it "Contribute no Delete". Edit the new permission level and untick the "Delete" box in the List Permissions section.
    The next step depends on whether you want this to be site-wide or just for a particular library.
    Go to the Approval Task list and click List Permissions in the List ribbon. 
    Select to break permission inheritance.
    Then select the Sharepoint group that normally has "Contribute" permissions and change the permissions to "Contribute no Delete". To do that, tick the tick box for the group and use the ribbon command to edit permissions for the selection.
    cheers, teylyn

  • Datepicker on custom popup page close the popup page when date is selected

    Hi
    I have created a custom popup page according to the "How-To": Build Custom Popup Pages in Oracle Application Express. http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    I have changed one of the search fields to a date and use the datepicker.
    When running the custom popup page from a simple form page, and select a date with the datepicker, the custom popup page is closed, and I return to the form page.
    How do I prevent the popup page to be closed, when date is selected ?
    BR Klaus

    Is there a way to control the javascript in the
    standard datepicker.No.
    Why would you want the builtin date picker window to hang around after the user selects a date?

  • Executing Child Taskflow Method from parent taskflow page

    Hi All,
    I have one issue with checking dirty data form Parent Taskflow button to check dirty data update in Child Taskflow page's view Object.
    JDev version: 11.1.1.3
    Scenario :
    Outer Container page has back button which need to check wherethere child taskflow has dirty data update or not. Child Taskflow transaction is always create new transaction and non-shared. But from ControllerContext, the root am service still associated with other viewobjects i.e. is loaded in others tabs in that outer container page, which is also checking dirty data from another tabs' viewobject dirty data checking (I need to avoid this issue that's why not working for me with controller context). I am thining to execute the child taskflow method from parent page on back button to check dirty data update for that tabs' page only. For it, how can we get access child taskflow method from parent page with static region taskflow. Is there any solution to implement like this? thank you so much.
    - Robin

    Hi,
    this should work:
    1. child task flow has input parameter "parentBean" defined.
    2. The child task flow has a managed bean "ChildBean" defined in pageFlowScope with a property "parentBean" with setter/getter.
    3. the parentBean input parameter references (in its value roperty) #{pageFlowScope.childBean.parentBean}
    4. The parent bean is configured on the parent view task flow (viewScope) and passed as a task flow binding input parameter. The parent bean has a boolean property "childFlowTransactionDirty"
    This allows the child bean to invoke the parent bean childFlowTransactionDirty to tell it that the transaction is dirty. On the parent view, you would just check the parentBean state for this property.
    Next is how you set the value on the parentBean from the childTaskFlow. One option is to use a RegionController on the PageDef file of ADF bound views in the child task flow.
    public class MyRegionController implements RegionController {
        public MyRegionController(){
        public boolean refreshRegion(RegionContext regionContext) {      
         int refreshFlag = regionContext.getRefreshFlag();
          //get access to the ChildBean and its parentBean property. Then call
          //ControllerContext .... to check the transaction state
          //update the childFlowTransactionDirty property
          ((DCBindingContainer)regionContext.getRegionBinding()).refresh(refreshFlag);
          return true;
        @Override
        public boolean validateRegion(RegionContext regionContext) {
            regionContext.getRegionBinding().validate();
            return false;
        public boolean isRegionViewable(RegionContext regionContext) {
            return regionContext.getRegionBinding().isViewable();
        @Override
        public String getName() {
            return this.getClass().toString();
    }Next: When users press the back button in the parent view, you call the ParentView bean childFlowTransactionDirty to check the child task flow transaction to be dirty or not
    Frank

  • Need help in passing parameter from base page to popup page

    Dear ALL,
    I have a requirement as below.
    I have a page having one LOV, I need to select one value from that LOV and select one button from the page then it should open a popup page with the required data in tabular format for the field i selecetd.
    so i created a lov in my page and able to invoke the popup page through java script but how i can execute the query in popup page by taking the parameter whta i selected from base page.
    Please help me out.

    Mukul's Oracle Technology Blog: JavaScript In OA Framework
    --Sushant

  • Remove address line from Popup page

    I would like remove the address line from several popup pages I have. I know the best way to do this would be through a page template. However, I don't see where the address line would be in the template. Can someone please suggest how best to remove the address line?
    Thanks!
    -Reid

    Reid-
    Actually this is not done by templates, you can easily do that in the JS popup parameter "location" that shows/hides the location bar (where you enter URLs) as follows:
    window.open ("http://www.yourlink.com","window_title","menubar=0,resizable=1,width=350,height=250"); Hope this helps,
    Sam
    Please reward good answers by marking them correct or helpful!

  • How to default value from popup page to main page.

    Hi,
    Requirement:
    I have a create page with table region of 10 lines.I have an icon for every line and on click of this icon, a popup window will be opened.
    In the popup window i have quantity field with a table region. User is allowed to select the quantity. Also i have a ADD button on the popup page.
    Now On selecting the quantity and click on add button, the quantity should be added and the sum quantity should be defaulted to quantity field in the main page.
    For this requirement what i have done is
    I have added the quantity on click of the Add button.and the total quantity i set to the quantity attribute that has been attached to main page.
    But the quantity didnt get reflect to the main page. i think the focus is not retured o main page.
    Please suggest me how can i do this requirement.
    Thanks in Advance,
    Thanks,
    Mallika
    Edited by: user12216727 on Nov 21, 2009 4:29 AM

    Hi,
    As per my analysis for the issue, the control is returning to processRequest of the controller and when i set the attribute value, the value is being set and I am able to get the value and print it.
    But the value is not displayed on the page.Here I am using Advanced Table Region, and I am not able to shoe the value.
    I also created one view attribute and tried to set the readonly property to TRUE for the same field. I did in the same way, the value is being set and the field is made readonly.
    The problem is I am not able to show value to the user, even the value is present in the view attribute.
    Any pointers to this are really helpful.
    Thanks,
    --Mallika                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to close PopUp (from taskflow region)???

    Can someone, please, explain how to solve this use-case:
    I have PopUp in which I put a region (in which is a small TaskFlow consiting of 2 JSFFs). I want to have Cancel and OK buttons in both JSFFs in TaskFlow. How to close PopUp from within TaskFlow ??? I saw the TaskFlow Return component in ADF TaskFlow diagram components (in palette) but haven't found any help/documentation on it. Or, should I use Return listener on command button used to rise popup (but, still, how to close popup from taskflow?)?
    Any help would be great!
    Thanks in advance,
    Marko

    mimarko,
    Regions/Taskflows are meant to be isolated reusable components. They are not meant to
    have knowledge of their parent or container. That said, code contained with in a region should not attempt to reach out an modify the parent. Regions can fire contextual events that can be handled by a listener declared in the parent pages pageDef. However, attempting to close a popup from a context listener would be bad practice. The easiest fixt is to put the popup in the taskflow for your region. That will create a reusable popup that you can use through out your application.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Popup page and PREV_PAGE

    Can you set a call to a popup to pass the page number of the calling page to the PREV_PAGE field of the popup page and then set the closing process on the popup page to go back to &PREV_PAGE. instead of a page number? What would be the syntax for such a thing?

    Below is the code I am now using. You will notice that it includes specific pages:
    Calling page calls up p 127, the popup page:
    <input type="button" value="Add Call Administrators" onClick="javascript:window.open('f?p=&APP_ID.:127:&APP_SESSION.:::','Popup2','width=400,height=300')";>
    Popup page closing process, sends back to P36(calling page):
    BEGIN
    -- Redirects the calling (parent page) to the Allocate Site to Run
    --page
    -- then closes this popup window
    htp.p('<body>');
    htp.p('<script type="text/javascript">');
    htp.p('window.opener.location.href="f?p=&APP_ID.:36:&SESSION.";');
    htp.p('window.close(this);');
    htp.p('</script>');
    htp.p('</body>');
    END;
    What I want to do is be able to put something in the calling page code to insert the page number of the calling page into P127_PREV_PAGE, and then to replace 36 with &P127_PREV_PAGE. I just don't know where or how to insert them into the code.
    If I do not have a page number in the closing process, it bounces to the previous page and then bounces to the login page.

  • Spry Accordion - Tabs open and then close after page loads

    I am using a Spry Accordion menu driven from a database.
    The menu opens up during the page load and then closes.
    I'm using SpryAccordion.js 1.6.1
    And to open a preset tab, I'm using:
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1",{useFixedPanelHeights:false, enableAnimation: false, defaultPanel: 0 });
    //-->
      </script>
    But, all of the tabs open and then close on page load.
    My page:   http://www.texashotjobs.us/00C01.aspx
    Any fix for this??
    Thanks, Ron

    Well to both thanks.  Actually I wasn't disappointed as I had a two part question...
    I tested the 1.6 JS and remembered that I had to modify the 1.4 so that tabs actually would link.  So I reverted back to 1.4.
    So, going to 1.6 fixed the open panel on load but "unfixed" the panel tab from linking.....
    So changing this in the 1.6 js fixed the link issue as well:
    Spry.Widget.Accordion.prototype.onPanelTabClick = function(e, panel)
        if (panel != this.currentPanel)
            this.openPanel(panel);
        else
            this.closePanel();
        if (this.enableKeyboardNavigation)
            this.focus();
    //    if (e.preventDefault) e.preventDefault();
    //    else e.returnValue = false;
    //    if (e.stopPropagation) e.stopPropagation();
    //    else e.cancelBubble = true;
    I t appears everything is working........
    Thanks, Ron Gaddis
    Visual Reality Productions

  • Unable to close home page tab or unable to close firefox by closing home page tab (when if that is the only last tab remaining in the browser

    Recently I noticed that I could not close my browser by closing the last tab, which is nothing but home page tab. also noticed that when I open my browser and after opening many other tab if I want to close home page tab I could not close. If I closed it then I cant navigate or surf from that tab.
    This may be due to some add-on causing trouble.
    The problem does not arise in safe mode. Also if I group tab after closing, it is counted as tab but I cant open that particular tab.

    # 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 home page"

  • How do I close one page at a time?

    When I go from my email to a link and then can't get back to email using the back arrow I usually close that page and am back at my email. With Firefox I go to close and a message says that I am about to close 2 tabs and I have to say yes or it doesn't do anything and then it closes my email (which I am trying to get back to). Then to get back to my email I have to go through the multi step process to open it again and get back to the message I was reading before I opened the link. Frustrating! Pleas let me know who to be able to close only one link at a time. There must be a way or it will be too time consuming to use. Thank you

    Are there any entries in the tab history of the Back button on the Navigation Toolbar?
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can close the current tab with a middle-click on that tab or via the keyboard shortcut Ctrl+W
    Make sure that you do not click the close X on the window title bar.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

Maybe you are looking for

  • Acrobat Pro X (10.1.9.22) crashes after a few minutes of use - I've tried everything I can think of!

    Acrobat Pro X, that came with CS6 Design Standard (all other programs working fine) crashes after a few minutes of use. It crashes whether there is a document open or not. I notice it most when I come back to the PDF after switching from another prog

  • For some reason photoshop can't find my GPU

    So, for some reason everytime i launch Photoshop it gives me the error that some functions arent available because i didnt install my drivers or something, although i did. Another weird problem is that i cant tick '' Use Graphics Processor '' in the

  • E-commerce 5 & existing sites

    Hi, Just a quick few questions about E-commerce 5 (for those who have already been involved in B2C installations). 1. Is this basically ISA 4 with a new UI layer or has the underlying frameworks changed as well? 2. Performance better or worse compare

  • How do I upgrade from 10.4.11 to 10.5??? Help!!

    I can't find this upgrade anywhere! Can I upgrade my computer to the new version by a download? Or is this something I need to purchase somewhere? I'm so lost! I can't run iTunes anymore cause I don't have the newest version of Quicktime which runs o

  • How do I activate purchased version of Photoshop Elements 12?

    I purchased a package through QVC that included Adobe Elements 12 with a Dell Inspiron Computer.  I installed the program and was able to import pictures, but when I try to use the editor it wants me to sign up for the 30 free trial version of PE12.