Problem refreshing the page parent when a modal window is closed.

I have the page that opens a modal window of a column in report link. In the modal window, I want to be able to make my changes and press a button so that the modal window is closed and the parent page is refreshed to display the details changed in the report. In Firefox all works well, but IE I get the error message 'Window.opener.location is null or not an object ".

When I comment out window.opener.location.href = window.opener.location.href; the modal window is closed without error, but I want to refresh the parent page with the changes in the modal window.

I'm afraid that my java script is very limited (the code is inspired other peoples examples.)

Page parent I call this function of a column in report link to display a modal window. Sets the hidden field of the SAVE_STATUS to the landing page of "n".

function modalWin (pshow)
{
var url;
URL ='f? p = & APP_ID.: "+ pshow +": & SESSION. : SAVE_STATUS: NO;

If (window.showModalDialog) {}
window.showModalDialog (url, "name", "dialogWidth:650px; dialogHeight:700px"); }
else {}
Window.Open (url, "name", "height = 700, width = 650, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");
}
}



Landing page (modal window)

Header HTML.
Function closeWindow should refresh the parent page and close the modal window.

< base target = _self >
< script language = "JavaScript" type = "text/javascript" >
<!--

htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";

function closeWindow() {}
If (document.getElementById("SAVE_STATUS").value == 'Y')
{
Window.opener.Location.href = Window.opener.Location.href;
Window.Close ();
}
}
->
< /script >


Attribute Html Body .
onLoad = "closeWindow (); »


P_UPDATE_DATE process called of the button changes. Games of the SAVE_STATUS flag 'Y' for the onload in the html body.

UPDATE event
SET event_date =: P5001_EVENT_DATE
WHERE contract_reference =: P330_EVD_CONTRACT
AND event_number =: P330_EVD_EVENT_NUMBER;

: SAVE_STATUS: = 'Y ';


Thank you in advance, I'll take a look when back in the office on Monday.

Pete has soon

Hi Pete,.

In my view, that the refreshment of your page should happen on your parent Page. You can also check the JQueryUI there a beautiful modal dialog Widget.

--
Chris

Tags: Database

Similar Questions

  • How to set the time to refresh the page items when the Page is loaded

    Hi all

    When my pages load, some hidden page items are displayed, and when the page load they are hidden again. Is it possible to keep hidden without this time to refresh?

    Thank you

    Bsalvador

    bsalvador wrote:

    You know the syntax of css to hide the label too?

    #P1_ITEM_X, label[for="P1_ITEM_X"],
    #P1_ITEM_Y, label[for="P1_ITEM_Y"],
    #P1_ITEM_Z, label[for="P1_ITEM_Z"] {
      display: none;
    } 
    

    However this will not affect the underlying layout grid, which still affects the appearance of the page. If possible you can put the items in question in separate regions [sub] and show/hide those, rather than the individual elements.

    Post edited by: fac586

  • 11g: problem with the page open in a new window

    Hello

    I have a simple application with two pages. Page 1 contains only one button:
            <af:commandButton text="commandButton 1" useWindow="true"
                      action="dialog:action"/>
    {code}
    
    Page 2 is empty. Action is defined in adfc-config.xml:
    
    {code:xml}
        <control-flow-case>
          <from-outcome>dialog:action</from-outcome>
          <to-activity-id>untitled2</to-activity-id>
        </control-flow-case>
    {code}
    
    When I click the button, page 2 opens in new window but page 1 stays kind of "locked". It takes two clicks on the button to get page 2 to show again (the first click sort of resets the page, and the second one works as it should).
    Same behavior reproduces in a very complex application (where, for instance, a table can be scrolled but selection is impossible). 
    
    This worked in technology preview, did something change and some extra step is required or this is a bug? I can send someone a test case, if needed.
    
    Thanks, 
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Pedja,

    I have confirmed that it is the glasspane.

    When you open a dialog box in a new window like this, the main window is supposed to be blocked interaction until the dialog box is closed properly (this technique is sometimes called a "glasspane").

    Just close the dialog window by closing the browser window does not mean "close" dialog box. You must use the AdfFacesContext API to close the window.

    Add a command button on your page 2, bind it to an Action listener that does this:

        AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
    

    The behavior you see is correct; That is why the af: popup is probably a more "preferred" method to do so.

    I just saw your answer on the PDF - you'll still need clear the sort dialog box so that it works. You can use a ' print' button instead of a button 'command' (thus eliminating the need to use the framework of the dialogue)? I could not find any method of compensation of the dialog without actually closing the window.

    John

  • problem with JQuery TAB when I refresh the Page

    Hello

    I use a JQuery tab and I have following tabs under the present.

    tab1
    tab2
    tab 3

    When I click on tab1, tab2, tab3 individually it works fine.

    problem... Now, when I click on tab 3 and then I refresh the page, the control returns to the first tab tab1.

    what I want... If I'm on tab2, and I update the page... control must remain on the same tab (i.e. on tab2)... control should not go back to tab1 *(the first tab) *.

    Thank you
    Deepak

    Hello

    This might help
    http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:195800346705831

    Kind regards
    Jari

  • skillbuilders modal page: how to submit the page parent after closing modal window

    Hello.

    I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.

    I installed version 2.0 of plugin Skillbuilders Page modal.

    In may, app, page 7 presents a button.  When you click on it, page 6 is displayed as a modal popup.  Users can change this modal page form fields and then click on a "submit" button.  This, in turn, automatically closes the modal page.  Users seek then to page 'parent' (page 7).  It all works very well.

    My problem: Page 6 (modal page) contains a collection of Apex.  This collection is updated when users click the submit button.  It is this collection to be displayed with the data updated on the page "parent" (page 7).  And so, I need to automatically send page 7 when the modal page closes automatically after clicking submit on the modal page.

    I tried a dynamic action that performs an action of "submit page" whenever the user clicks on the button send in the modal page.  But because the plugin uses an iframe to display the modal page, the action of page submit real that happens in the iframe, not in the 'parent' page (page 7).  When the modal page closes automatically, users are left looking at the page of 'parent' (page 7) with the previous data (not updated).  I have to manually refresh the page (via the browser) to see the data updates to the collection.

    And then, does anyone know how to automatically return the page of 'parent' when the modal window closes automatically?

    Thank you.

    Elijah


    Your dynamic action automatic closing has not been set correctly. The action is not triggered on a specific item, but rather on the 'document '. Your selection should be 'Élément DOM' and the element must be "document".

    (Note that if you use several modal pages on one page, this action triggers for each of them. You can use the 'modal page id' in the creation of the page modal DAs must be able to stand out in outreach. You can find this in the documentation, too.)

  • When you play FarmVille, my computer crashes or I get a notice that "bits have been lost" and refresh the page... usually don't work and I have to start all over again.

    When you play FarmVille, my computer crashes or I get a notice that "bits have been lost" and refresh the page... usually don't work and I have to start all over again.

    I think that there is a prob with this game, it does not matter if you use firefox or IE. Or another browser. It blocks something. Or causes probs.

    FB needs to fix it. There are a lot of people (in a Google search), who are having probs. One way or the other

  • I bought a year of adobe cc today. When the screen came to tell me that he has been to process my payment, do not press the 'back' button or refresh the page such that it could take a few minutes. 7 hours ago. The cat to help told me it would take 24 hour

    I bought a year of adobe cc today. The screen came to tell me that he has been to process my payment, do not press the 'back' button or refresh the page, because this could take a few minutes. 7 hours ago. I contacted the Department of chat help and told me it would take 24 hours to process. Is this normal? Why the screen me "a few minutes" looks like if she's actually 24 hours? Does anyone else have this problem? I'm so tempted to just refresh the page and try my luck with my credit card, canceling a second payment if it happens. THIS could be faster.

    Hi stephanie palmer,.

    We would like to inform you that your order has been placed successfully and you can the course using the subscription.

    Please follow the link mentioned to install products below.

    Using creative cloud | Download, install, update or uninstall applications

    Kindly share the results once made.

    Thank you

    Atul Saini

  • IFRAME when refreshing the Page does not

    Hi all

    I have an iframe on my jspx page. The iframe loads on the click of a link on the page, but when I reload the page, the iframe goes out the DOM.

    Can anyone suggest me the possible reason that I am even not see no error in the log.

    Jdev version: 11.1.1.7.1

    Thank you

    I did not bind the property 'name', but 'facetName"property of af: switcher.

    Dario

  • Twitter: Your account may not perform this action. Please, refresh the page and try again.

    Since the update to Firefox 41.0.2 I couldn't use Twitter.com. When I try to tweet, favorite, or retweet the following error occurs. Your account may be able to perform this action. Please, refresh the page and try again. There are a couple of other users who have the same problem, but it was tinkered with Mozilla and the other pending.

    It started with the update to 41.0.2 and twitter works in all other browsers, but not Mozilla.

    Here's this other thread with the DIY: Impossible of Retweet, tweet or articles favorite on Twitter, even when I refresh the page.

    I think there must be a setting or a question Add on. Your extensions look pretty standard, so I'm leaning towards a parameter of the problem. You could test as follows:

    By default, Windows hides the .js extension. To make sure that the following steps work, you have to disable this feature, at least temporarily. This article has the steps: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Pause while Firefox finishing its cleanup, then rename prefs.js to something like prefs.old.

    Launch Firefox back up again and it must use the default settings (for example, integrated home page). If you need to restore your previous session windows and tabs, go ahead and select restore previous Session from the history menu.

    Twitter works best? If so, we could try to understand the precise adjustment at fault or you could rebuild your settings. Or you can undo the change by renaming the new prefs.js to prefs.txt and rename prefs.old back to prefs.js (with Firefox closed, as you did before) and understand it through a little trial and error.

  • Refreshing the page creates a new record – how to avoid this?

    I have a 'submit' button that runs a 'record insertion.

    After insertion is made I branch (back) to this same page.

    The problem is that when I hit page refresh the folder gets reinserted.

    How to avoid this behavior?

    AZZ says:

    fac586,

    Yes. You are right. It was a late semi written post. My apologies. You must stop working after midnight.

    Let me clarify:

    I have a SUBMIT"" button.

    There are the conditional 'after send' (if the key) process.

    the process calls a function that inserts a new record in the table.

    Question:

    How can I avoid running the process on refreshing the page?

    I've simplified the situation - no record insertion. However, if you refresh the page the success of the function call message will be displayed.

    https://Apex.Oracle.com/pls/Apex/f?p=4000:1:126172565551184:no:RP:FB_FLOW_ID, F4000_P1_FLOW:21325, 21325

    user/pass help/help

    workspace - AZ_

    To reproduce:

    Click on the submit - observe green popup "OK!"

    Refresh the page (F5 or ctrl-R) - see 'OK!' again.

    No process is executed to see the page or page refresh. This can be confirmed by looking at track of debugging to see the processing page. The page contains no defined process to run at a show of page processing point; None of the calculations which could call a function that could not perform an insert as a side effect; None of the dynamic actions or calls JS could initiate an insertion using AJAX; Neither the source region contains any code that could do it. I'll draw the line search conditions that can contain deeply buried code which could be responsible and direct you to a previous thread of the same nature: success of process Message not tied to Conditions.

  • Dynamic action does not not on the first attempt to load page. Work after refreshing the page

    4.2.1

    Hello

    I have a page with a list of selection Order_id and a display _item Product_name.  There is action dynamic PL/SQL that fills the element displayed when the order_id is changed. The problem is that when I opened the page for the first time, if I change the select order_id list, nothing happens. But if I refresh the page once, and then it starts work and the display_item is filled.

    No idea what could be the problem?

    Thank you

    Ryan

    ryansun wrote:

    On a more serious note,.

    1 when you load the page for the first time and try selecting the order_id, nothing don't be past, try refreshing the page once and you will see the option to display with the null value. What I do is. I have two tables

    Orders

    1

    2

    3

    Products

    1A

    2B

    2 Z

    3 C

    When I select the command 1, then since there is only one line of products, the displayed item will indicate A populous. If I select 2, since there are two product lines, I should see the list box.

    Doesn't seem to work and I'm sure, I'm doing something wrong.

    Difficult to be certain that as it appears that someone has been editing the page before you start watching (rather than copy the page experience their own copy). Your article P1_PRODUCT_NAME_DISPLAY he a point value / Expression 1 column = Expression 2 condition P1_HIDE_SHOW = 1 condition on that? Or any other condition of rendering?

    These conditions do not match the dynamic actions. They are applied only during the page see the transformation when the page is displayed first; When it is linked to another page; or after a branch to him. They are not applied dynamically during the activity of the user on the page. In this case, that the status is set to false when the page is rendered first, the same element does not exist in the page sent to the browser. If you want these items to appear conditionally because of the interaction with another user control, then you must initially return the elements and control their visibility using hide/show the dynamic actions.

  • JavaScript to refresh the page

    Hello.

    I have a popup that displays a page inside of a jquery dialog box.
    When I close the dialog I want to refresh the page.

    Any ideas how I refresh the page?

    Here's how I implemented the dialog box in the way
    [http://shijesh.wordpress.com/2010/04/10/jquery-modal-form-in-apex-4/]

    The javascript code that closes the dialog box is: -.
    function closeForm()
    {30
    31 $('#ModalForm_input[type="text"]').val ('');
    32 $('#ModalForm').dialog ('close');
    *#THIS IS WHERE I WANT TO REFRESH THE PAGE APEX #*.
    33}

    Published by: user3084063 on December 20, 2010 09:21

    Hello

    As much as I know jQuery modal window is not a window - it's a flutter * < div > * tag.
    That's probably why all you need is

     apex.submit("YOUR_REQUEST_HERE");
    

    Kind regards
    Lev

    Published by: the on December 20, 2010 14:18

  • Change result of &amp; lt; cfinclude &amp; gt; without refreshing the page.

    Y at - it a simple way to change the result of a < cfinclude > without refreshing the page. I have a page that will display one of the many < cfinclude > based on which button is clicked. For our purposes here, assume that there are 6 buttons and 6 different < cfinclude >. "s. I think some sort of update panel ajax, but I do not know ajax, nor can I use ASP.Net.

    All what Adam said, with other examples of what I think of you
    try to do.

    You can include all your code each in an identifiable
    block as a element. Then, using JavaScript and DHTML
    effects you could hide and show the different divs based on the user
    interaction with account of controls such as buttons. This would work well
    If the content of all the divs is relatively small and static. If they
    are large and quite where all the download would indeed on
    load time or momentum so that the content displayed in each section must
    to be up-to-date at the time when a control is selected this option will be
    not work well.

    In this case, you must had a such kind of dynamic refresh
    AJAX or pipes. This adds a dimension to the aspects of DHTML
    your interface to make new requests from the server before the content of the
    the browser is updated.

    Before discussing more in detail and the how and why of each of these it
    would be useful to learn more about your needs accurate and comfort
    level with different technologies and techniques.

    As Adam concluded there are several ways to solve this type of problem.

  • Netflix continues to become out of sync and I continue to have refresh the page

    I continue to have refresh the page then I watch netflix because it comes out of cynic.i have uninstalled and reinstalled silver lite.i contacted netflix about the problem.they say its Microsoft Works does not

    Original title: Netflix continues to become off synic

    Hello

    1. what operating system is installed on the computer?

    2. What is the exact error related to out of sync?

    3. were there any changes (hardware or software) to the computer before the show?

    Method 1: Run the troubleshooter, if Windows 7 is installed on the computer.

    Open the troubleshooting of Audio playback

    Method 2: To update the display drivers and check.

    Updated a hardware driver that is not working properly

    Update a hardware driver that is not working properly (Windows Vista)

    How to manage devices in Windows XP

    Hope this information helps.

  • Refresh the page column link onclick

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a single process Page on load before header, which validates the records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    Infantraj wrote:

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a process on Page load before header that validates records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    1. call the link java script function validate and transmit the application using APEX. Send

    function test() {}

    Apex. Submit ({request: "SUBMIT"});

    }

    2 assign this request to your process.

    modify your process-> status-> request = Expression1

    Expression1 = SUBMIT

    Better to create example on apex.oracle.com.

    Hope this helps you,

    Kind regards

    Jitendra

Maybe you are looking for